]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoUpdate generate-release.sh script:
gjb [Mon, 17 Sep 2012 02:23:03 +0000 (02:23 +0000)]
Update generate-release.sh script:

 - Use svn for ports and doc trees
 - When installing a binary textproc/docproj package,
   switch pkg_add(1) to pkg(8) [1]

Reviewed by: nwhitehorn
Approved by: nwhitehorn
Enhanced by: glebius [1]
MFC After: 1 week
X-MFC-To: 9-only

11 years agoAdd a per-TID filter queue and filter state bits.
adrian [Mon, 17 Sep 2012 01:21:55 +0000 (01:21 +0000)]
Add a per-TID filter queue and filter state bits.

These are intended for software TX filtering support, where the NIC
decides there has been too many successive failues to a destination
and will filter it.

Although the filtering is done per-destination (via the keycache),
the state and queue is kept per-TID for now.  It simplifies the overall
architecture design and locking.

Whilst here, add ATH_TID_UNLOCK_ASSERT().

11 years agoAdd a debug bit for TX destination filtering.
adrian [Mon, 17 Sep 2012 01:18:47 +0000 (01:18 +0000)]
Add a debug bit for TX destination filtering.

11 years agoImprove performance of the Sample rate algorithm on 802.11n networks.
adrian [Mon, 17 Sep 2012 01:09:17 +0000 (01:09 +0000)]
Improve performance of the Sample rate algorithm on 802.11n networks.

* Don't treat high percentage failures as "sucessive failures" - high
  MCS rates are very picky and will quite happily "fade" from low
  to high failure % and back again within a few seconds.  If they really
  don't work, the aggregate will just plain fail.

* Only sample MCS rates +/- 3 from the current MCS.  Sample will back off
  quite quickly, so there's no need to sample _all_ MCS rates between
  a high MCS rate and MCS0; there may be a lot of them.

* Modify the smoothing rate to be 75% rather than 95% - it's more adaptive
  but it comes with a cost of being slightly less stable at times.
  A per-node, hysterisis behaviour would be nicer.

11 years agoRemove references to userstat(1) and jailstat(1). Those tools were never
trasz [Sun, 16 Sep 2012 23:25:13 +0000 (23:25 +0000)]
Remove references to userstat(1) and jailstat(1).  Those tools were never
merged from the Perforce branch.  They might be brought in when %CPU limits
go into the tree.

PR: docs/171240
MFC after: 2 weeks

11 years agoFix a crash bug introduced in the iterate node work recently done.
adrian [Sun, 16 Sep 2012 22:45:00 +0000 (22:45 +0000)]
Fix a crash bug introduced in the iterate node work recently done.

When resuming, the first VAP is checked for max_aid; however if there
is no VAP, this results in a NULL pointer dereference and kernel
panic.

11 years agoRemove trailing whitespace.
joel [Sun, 16 Sep 2012 21:17:28 +0000 (21:17 +0000)]
Remove trailing whitespace.

11 years agofix the kernel files to match our standard "option<space><tab>" format
jmg [Sun, 16 Sep 2012 19:48:48 +0000 (19:48 +0000)]
fix the kernel files to match our standard "option<space><tab>" format
such that when commenting/uncommentting lines, horizontal spacing is
maintained...

Also fix some minor comment formatting to line things up, etc...

Reviewed by: gnn, imp
MFC after: 1 week

11 years agoremove some unnecessary debugging statements, dead code and incorrect
jmg [Sun, 16 Sep 2012 19:42:27 +0000 (19:42 +0000)]
remove some unnecessary debugging statements, dead code and incorrect
comment...

Reviewed by: gnn, imp

11 years agoOptimise i387 trigonometric functions. Replace "andw 0x400,%ax \ jnz" with
tijl [Sun, 16 Sep 2012 16:58:49 +0000 (16:58 +0000)]
Optimise i387 trigonometric functions. Replace "andw 0x400,%ax \ jnz" with
"sahf \ jp", "fprem1" with "fprem" and "fstsw %ax" with "fnstsw %ax".

11 years agoRevert 240527:
eadler [Sun, 16 Sep 2012 16:08:20 +0000 (16:08 +0000)]
Revert 240527:
mntbuf can poit to memory allocated by getmntinfo(3) which can't be freed

PR: bin/171634
Approved by: cperciva (implicit)

11 years agoWarn about filesystem-based attacks.
des [Sun, 16 Sep 2012 15:22:15 +0000 (15:22 +0000)]
Warn about filesystem-based attacks.

11 years ago- Make truss thread-aware.
zont [Sun, 16 Sep 2012 14:38:01 +0000 (14:38 +0000)]
- Make truss thread-aware.

Approved by: kib (mentor)
MFC after: 2 weeks

11 years agoAdd section describing existing filtering points.
melifaro [Sun, 16 Sep 2012 13:13:02 +0000 (13:13 +0000)]
Add section describing existing filtering points.
Document byteorder behavior in AF_INET[6] hooks in new section.

MFC after: 2 weeks

11 years agoStart to clean up ARMv6 initarm implementations by making the Tegra 2
andrew [Sun, 16 Sep 2012 08:09:10 +0000 (08:09 +0000)]
Start to clean up ARMv6 initarm implementations by making the Tegra 2
version similar to the Ti version.

11 years agoIn the Tegra 2 standard config:
andrew [Sun, 16 Sep 2012 08:00:29 +0000 (08:00 +0000)]
In the Tegra 2 standard config:
 * Remove an unneeded makeoption
 * Set machine correctly
 * Properly indent the include of files.tegra2

11 years agoThe cpu_reset function is noreturn, make sure this is true on Tegra 2.
andrew [Sun, 16 Sep 2012 07:55:49 +0000 (07:55 +0000)]
The cpu_reset function is noreturn, make sure this is true on Tegra 2.
While here fix a typo.

11 years ago- Add myself as a new src committer.
peterj [Sun, 16 Sep 2012 06:44:58 +0000 (06:44 +0000)]
- Add myself as a new src committer.
- Sort jhb's mentees
- Add grog's (ex-)mentor

Approved by: jhb (co-mentor), grog (co-mentor)

11 years agoAdd Perforce support.
rpaulo [Sun, 16 Sep 2012 06:01:34 +0000 (06:01 +0000)]
Add Perforce support.

11 years agoHandle AT_TIMEKEEP in procstat(1) -x [1]. Remove the AT_COUNT switch
kib [Sun, 16 Sep 2012 05:52:54 +0000 (05:52 +0000)]
Handle AT_TIMEKEEP in procstat(1) -x [1]. Remove the AT_COUNT switch
case, since AT_COUNT is not an aux vector, it is the counter of total
number of defined vectors.

PR: bin/171662 [1]
MFC after: 1 week

11 years agosh: Prefer internal nextopt() to libc getopt().
jilles [Sat, 15 Sep 2012 21:56:30 +0000 (21:56 +0000)]
sh: Prefer internal nextopt() to libc getopt().

This reduces code duplication and code size.

/usr/bin/printf is not affected.

Side effect: different error messages when certain builtins are passed
invalid options.

11 years agoAdd myself, and show gabor@ as my mentor.
ebrandi [Sat, 15 Sep 2012 20:09:08 +0000 (20:09 +0000)]
Add myself, and show gabor@ as my mentor.

Approved by:    gabor (mentor)

11 years agoPrefer __containerof() above member2struct().
ed [Sat, 15 Sep 2012 19:28:54 +0000 (19:28 +0000)]
Prefer __containerof() above member2struct().

The first does proper checking of the argument types, while the latter
does not.

11 years agoEliminate an unused malloc type.
alc [Sat, 15 Sep 2012 17:32:19 +0000 (17:32 +0000)]
Eliminate an unused malloc type.

11 years agoPull in r163967 from upstream llvm trunk:
dim [Sat, 15 Sep 2012 17:02:05 +0000 (17:02 +0000)]
Pull in r163967 from upstream llvm trunk:

  X86: Emitting x87 fsin/fcos for sinf/cosf is not safe without unsafe
  fp math.

This should make clang emit calls to libm for sinf/cosf by default.

MFC after: 1 week

11 years agoRemove a reference to CVS and to freefall from a user-facing man page.
issyl0 [Sat, 15 Sep 2012 16:24:03 +0000 (16:24 +0000)]
Remove a reference to CVS and to freefall from a user-facing man page.

PR: docs/171658
Reported by: Chris Petrik (c dot petrik dot sosa at gmail dot com)
Approved by: gabor (mentor)
MFC after: 5 days

11 years agoFree memory before exiting in order to
eadler [Fri, 14 Sep 2012 23:47:23 +0000 (23:47 +0000)]
Free memory before exiting in order to
help tools understand that we're not leaking it.

PR: bin/171634
Submitted by: Erik Cederstrand <erik@cederstrand.dk>
Approved by: cperciva
MFC after: 3 days

11 years agosiginfo(3): Document TRAP_DTRACE signal code.
jilles [Fri, 14 Sep 2012 22:12:04 +0000 (22:12 +0000)]
siginfo(3): Document TRAP_DTRACE signal code.

MFC after: 1 week

11 years agosiginfo(3): Document SI_LWP signal code.
jilles [Fri, 14 Sep 2012 22:10:01 +0000 (22:10 +0000)]
siginfo(3): Document SI_LWP signal code.

Describe SI_LWP as being generated by pthread_kill() because thr_kill() is
a private undocumented function.

MFC after: 1 week

11 years agosiginfo(3): Document SI_USER and SI_KERNEL signal codes.
jilles [Fri, 14 Sep 2012 22:05:09 +0000 (22:05 +0000)]
siginfo(3): Document SI_USER and SI_KERNEL signal codes.

MFC after: 1 week

11 years agos/ is is / is /g
eadler [Fri, 14 Sep 2012 22:00:03 +0000 (22:00 +0000)]
s/ is is / is /g
s/ a a / a /g

Approved by: cperciva
MFC after: 3 days

11 years agos/teh/the/g
eadler [Fri, 14 Sep 2012 21:59:55 +0000 (21:59 +0000)]
s/teh/the/g

Approved by: cperciva
MFC after: 3 days

11 years ago- Fix build of French release notes with the XMLified doc tree
gabor [Fri, 14 Sep 2012 21:36:01 +0000 (21:36 +0000)]
- Fix build of French release notes with the XMLified doc tree

11 years agoCorrect double "the the"
eadler [Fri, 14 Sep 2012 21:28:56 +0000 (21:28 +0000)]
Correct double "the the"

Approved by: cperciva
MFC after: 3 days

11 years agoupdate to version 20120526
bapt [Fri, 14 Sep 2012 21:17:53 +0000 (21:17 +0000)]
update to version 20120526

11 years ago- Fix build of the German release notes with the XMLified doc tree
gabor [Fri, 14 Sep 2012 21:12:41 +0000 (21:12 +0000)]
- Fix build of the German release notes with the XMLified doc tree

11 years agoRevert previous commit...
gjb [Fri, 14 Sep 2012 20:51:35 +0000 (20:51 +0000)]
Revert previous commit...

Pointyhat to: gjb (myself)

11 years agoisci(4): Fix SCSI/ATA translation for SCSI_WRITE_BUFFER w/ mode==0x7
jimharris [Fri, 14 Sep 2012 20:05:38 +0000 (20:05 +0000)]
isci(4): Fix SCSI/ATA translation for SCSI_WRITE_BUFFER w/ mode==0x7
(download microcode with offsets, save, and activate).

SATI translation layer was incorrectly using allocation length instead
of blocks, and was constructing the ATA command incorrectly.

Also change #define to specify that the 512 block size here is
specific for DOWNLOAD_MICROCODE, and does not relate to the device's
logical block size.

Submitted by: scottl (with small modifications)
MFC after: 3 days

11 years agosched_ule: fix inverted condition in reporting of priority lending via ktr
avg [Fri, 14 Sep 2012 19:55:28 +0000 (19:55 +0000)]
sched_ule: fix inverted condition in reporting of priority lending via ktr

Reviewed by: kan
MFC after: 1 week

11 years agoFix man2hwnotes.pl script, which should fix the RELNOTES build.
gjb [Fri, 14 Sep 2012 19:52:33 +0000 (19:52 +0000)]
Fix man2hwnotes.pl script, which should fix the RELNOTES build.

11 years ago- Make the release notes build with the XMLified doc tree
gabor [Fri, 14 Sep 2012 18:33:12 +0000 (18:33 +0000)]
- Make the release notes build with the XMLified doc tree

11 years agoSmall cleanups. No functional change.
tuexen [Fri, 14 Sep 2012 18:32:20 +0000 (18:32 +0000)]
Small cleanups. No functional change.

MFC after: 10 days

11 years agoBump date missed in r202756
eadler [Fri, 14 Sep 2012 17:50:42 +0000 (17:50 +0000)]
Bump date missed in r202756

PR: docs/171624
Submitted by: bdrewery
Approved by: gabor
MFC after: 3 days

11 years agosh: Reduce code duplication: use setinputfile instead of open/setinputfd
jilles [Fri, 14 Sep 2012 15:22:15 +0000 (15:22 +0000)]
sh: Reduce code duplication: use setinputfile instead of open/setinputfd
combination.

MFC after: 2 weeks

11 years agoMinor mdoc fix.
joel [Fri, 14 Sep 2012 13:14:48 +0000 (13:14 +0000)]
Minor mdoc fix.

11 years agoUse libmd if and only if OpenSSL is not available.
des [Fri, 14 Sep 2012 13:00:43 +0000 (13:00 +0000)]
Use libmd if and only if OpenSSL is not available.

PR: bin/171402
MFC after: 3 days

11 years agoAdding missing return statements during error conditions.
eadler [Fri, 14 Sep 2012 12:15:13 +0000 (12:15 +0000)]
Adding missing return statements during error conditions.

PR: kern/171187
Submitted by: Mark Johnston <markjdb@gmail.com>
Reviewed by: des
Approved by: cperciva
MFC after: 2 weeks

11 years agoo Create directory sys/netpfil, where all packet filters should
glebius [Fri, 14 Sep 2012 11:51:49 +0000 (11:51 +0000)]
o Create directory sys/netpfil, where all packet filters should
  reside, and move there ipfw(4) and pf(4).

o Move most modified parts of pf out of contrib.

Actual movements:

sys/contrib/pf/net/*.c -> sys/netpfil/pf/
sys/contrib/pf/net/*.h -> sys/net/
contrib/pf/pfctl/*.c -> sbin/pfctl
contrib/pf/pfctl/*.h -> sbin/pfctl
contrib/pf/pfctl/pfctl.8 -> sbin/pfctl
contrib/pf/pfctl/*.4 -> share/man/man4
contrib/pf/pfctl/*.5 -> share/man/man5

sys/netinet/ipfw -> sys/netpfil/ipfw

The arguable movement is pf/net/*.h -> sys/net. There are
future plans to refactor pf includes, so I decided not to
break things twice.

Not modified bits of pf left in contrib: authpf, ftp-proxy,
tftp-proxy, pflogd.

The ipfw(4) movement is planned to be merged to stable/9,
to make head and stable match.

Discussed with: bz, luigi

11 years agoImplement MSI support.
gber [Fri, 14 Sep 2012 10:06:56 +0000 (10:06 +0000)]
Implement MSI support.

MSI are implemented via Inbound Shared Doorbell 1 interrupts. Interrupts
are triggered by writing to Software Triggered Interrupt registeri (PCIe
card using physical address of this register in BAR0 space). There are 32
interrupts available. It can be increased by using Doorbell 2 and
Doorbell 3 registers to 96 interrupts.

Obtained from: Marvell, Semihalf

11 years agoAdd support for MSI in interrupt controlller.
gber [Fri, 14 Sep 2012 10:05:01 +0000 (10:05 +0000)]
Add support for MSI in interrupt controlller.

MSI are implemented via software interrupt. PCIe cards will write
into software interrupt register which will cause inbound shared
interrupt which will be interpreted as a MSI.

Obtained from: Marvell, Semihalf

11 years agoRemove unused structure fields
gber [Fri, 14 Sep 2012 10:01:52 +0000 (10:01 +0000)]
Remove unused structure fields

Obtained from: Semihalf

11 years agoEnable PCI for Armada XP
gber [Fri, 14 Sep 2012 09:59:27 +0000 (09:59 +0000)]
Enable PCI for Armada XP

Obtained from: Semihalf

11 years agopci: Implement new memory and io space allocator for PCI.
gber [Fri, 14 Sep 2012 09:57:41 +0000 (09:57 +0000)]
pci: Implement new memory and io space allocator for PCI.

Cleanup code and move initializing bridge into separate function.
Add checking of PCI mode (RC or endpoint).

Obtained from: Semihalf

11 years agoAdd support for Armada XP A0.
gber [Fri, 14 Sep 2012 09:55:19 +0000 (09:55 +0000)]
Add support for Armada XP A0.

- Add functions to calculate clocks instead using hardcoded values
- Update reset and timers functions
- Update number of interrupts
- Change name of platform from db88f78100 to db78460
- Correct DRAM size and PCI IRQ routing in dts file.

Obtained from: Semihalf

11 years agoIf virtual addresses are not set use one to one mapping.
gber [Fri, 14 Sep 2012 09:45:13 +0000 (09:45 +0000)]
If virtual addresses are not set use one to one mapping.
Do not map memory and IO space at address 0.

Obtained from: Semihalf

11 years agoSupport identification of new PJ4B cores.
gber [Fri, 14 Sep 2012 09:38:54 +0000 (09:38 +0000)]
Support identification of new PJ4B cores.

Obtained from: Semihalf

11 years agoAdd fdt_get_unit() function.
gber [Fri, 14 Sep 2012 09:36:35 +0000 (09:36 +0000)]
Add fdt_get_unit() function.

Obtained from: Semihalf

11 years agoSet busaddr and bussize to 0 when fdt_get_range() fails.
gber [Fri, 14 Sep 2012 09:33:35 +0000 (09:33 +0000)]
Set busaddr and bussize to 0 when fdt_get_range() fails.

Obtained from: Semihalf

11 years agoAdd basic USB support to Raspberry PI target.
hselasky [Fri, 14 Sep 2012 08:11:59 +0000 (08:11 +0000)]
Add basic USB support to Raspberry PI target.

11 years agoDWC OTG improvements. Implement full support for SPLIT transactions, in other
hselasky [Fri, 14 Sep 2012 07:52:57 +0000 (07:52 +0000)]
DWC OTG improvements. Implement full support for SPLIT transactions, in other
words FULL/LOW speed devices through HIGH speed HUBs. Improve support for
suspend and resume in host mode.

11 years agoThe MBR data is not necessarily aligned. This is a problem on ARM.
kientzle [Fri, 14 Sep 2012 05:24:06 +0000 (05:24 +0000)]
The MBR data is not necessarily aligned.  This is a problem on ARM.

11 years agoBelatedly add myself
eadler [Fri, 14 Sep 2012 01:23:28 +0000 (01:23 +0000)]
Belatedly add myself

MFC after: 3 days

11 years agoDo not change owner, group, or mode when package database directory and
jkim [Fri, 14 Sep 2012 00:19:06 +0000 (00:19 +0000)]
Do not change owner, group, or mode when package database directory and
its contents are created with pkg_add(1).  It may happen when the packing
list contains @owner, @group, or @mode.

Reported by: Donald Bostrom (dbostrom at niksun dot com)
Reviewed by: portmgr (bapt)

11 years agoRemove all the checks on curthread != NULL with the exception of some MD
attilio [Thu, 13 Sep 2012 22:26:22 +0000 (22:26 +0000)]
Remove all the checks on curthread != NULL with the exception of some MD
trap checks (eg. printtrap()).

Generally this check is not needed anymore, as there is not a legitimate
case where curthread != NULL, after pcpu 0 area has been properly
initialized.

Reviewed by: bde, jhb
MFC after: 1 week

11 years ago- Denote PCI-e endpoints that support FLR.
jhb [Thu, 13 Sep 2012 19:08:31 +0000 (19:08 +0000)]
- Denote PCI-e endpoints that support FLR.
- Make parsing of PCI-e extended capabilities assume that future version
  numbers are backwards compatible.
- Add new AER error descriptions.
- Add descriptions for more PCI-e extended capabilities.

MFC after: 1 week

11 years ago- Add some registers defined in PCI 3.0 including new AER bits.
jhb [Thu, 13 Sep 2012 19:05:24 +0000 (19:05 +0000)]
- Add some registers defined in PCI 3.0 including new AER bits.
- Add constants for the rest of the fields in the PCI-express device
  capability and control registers.
- Tweak some of the recently added PCI-e capability constants (always
  use hex for offsets in config space, and include a shortened
  version of the relevant register in the name of field constants).

MFC after: 1 week

11 years agoDon't use AR_PHY_MODE to setup half/quarter rate.
adrian [Thu, 13 Sep 2012 18:24:13 +0000 (18:24 +0000)]
Don't use AR_PHY_MODE to setup half/quarter rate.

I'm not sure where in the deep, distant past I found the AR_PHY_MODE
registers for half/quarter rate mode, but unfortunately that doesn't
seem to work "right" for non-AR9280 chips.

Specifically:

* don't touch AR_PHY_MODE
* set the PLL bits when configuring half/quarter rate

I've verified this on the AR9280 (5ghz fast clock) and the AR5416.

The AR9280 works in both half/quarter rate; the AR5416 unfortunately
only currently works at half rate.  It fails to calibrate on quarter rate.

11 years agoRemove scripts and tools which only functioned when src was using CVS
eadler [Thu, 13 Sep 2012 17:49:11 +0000 (17:49 +0000)]
Remove scripts and tools which only functioned when src was using CVS

Approved by: cperciva
MFC after: 1 week

11 years agoMinor mdoc fix.
joel [Thu, 13 Sep 2012 16:59:20 +0000 (16:59 +0000)]
Minor mdoc fix.

11 years agoIntroduce a new make variable COMPILER_TYPE that specifies what
brooks [Thu, 13 Sep 2012 16:00:46 +0000 (16:00 +0000)]
Introduce a new make variable COMPILER_TYPE that specifies what
type of compiler is being used (currently clang or gcc).  COMPILER_TYPE
is set in the new bsd.compiler.mk file based on the value of the CC
variable or, should it prove informative, by running ${CC} --version
and examining the output.

To avoid negative performance impacts in the default case and correct
value for COMPILER_TYPE type is determined and passed in the environment
of submake instances while building world.

Replace adhoc attempts at determining the compiler type by examining
CC or MK_CLANG_IS_CC with checks of COMPILER_TYPE.  This eliminates
bootstrapping complications when first setting WITH_CLANG_IS_CC.

Sponsored by: DARPA, AFRL
Reviewed by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>, imp, linimon
(with some modifications post review)
MFC after: 2 weeks

11 years agoIgnore stop and continue signals sent to an exiting process. Stop signals
jhb [Thu, 13 Sep 2012 15:51:18 +0000 (15:51 +0000)]
Ignore stop and continue signals sent to an exiting process.  Stop signals
set p_xstat to the signal that triggered the stop, but p_xstat is also
used to hold the exit status of an exiting process.  Without this change,
a stop signal that arrived after a process was marked P_WEXIT but before
it was marked a zombie would overwrite the exit status with the stop signal
number.

Reviewed by: kib
MFC after: 1 week

11 years agoDefine missing DEBUGOUT# macros. DEBUGOUT[45] are not yet used but are
eadler [Thu, 13 Sep 2012 14:40:24 +0000 (14:40 +0000)]
Define missing DEBUGOUT# macros. DEBUGOUT[45] are not yet used but are
being defined pre-emptively to avoid future build breakage

PR: kern/168967
Submitted by: fuzhli <fuzl@arraynetworks.com.cn>
Approved by: cperciva
MFC after: 1 week

11 years agoAdd global and per-module sysctls/tunables to enable/disable metadata taste.
mav [Thu, 13 Sep 2012 13:27:09 +0000 (13:27 +0000)]
Add global and per-module sysctls/tunables to enable/disable metadata taste.
That should help to handle some cases when disk has some RAID metadata that
should be ignored, especially during boot.

MFC after: 3 days

11 years agoThe deadfs VOPs for vop_ioctl and vop_bmap call itself recursively,
kib [Thu, 13 Sep 2012 13:05:45 +0000 (13:05 +0000)]
The deadfs VOPs for vop_ioctl and vop_bmap call itself recursively,
which is an elaborate way to cause kernel panic. Change the VOPs
implementation to return EBADF for a reclaimed vnode.

While the calls to vop_bmap should not reach deadfs, it is indeed
possible for vop_ioctl, because the VOP locking protocol is to pass
the vnode to VOP unlocked. The actual panic was observed when ioctl
was called on procfs filedescriptor which pointed to an exited
process.

Reported by: zont
Tested by: pho
MFC after: 1 week

11 years ago- Fix a typo in debug message.
zont [Thu, 13 Sep 2012 12:55:10 +0000 (12:55 +0000)]
- Fix a typo in debug message.

Approved by: kib (mentor)
MFC after: 3 days

11 years agoDocument the *_chroot, *_user, *_group and *_nice knobs for services started
ivoras [Thu, 13 Sep 2012 10:26:55 +0000 (10:26 +0000)]
Document the *_chroot, *_user, *_group and *_nice knobs for services started
by rcng.

Reviewed by: wblock, dougb

11 years agoMFV of 240454, tzdata2012f
edwin [Thu, 13 Sep 2012 10:17:01 +0000 (10:17 +0000)]
MFV of 240454, tzdata2012f

- Pacific/Fiji will go into DST from 21 October 2012 till 20 January 2013.
- Fix offset for Pacific/Tokelau.
- Gaza and West Bank had DST from 29 March to 28 September 2012.
- Syria has DST from April till October
- Morocco had DST from April to September 2012 except for 20 July to 20 August.
- Cuba changed to DST from 1 April 2012 only.
- Haiti has DST between 8 March and 1 November in 2012.

Obtained from: ftp://ftp.iana.org/tz/releases/

11 years agoRename the IVY_RNG option to RDRAND_RNG.
kib [Thu, 13 Sep 2012 10:12:16 +0000 (10:12 +0000)]
Rename the IVY_RNG option to RDRAND_RNG.

Based on submission by: Arthur Mesh <arthurmesh@gmail.com>
MFC after: 2 weeks

11 years agoInstall interrupt handlers early, during attach, for the reason
np [Thu, 13 Sep 2012 09:18:13 +0000 (09:18 +0000)]
Install interrupt handlers early, during attach, for the reason
explained in r239913 by jhb.

MFC after: 1 week

11 years agoUse native FreeBSD facilities everywhere except the shared code in common/
np [Thu, 13 Sep 2012 09:10:10 +0000 (09:10 +0000)]
Use native FreeBSD facilities everywhere except the shared code in common/

MFC after: 1 week

11 years agoAllow cxgbe to be built into a kernel with "device cxgbe."
np [Thu, 13 Sep 2012 09:01:52 +0000 (09:01 +0000)]
Allow cxgbe to be built into a kernel with "device cxgbe."

MFC after: 1 week

11 years agoRename __member2struct() to __containerof().
ed [Thu, 13 Sep 2012 08:13:01 +0000 (08:13 +0000)]
Rename __member2struct() to __containerof().

Compared to __member2struct(), this macro has the following advantages:

- It ensures that the type of the pointer is compatible with the member
  field of the structure (or a void pointer).
- It works properly in combination with volatile and const, though
  unfortunately it drops these qualifiers from the returned value.

mdf@ proposed to add the container_of() macro, just like Linux has.
Eventually I decided against this, as <sys/param.h> is included all over
the place. It seems container_of() on Linux is specific to the kernel,
not userspace. I'd rather not pollute userspace with this.

I also thought about adding __container_of(), but this would have two
advantages. Xorg seems to already have a __container_of(), which is not
compatible with this version. Also, the underscore in the middle
conflicts with our existing macros (__offsetof, __rangeof, etc).

I'm changing member2struct() to use its old code, as the extra
strictness of this new macro conflicts with existing code (read: cxgb).

MFC after: 1 month

11 years agoEnable fractional 5G mode on half/quarter rate channels.
adrian [Thu, 13 Sep 2012 07:25:41 +0000 (07:25 +0000)]
Enable fractional 5G mode on half/quarter rate channels.

Obtained from: Linux ath9k

11 years agoFlip on half/quarter rate support.
adrian [Thu, 13 Sep 2012 07:24:14 +0000 (07:24 +0000)]
Flip on half/quarter rate support.

No, this isn't HT/5 and HT/10 support.  This is the 11a half/quarter
rate support primarily used by the 4.9GHz and GSM band regulatory
domains.

This is definitely a work in progress.

TODO:

* everything in the last commit;
* lots more interoperability testing with the AR5212 half/quarter rate
  support for the relevant chips;
* Do some interop testing on half/quarter rate support between _all_
  the 11n chips - AR5416, AR9160, AR9280 (and AR9285/AR9287 when 2GHz
  half/quarter rate support is coded up.)

11 years agoIntroduce an AR5416 flavour of the IFS and mac usec/timing configuration
adrian [Thu, 13 Sep 2012 07:22:40 +0000 (07:22 +0000)]
Introduce an AR5416 flavour of the IFS and mac usec/timing configuration
used when running the chips in half/quarter rate.

This sets up some default parameters which are then overridden by the
driver (which manually configures things like slot timing at interface
start time.)

Although this is a copy-and-modify from the AR5212 HAL, I did peek
at the reference HAL and the ath9k driver to see what they did.
Ath9k in particular doesn't hard-code this - instead, their version
of ar5416InitUserSettings() does all of the relevant math.

TODO:

* do the math, not hard code things!
* fix the mac clock calculation for the AR9287; since it runs the
  MAC clock at a higher rate, requiring all the duration calculations
  to change;
* Do a whole lot more validation for half/quarter rates.

Obtained from: Qualcomm Atheros, Linux ath9k

11 years agoCall the ar5212SetCoverageClass() function for now.
adrian [Thu, 13 Sep 2012 07:19:53 +0000 (07:19 +0000)]
Call the ar5212SetCoverageClass() function for now.

Some of the math is a little wrong thanks to clocks in 11a mode running
at 44MHz when in fast clock mode (rather than 40MHz, which the chips
before AR9280 ran 11a in).  That'll have to be addressed in a future commit.

11 years agoAdd register defintions for the AR5416 TX/RX latency fields.
adrian [Thu, 13 Sep 2012 07:17:58 +0000 (07:17 +0000)]
Add register defintions for the AR5416 TX/RX latency fields.

Obtained from: Qualcomm Atheros

11 years agoCompensate for half/quarter rate differences in MAC clock speed.
adrian [Thu, 13 Sep 2012 07:17:29 +0000 (07:17 +0000)]
Compensate for half/quarter rate differences in MAC clock speed.

This fixes the incorrect slot (and likely ACK/RTS timeout) values
which I see when enabling half/quarter rate support on the AR9280.

The resulting math matches the expected calculated default values.

11 years agoUpdate interface to firmware 1.6.2 and include the firmware in the driver.
np [Thu, 13 Sep 2012 06:32:52 +0000 (06:32 +0000)]
Update interface to firmware 1.6.2 and include the firmware in the driver.

Obtained from: Chelsio
MFC after: 1 week

11 years agoSimplify the kernel pmap locking in pmap_enter_pv(). While I'm here, tidy
alc [Thu, 13 Sep 2012 06:16:49 +0000 (06:16 +0000)]
Simplify the kernel pmap locking in pmap_enter_pv().  While I'm here, tidy
up the comments and whitespace.

Tested by: cognet

11 years agoNo need to leak these into the includer's namespace.
grehan [Thu, 13 Sep 2012 00:42:56 +0000 (00:42 +0000)]
No need to leak these into the includer's namespace.

Submitted by: Bryan Venteicher bryanv at daemoninthecloset org

11 years agoRelax requirement of certain mb()s
grehan [Thu, 13 Sep 2012 00:36:46 +0000 (00:36 +0000)]
Relax requirement of certain mb()s

Submitted by: Bryan Venteicher bryanv at daemoninthecloset org

11 years agoCorrectness: use __member2struct() on the correct fields.
ed [Wed, 12 Sep 2012 22:54:11 +0000 (22:54 +0000)]
Correctness: use __member2struct() on the correct fields.

The prev-pointers point to the next-pointers of the previous element --
not the ENTRY structure. The next-pointers are stored in the ENTRY
structures first, so the code would already work correctly. Still, it is
more accurate to use the next-fields.

To prevent misuse of __member2struct() in the future, I've got a patch
that requires the pointer to be passed to this macro to be compatible
with the member of the structure. I'll commit this patch after I've
tested it properly.

MFC after: 1 month.

11 years agoSwitch batch to an SLIST.
ed [Wed, 12 Sep 2012 22:16:31 +0000 (22:16 +0000)]
Switch batch to an SLIST.

This code requires none of the features of LIST.

11 years agoImprove check coverage about idle threads.
attilio [Wed, 12 Sep 2012 22:10:53 +0000 (22:10 +0000)]
Improve check coverage about idle threads.

Idle threads are not allowed to acquire any lock but spinlocks.
Deny any attempt to do so by panicing at the locking operation
when INVARIANTS is on. Then, remove the check on blocking on a
turnstile.
The check in sleepqueues is left because they are not allowed to use
tsleep() either which could happen still.

Reviewed by: bde, jhb, kib
MFC after: 1 week

11 years agoTweak the commit message in case of panic for sleeping from threads
attilio [Wed, 12 Sep 2012 22:05:54 +0000 (22:05 +0000)]
Tweak the commit message in case of panic for sleeping from threads
with TDP_NOSLEEPING on.

The current message has no informations on the thread and wchan
involed, which may be useful in case where dumps have mangled dwarf
informations.

Reported by:    kib
Reviewed by: bde, jhb, kib
MFC after: 1 week

11 years agoImplement LIST_PREV().
ed [Wed, 12 Sep 2012 21:03:48 +0000 (21:03 +0000)]
Implement LIST_PREV().

Regular LISTs have been implemented in such a way that the prev-pointer
does not point to the previous element, but to the next-pointer stored
in the previous element. This is done to simplify LIST_REMOVE(). This
macro can be implemented without knowing the address of the list head.

Unfortunately this makes it harder to implement LIST_PREV(), which is
why this macro was never here. Still, it is possible to implement this
macro. If the prev-pointer points to the list head, we return NULL.
Otherwise we simply subtract the offset of the prev-pointer within the
structure.

It's not as efficient as traversing forward of course, but in practice
it shouldn't be that bad. In almost all use cases, people will want to
compare the value returned by LIST_PREV() against NULL, so an optimizing
compiler will not emit code that does more branching than TAILQs.

While there, make the code a bit more readable by introducing
__member2struct(). This makes STAILQ_LAST() far more readable.

MFC after: 1 month

11 years agoMake pxe device in lsdev really include device name, looking like this:
mav [Wed, 12 Sep 2012 21:00:37 +0000 (21:00 +0000)]
Make pxe device in lsdev really include device name, looking like this:
    pxe0:    192.168.3.1:/storage/nfsroot/amd64
, instead of confusing and less useful:
      192.168.3.1:pxeboot

11 years agoRemove some trailing whitespace.
jimharris [Wed, 12 Sep 2012 19:36:54 +0000 (19:36 +0000)]
Remove some trailing whitespace.

11 years agoFix TX FIFO sizes. Correct FIFO handling in Host mode.
hselasky [Wed, 12 Sep 2012 19:15:29 +0000 (19:15 +0000)]
Fix TX FIFO sizes. Correct FIFO handling in Host mode.