]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoBring over the HAL/OPS changes, instead of two const structs it is now
bschmidt [Sat, 16 Apr 2011 14:51:46 +0000 (14:51 +0000)]
Bring over the HAL/OPS changes, instead of two const structs it is now
slightly more dynamic.

Obtained from: OpenBSD

13 years agoRead RX/TX chainmasks directly of the EEPROM. Some chips are known to
bschmidt [Sat, 16 Apr 2011 14:49:29 +0000 (14:49 +0000)]
Read RX/TX chainmasks directly of the EEPROM. Some chips are known to
have the wrong/broken information stored, keep the hardcoded values for
those.

Obtained from: OpenBSD

13 years agoJust a whitespace sync, some more style(9) conform then others.
bschmidt [Sat, 16 Apr 2011 14:40:42 +0000 (14:40 +0000)]
Just a whitespace sync, some more style(9) conform then others.

13 years agoSync comments with OpenBSD.
bschmidt [Sat, 16 Apr 2011 14:38:57 +0000 (14:38 +0000)]
Sync comments with OpenBSD.

13 years agoSync debug and error messages with OpenBSD.
bschmidt [Sat, 16 Apr 2011 14:38:01 +0000 (14:38 +0000)]
Sync debug and error messages with OpenBSD.

13 years agoShuffle code around a bit. Mostly to group functional connected things,
bschmidt [Sat, 16 Apr 2011 14:36:43 +0000 (14:36 +0000)]
Shuffle code around a bit. Mostly to group functional connected things,
others to get the same order as the OpenBSD code.

13 years agoDon't do Kite antenna switch selection this way (for now); antenna
adrian [Sat, 16 Apr 2011 13:47:17 +0000 (13:47 +0000)]
Don't do Kite antenna switch selection this way (for now); antenna
diversity is done elsewhere now.

13 years agoRename some stuff in favour of the OpenBSD names:
bschmidt [Sat, 16 Apr 2011 13:40:32 +0000 (13:40 +0000)]
Rename some stuff in favour of the OpenBSD names:
- prefer EDCA over WME
- qid for a TXQ ID
- reg for register values

13 years agoFix WME/QoS handling:
bschmidt [Sat, 16 Apr 2011 13:25:19 +0000 (13:25 +0000)]
Fix WME/QoS handling:
- move the TX queue selection into iwn_tx_data/iwn_tx_data_raw
- extract traffic identifier and use it
- do not expect ACKs for frames marked as such

13 years agoRemove if_ierrors which do not necessarily indicate a RX error, also
bschmidt [Sat, 16 Apr 2011 13:12:12 +0000 (13:12 +0000)]
Remove if_ierrors which do not necessarily indicate a RX error, also
do account send packets. While here use the IWN_TX_FAIL constant.

13 years agoDisable classic-style fast diversity on the AR5416 and later.
adrian [Sat, 16 Apr 2011 12:46:46 +0000 (12:46 +0000)]
Disable classic-style fast diversity on the AR5416 and later.

Antenna diversity on the >= AR5416 is implemented differently than the
AR5212 and previous chips. So for now, and not to confuse things, just
disable it for now.

13 years agoInstead of hardcoding TX rates and using that to fill the retry table
bschmidt [Sat, 16 Apr 2011 12:42:54 +0000 (12:42 +0000)]
Instead of hardcoding TX rates and using that to fill the retry table
use the neogotiated ni_rates instead.

13 years agoRemove some duplicate code from the AR9285 TX power configuration path.
adrian [Sat, 16 Apr 2011 11:59:37 +0000 (11:59 +0000)]
Remove some duplicate code from the AR9285 TX power configuration path.

13 years agoRemove missing include directory in preparation for adding
brucec [Sat, 16 Apr 2011 11:15:57 +0000 (11:15 +0000)]
Remove missing include directory in preparation for adding
-Wmissing-include-dirs to CWARNFLAGS.

13 years agoReplace RX/TX ring allocation error messages with something more sane
bschmidt [Sat, 16 Apr 2011 11:14:42 +0000 (11:14 +0000)]
Replace RX/TX ring allocation error messages with something more sane
and remove those where the caller already prints one.

13 years agoPrevent double-free, also use the same error codes as OpenBSD.
bschmidt [Sat, 16 Apr 2011 11:11:22 +0000 (11:11 +0000)]
Prevent double-free, also use the same error codes as OpenBSD.

13 years agoAdd missing bus_dmamap_sync calls as well as remove two duplicate ones.
bschmidt [Sat, 16 Apr 2011 10:52:11 +0000 (10:52 +0000)]
Add missing bus_dmamap_sync calls as well as remove two duplicate ones.

Obtained from: OpenBSD

13 years agoUnify TX/RX ring allocation, finish the descriptior DMA stuff before
bschmidt [Sat, 16 Apr 2011 10:38:27 +0000 (10:38 +0000)]
Unify TX/RX ring allocation, finish the descriptior DMA stuff before
starting with data.

13 years agoMake sure to destroy all DMA tags and maps.
bschmidt [Sat, 16 Apr 2011 10:35:02 +0000 (10:35 +0000)]
Make sure to destroy all DMA tags and maps.

13 years agoRewrite DMA segment handling to be more inline with the OpenBSD code.
bschmidt [Sat, 16 Apr 2011 10:32:46 +0000 (10:32 +0000)]
Rewrite DMA segment handling to be more inline with the OpenBSD code.
Also change the m_len == 0 hack to have less code churn.

13 years agoscratch_paddr has the same address pre-assigned, use that instead.
bschmidt [Sat, 16 Apr 2011 09:39:08 +0000 (09:39 +0000)]
scratch_paddr has the same address pre-assigned, use that instead.

13 years agoIn case a new mbuf can't be loaded, reuse the old one.
bschmidt [Sat, 16 Apr 2011 09:34:40 +0000 (09:34 +0000)]
In case a new mbuf can't be loaded, reuse the old one.

13 years agoOpenBSD uses IWN_RBUF_SIZE not MJUMPAGESIZE for the RX path, also replace
bschmidt [Sat, 16 Apr 2011 08:59:21 +0000 (08:59 +0000)]
OpenBSD uses IWN_RBUF_SIZE not MJUMPAGESIZE for the RX path, also replace
caddr_t with void * to be in sync.

13 years agoRemove the flags argument of iwn_dma_contig_alloc(), it is always set
bschmidt [Sat, 16 Apr 2011 08:57:17 +0000 (08:57 +0000)]
Remove the flags argument of iwn_dma_contig_alloc(), it is always set
as BUS_DMA_NOWAIT. While here also set BUS_DMA_COHERENT.

13 years agoMove a comment to the right place. The rearrange done in r208928 left
jh [Sat, 16 Apr 2011 08:38:11 +0000 (08:38 +0000)]
Move a comment to the right place. The rearrange done in r208928 left
the comment to a wrong place.

13 years agoRSSI related syncs with the OpenBSD code:
bschmidt [Sat, 16 Apr 2011 07:32:57 +0000 (07:32 +0000)]
RSSI related syncs with the OpenBSD code:
- read RSSI only for the active chains
- cast RSSI/NF to int8_t before passing it up to radiotap
- remove the htole64() for the timestamp

Obtained from: OpenBSD

13 years agoPass errors that might happen during state transitions up to net80211.
bschmidt [Sat, 16 Apr 2011 07:21:00 +0000 (07:21 +0000)]
Pass errors that might happen during state transitions up to net80211.

13 years agoObtain the channel number directly from the laster RXON command, also
bschmidt [Sat, 16 Apr 2011 07:17:03 +0000 (07:17 +0000)]
Obtain the channel number directly from the laster RXON command, also
chan is an uint8_t.

13 years agoMove TUNABLE_INT_FETCH() out of the SIM lock to avoid sleeping while
jh [Sat, 16 Apr 2011 06:54:41 +0000 (06:54 +0000)]
Move TUNABLE_INT_FETCH() out of the SIM lock to avoid sleeping while
holding the lock. The fix is analogous to r220618 for ada(4).

Reviewed by: mav

13 years agoMFi386: revisions 220389 and 220392
nyan [Sat, 16 Apr 2011 06:20:49 +0000 (06:20 +0000)]
MFi386: revisions 220389 and 220392

  - Mark getc() as inline, this has no effect on gcc but helps clang.
  - Move getc() body before xgetc() so gcc does not emit a warning about
    function having no body.

13 years agoChange the experimental NFS client so that it creates nfsiod
rmacklem [Fri, 15 Apr 2011 23:07:48 +0000 (23:07 +0000)]
Change the experimental NFS client so that it creates nfsiod
threads in the same manner as the regular NFS client after
r214026 was committed. This resolves the lors fixed by r214026
and its predecessors for the regular client.

Reviewed by: jhb
MFC after: 2 weeks

13 years agoPurge _USE_BERKELEY_YACC definition from Makefile. This ugly hack is no
jkim [Fri, 15 Apr 2011 21:47:10 +0000 (21:47 +0000)]
Purge _USE_BERKELEY_YACC definition from Makefile.  This ugly hack is no
long necessary for us since r220680.

13 years agoRe-merge with ACPICA vendor source.
jkim [Fri, 15 Apr 2011 21:38:24 +0000 (21:38 +0000)]
Re-merge with ACPICA vendor source.

13 years agofix the order of the prototypes from the previosu commit
bschmidt [Fri, 15 Apr 2011 20:40:49 +0000 (20:40 +0000)]
fix the order of the prototypes from the previosu commit

13 years agoThe 6005 series devices need additional temperature offset calibration
bschmidt [Fri, 15 Apr 2011 20:35:15 +0000 (20:35 +0000)]
The 6005 series devices need additional temperature offset calibration
as well as the IWN_GP_DRIVER_CALIB_VER6 bit set.

Obtained from: OpenBSD

13 years agoRevert some of local calibration changes in favour of the OpenBSD
bschmidt [Fri, 15 Apr 2011 20:31:02 +0000 (20:31 +0000)]
Revert some of local calibration changes in favour of the OpenBSD
implementation. This includes the fix required for the 6050 series
devices.

13 years agoremove debug left-overs
bschmidt [Fri, 15 Apr 2011 20:19:18 +0000 (20:19 +0000)]
remove debug left-overs

13 years agoSplit up watchdog and calibration callout. This allows us to use different
bschmidt [Fri, 15 Apr 2011 20:17:52 +0000 (20:17 +0000)]
Split up watchdog and calibration callout. This allows us to use different
timing on both and to remove some monitor mode specific hacks (which has
no calibration).

13 years agoMerge ACPICA 20110413.
jkim [Fri, 15 Apr 2011 18:34:27 +0000 (18:34 +0000)]
Merge ACPICA 20110413.

13 years agoSplit out bluetooth coexistence setup.
bschmidt [Fri, 15 Apr 2011 17:10:52 +0000 (17:10 +0000)]
Split out bluetooth coexistence setup.

13 years agoFixes for firmware handling:
bschmidt [Fri, 15 Apr 2011 16:59:56 +0000 (16:59 +0000)]
Fixes for firmware handling:
- there is a local variable for sc->fw_dma, use that instead
- OpenBSD uses 5*hz to wait for firmware to be loaded
- in case the firmware module contains invalid data, actually release it

13 years agoOnly handle beacon misses while in RUN state and not scanning.
bschmidt [Fri, 15 Apr 2011 16:55:45 +0000 (16:55 +0000)]
Only handle beacon misses while in RUN state and not scanning.

13 years agoDon't timeout when stopping DMA channels.
bschmidt [Fri, 15 Apr 2011 16:50:37 +0000 (16:50 +0000)]
Don't timeout when stopping DMA channels.

Obtained from: OpenBSD

13 years agoFix build on FreeBSD. This patch was submitted upstream:
jkim [Fri, 15 Apr 2011 16:44:04 +0000 (16:44 +0000)]
Fix build on FreeBSD.  This patch was submitted upstream:

http://lists.acpica.org/pipermail/devel/2011-April/000253.html

Similar fixes will show up in the next ACPICA release.

13 years agoSome changes around hot-plug and interface power-management:
mav [Fri, 15 Apr 2011 16:40:31 +0000 (16:40 +0000)]
Some changes around hot-plug and interface power-management:
 - use ATA_SE_EXCHANGED (SError.DIAG.X) bit to detect hot-plug events when
power-management enabled and ATA_SE_PHY_CHANGED (SError.DIAG.N) can't be
trusted;
 - on controllers supporting staggered spin-up (SS) put unused channels
into Listen state instead of Off. It should still save some power, but
allow plug-in events to be detected;
 - on controllers supporting cold presence detection (CPD), when power
management enabled, use CPD events to detect hot-plug in addition to PHY
events.

13 years agosh: Add test for bin/12137.
jilles [Fri, 15 Apr 2011 15:33:24 +0000 (15:33 +0000)]
sh: Add test for bin/12137.

13 years agosh: Add test for obscure and ambiguous ${#?}.
jilles [Fri, 15 Apr 2011 15:26:05 +0000 (15:26 +0000)]
sh: Add test for obscure and ambiguous ${#?}.

13 years agosh: Add test for bin/56147.
jilles [Fri, 15 Apr 2011 15:14:58 +0000 (15:14 +0000)]
sh: Add test for bin/56147.

13 years agoAdd basic support for the Marvell Orion TS-7800.
philip [Fri, 15 Apr 2011 13:37:43 +0000 (13:37 +0000)]
Add basic support for the Marvell Orion TS-7800.

Submitted by: Kristof Provost <kristof -at- freebsd.org>

13 years agoRemove an incorrect be16toh() that prevented geom_part_apm from working on
gavin [Fri, 15 Apr 2011 12:32:52 +0000 (12:32 +0000)]
Remove an incorrect be16toh() that prevented geom_part_apm from working on
little-endian machines.

Reviewed by: marcel
MFC after: 2 weeks

13 years agoMake ada(4) driver put ATA disks into sleep state on suspend.
mav [Fri, 15 Apr 2011 07:07:29 +0000 (07:07 +0000)]
Make ada(4) driver put ATA disks into sleep state on suspend.

Submitted by: jkim (original version)

13 years agoFix a couple of bad races that can occur when a cxgbe interface is taken
np [Fri, 15 Apr 2011 03:09:27 +0000 (03:09 +0000)]
Fix a couple of bad races that can occur when a cxgbe interface is taken
down.  The ingress queue lock was unused and has been removed as part of
these changes.

- An in-flight egress update from the SGE must be handled before the
  queue that requested it is destroyed.  Wait for the update to arrive.

- Interrupt handlers must stop processing rx events for a queue before
  the queue is destroyed.  Events that have not yet been processed
  should be ignored once the queue disappears.

MFC after: 1 week

13 years agoFix the experimental NFSv4 server so that it uses VOP_PATHCONF()
rmacklem [Thu, 14 Apr 2011 23:46:15 +0000 (23:46 +0000)]
Fix the experimental NFSv4 server so that it uses VOP_PATHCONF()
to determine if a file system supports NFSv4 ACLs. Since
VOP_PATHCONF() must be called with a locked vnode, the function
is called before nfsvno_fillattr() and the result is passed in
as an extra argument.

MFC after: 2 weeks

13 years agoAdd event handlers for (ACPI) suspend/resume events. Suspend event handlers
jkim [Thu, 14 Apr 2011 22:17:39 +0000 (22:17 +0000)]
Add event handlers for (ACPI) suspend/resume events.  Suspend event handlers
are invoked right before device drivers go into sleep state and resume event
handlers are invoked right after all device drivers are waken up.

13 years agogetfh(2): Add xrefs for fhopen(2), open(2), stat(2).
jilles [Thu, 14 Apr 2011 22:06:11 +0000 (22:06 +0000)]
getfh(2): Add xrefs for fhopen(2), open(2), stat(2).

MFC after: 1 week

13 years agoModify the experimental NFSv4 server so that it handles
rmacklem [Thu, 14 Apr 2011 21:49:52 +0000 (21:49 +0000)]
Modify the experimental NFSv4 server so that it handles
crossing of server mount points properly. The functions
nfsvno_fillattr() and nfsv4_fillattr() were modified to
take the extra arguments that are the mount point, a flag
to indicate that it is a file system root and the mounted
on fileno. The mount point argument needs to be busy when
nfsvno_fillattr() is called, since the vp argument is not
locked.

Reviewed by: kib
MFC after: 2 weeks

13 years agoMake CAM report devices with ATA/SATA transport to devstat(9) as IDE.
mav [Thu, 14 Apr 2011 21:25:32 +0000 (21:25 +0000)]
Make CAM report devices with ATA/SATA transport to devstat(9) as IDE.

13 years agoThere is no need to request a tx credit flush if such a request is already
np [Thu, 14 Apr 2011 20:06:23 +0000 (20:06 +0000)]
There is no need to request a tx credit flush if such a request is already
pending.

MFC after: 3 days

13 years agoAdjust debugging string to match the actual function.
andreast [Thu, 14 Apr 2011 19:37:31 +0000 (19:37 +0000)]
Adjust debugging string to match the actual function.

Approved by: nwhitehorn (mentor)

13 years agoUse newly added rdtsc32() for DELAY(9) as well.
jkim [Thu, 14 Apr 2011 19:11:45 +0000 (19:11 +0000)]
Use newly added rdtsc32() for DELAY(9) as well.

13 years agoAdd manual page for rctl.conf(5).
trasz [Thu, 14 Apr 2011 18:37:27 +0000 (18:37 +0000)]
Add manual page for rctl.conf(5).

13 years agoThe macro MOEA_PVO_CHECK is empty and not used. It is a left over from the
andreast [Thu, 14 Apr 2011 18:26:50 +0000 (18:26 +0000)]
The macro MOEA_PVO_CHECK is empty and not used. It is a left over from the
NetBSD import. Remove the definition and all its occurrences.

Approved by: nwhitehorn (mentor)

13 years agoAdd stoppcbs[] arrays on powerpc(64) and have each CPU save its
andreast [Thu, 14 Apr 2011 18:14:43 +0000 (18:14 +0000)]
Add stoppcbs[] arrays on powerpc(64) and have each CPU save its
current context in the IPI_STOP handler. Similar as done on other
architectures.

Approved by: nwhitehorn (mentor)

13 years agoWork around an emulator problem where virtual CPU advertises TSC is P-state
jkim [Thu, 14 Apr 2011 17:50:26 +0000 (17:50 +0000)]
Work around an emulator problem where virtual CPU advertises TSC is P-state
invariant and APERF/MPERF MSRs exist but these MSRs never tick.  When we
calculate effective frequency from cpu_est_clockrate(), it caused panic of
division-by-zero.  Now we test whether these MSRs actually increase to avoid
such foot-shooting.

Reported by: dim
Tested by: dim

13 years agoInstead of trying to figure out which rxon.flags to clear, restart
bschmidt [Thu, 14 Apr 2011 17:42:21 +0000 (17:42 +0000)]
Instead of trying to figure out which rxon.flags to clear, restart
from scratch. Remove htole16() calls, rxon.chan is an uint8_t,
ieee80211_chan2ieee() does return an ic_ieee as an int, but I heavily
doubt a htole16() will buy us anything here.

13 years agoiwn_cleanup() is just a wrapper around iwn_detach(), call it directly
bschmidt [Thu, 14 Apr 2011 17:31:34 +0000 (17:31 +0000)]
iwn_cleanup() is just a wrapper around iwn_detach(), call it directly
instead.

13 years agoReuse net80211 code:
bschmidt [Thu, 14 Apr 2011 17:26:13 +0000 (17:26 +0000)]
Reuse net80211 code:
- IWN_TXOP_TO_US is equal to IEEE80211_TXOP_TO_US
- use IEEE80211_DUR_TU
- ieee80211_add_rates/ieee80211_add_xrates are public, use em
- copied ieee80211_add_ssid it is not public

13 years agoRemove IWN_FLAG_HAS_5GHZ and IWN_PCI_BAR0, both unused.
bschmidt [Thu, 14 Apr 2011 17:19:33 +0000 (17:19 +0000)]
Remove IWN_FLAG_HAS_5GHZ and IWN_PCI_BAR0, both unused.

13 years agoUse newly added rdtsc32() for the timecounter_get_t method.
jkim [Thu, 14 Apr 2011 17:08:23 +0000 (17:08 +0000)]
Use newly added rdtsc32() for the timecounter_get_t method.

13 years agoAdd a function rdtsc32() to read lower 32 bits from TSC and discard upper
jkim [Thu, 14 Apr 2011 16:53:32 +0000 (16:53 +0000)]
Add a function rdtsc32() to read lower 32 bits from TSC and discard upper
32 bits.  Some times compiler inserts unnecessary instructions to preserve
unused upper 32 bits even when it is casted to a 32-bit value.  It reduces
such compiler mistakes where every cycle counts.

13 years agoIn r219639, SSSE3 instruction set support was backported to our gcc.
dim [Thu, 14 Apr 2011 16:45:16 +0000 (16:45 +0000)]
In r219639, SSSE3 instruction set support was backported to our gcc.

Therefore, we also need to install the new tmmintrin.h header containing
the related intrinsic functions, similar to xmmintrin.h, emmintrin.h,
etc.

Reported by: George Liaskos <geo.liaskos@gmail.com>

13 years agoConsistently use __volatile as the rest of this file.
jkim [Thu, 14 Apr 2011 16:19:41 +0000 (16:19 +0000)]
Consistently use __volatile as the rest of this file.

13 years agoPrefer C99 standard integers to reduce diff from i386 version.
jkim [Thu, 14 Apr 2011 16:14:35 +0000 (16:14 +0000)]
Prefer C99 standard integers to reduce diff from i386 version.

13 years agoConsistently use C99 standard integers as the rest of this file.
jkim [Thu, 14 Apr 2011 16:02:52 +0000 (16:02 +0000)]
Consistently use C99 standard integers as the rest of this file.

13 years agoProvide a (belated) UPDATING note related to the new release-building
nwhitehorn [Thu, 14 Apr 2011 15:44:44 +0000 (15:44 +0000)]
Provide a (belated) UPDATING note related to the new release-building
process so that fewer people will be caught unaware.

Requested by: emaste

13 years agoAdd $FreeBSD$'s.
obrien [Thu, 14 Apr 2011 15:42:15 +0000 (15:42 +0000)]
Add $FreeBSD$'s.

13 years agoRevert r194662, since it breaks ng_ksocket(4) and may break
glebius [Thu, 14 Apr 2011 14:54:22 +0000 (14:54 +0000)]
Revert r194662, since it breaks ng_ksocket(4) and may break
other socket consumers with alternate sb_upcall.

PR: kern/154676
Submitted by: Arnaud Lacombe <lacombar gmail.com>
MFC after: 7 days

13 years agoRemove stale M_ZOMBIE malloc type.
pluknet [Thu, 14 Apr 2011 14:25:47 +0000 (14:25 +0000)]
Remove stale M_ZOMBIE malloc type.
This type is unused since embedding p_ru into struct proc.

MFC after: 1 week

13 years agoRefactor udp_input(), moving calls to u_tun_func() into udp_append().
trasz [Thu, 14 Apr 2011 10:40:57 +0000 (10:40 +0000)]
Refactor udp_input(), moving calls to u_tun_func() into udp_append().

Obtained from: Wheel Systems Sp. z o.o.
Reviewed by: bz@

13 years agoThe mbuf_frag_size always was and is file local and not queried from base
bz [Thu, 14 Apr 2011 09:47:09 +0000 (09:47 +0000)]
The mbuf_frag_size always was and is file local and not queried from base
user space tools via kvm.  Mark it static.

MFC after: 3 days

13 years agoFix typo in write_cache tunable name and move TUNABLE_INT_FETCH() out of
mav [Thu, 14 Apr 2011 09:11:50 +0000 (09:11 +0000)]
Fix typo in write_cache tunable name and move TUNABLE_INT_FETCH() out of
the SIM lock to fix WITNESS warning.

Reported by: jh

13 years agoRemove vestiges of disklabel(5).
pluknet [Thu, 14 Apr 2011 08:53:04 +0000 (08:53 +0000)]
Remove vestiges of disklabel(5).

Reviewed by: uqs
MFC after: 5 days

13 years agoProperly log few more ATA commands used by the kernel.
mav [Thu, 14 Apr 2011 08:17:45 +0000 (08:17 +0000)]
Properly log few more ATA commands used by the kernel.

13 years agoRefactor hard-reset implementation in mvs(4).
mav [Thu, 14 Apr 2011 07:49:45 +0000 (07:49 +0000)]
Refactor hard-reset implementation in mvs(4).

Instead of spinning in a tight loop for up to 15 seconds, polling for device
readiness while it spins up, return reset completion just after PHY reports
"connect well" or 100ms connection timeout. If device was found, use callout
for checking device readiness with 100ms period up to full 31 second timeout.

This fixes system freeze for 5-10 seconds on drives hot plug-in.

13 years agoFixed firmware revision decoding:
ru [Thu, 14 Apr 2011 07:14:22 +0000 (07:14 +0000)]
Fixed firmware revision decoding:
- the major is 7-bit binary encoded
- the minor is BCD encoded

PR: kern/151586
MFC after: 3 days

13 years agoAdd some tunable descriptions about x86 timers.
jkim [Thu, 14 Apr 2011 00:07:08 +0000 (00:07 +0000)]
Add some tunable descriptions about x86 timers.

Requested by: arundel

13 years agoAdd VOP_PATHCONF() support to the experimental NFS client
rmacklem [Wed, 13 Apr 2011 22:37:28 +0000 (22:37 +0000)]
Add VOP_PATHCONF() support to the experimental NFS client
so that it can, along with other things, report whether or
not NFS4 ACLs are supported.

MFC after: 2 weeks

13 years agoFix the experimental NFSv4 client so that it recognizes server
rmacklem [Wed, 13 Apr 2011 22:16:52 +0000 (22:16 +0000)]
Fix the experimental NFSv4 client so that it recognizes server
mount point crossings correctly. It was testing the wrong flag.
Also, try harder to make sure that the fsid is different than
the one assigned to the client mount point, by hashing the
server's fsid (just to create a different value deterministically)
when it is the same.

MFC after: 2 weeks

13 years agoAdd a new DDB command, "show rmans", which will show the address and brief
gavin [Wed, 13 Apr 2011 19:10:56 +0000 (19:10 +0000)]
Add a new DDB command, "show rmans", which will show the address and brief
details of each rman header, but not the contents of all rman structures
in the system.  This is especially useful on platforms where some rmans
have many thousands of entries in rmans, making scrolling through the
output of "show all rman" impractical.  Individual rmans can then be viewed
including their contents with "show rman 0xaddr" as usual.

Reviewed by: jhb

13 years agoImport ACPICA 20110413.
jkim [Wed, 13 Apr 2011 18:18:52 +0000 (18:18 +0000)]
Import ACPICA 20110413.

13 years agoRemove mii(4) dependency and unneeded headers.
yongari [Wed, 13 Apr 2011 16:35:43 +0000 (16:35 +0000)]
Remove mii(4) dependency and unneeded headers.

Reviewed by: davidch

13 years agoImprove SATA Asynchronous Notification feature support in CAM:
mav [Wed, 13 Apr 2011 16:20:54 +0000 (16:20 +0000)]
Improve SATA Asynchronous Notification feature support in CAM:
 - make SATA SIMs announce capabilities to handle SDB with Notification bit;
 - make PMP driver honor this SIMs capability;
 - make SATA XPT to negotiate and enable this feature for ATAPI devices.

This feature allows supporting SATA ATAPI devices to inform system about
some events happened, that may require attention. In my case this allows
LG GH22LS50 SATA DVR-RW drive to report tray open/close events. Events
reported to CAM in form of AC_SCSI_AEN async. Further they could be used
as a hints for checking device status and reporting media change to upper
layers, for example, via spoiling mechanism of GEOM.

13 years agoAdd in the AR9285 (Kite) diversity to if_ath, enabling TX/RX antenna
adrian [Wed, 13 Apr 2011 15:17:23 +0000 (15:17 +0000)]
Add in the AR9285 (Kite) diversity to if_ath, enabling TX/RX antenna
diversity.

This is bit dirty and likely should be revised at a later date,
with an eye to unifying/tidying up the whole diversity setup
and allowing developers to do "tricky stuff" as they desire.
For now, this works.

13 years agoAdd in the last bit of the HAL support for Kite diversity.
adrian [Wed, 13 Apr 2011 15:12:48 +0000 (15:12 +0000)]
Add in the last bit of the HAL support for Kite diversity.

* add a new method, specifically for doing per-RX packet
  antenna diversity
* set that HAL method only if it's Kite and a Kite chip that
  does diversity.

13 years agoMore kite diversity related changes.
adrian [Wed, 13 Apr 2011 15:08:51 +0000 (15:08 +0000)]
More kite diversity related changes.

* add a diversity flag to the HAL debugging section
* add a check to make sure the kite diversity code doesn't run
  on boards that don't require it, as not all Kite chips will
  implement it.
* add some debug statements when the diversity code makes
  changes to the antenna diversity/combining setup.

13 years agoChange this to be less noisy.
adrian [Wed, 13 Apr 2011 14:51:07 +0000 (14:51 +0000)]
Change this to be less noisy.

13 years agoMake sure that extra threads in 32-bit processes stay in 32-bit mode. This
nwhitehorn [Wed, 13 Apr 2011 13:24:27 +0000 (13:24 +0000)]
Make sure that extra threads in 32-bit processes stay in 32-bit mode. This
fixes operation of threaded 32-bit binaries on 64-bit kernels.

13 years agoShow client's access cache statistics.
ru [Wed, 13 Apr 2011 13:05:48 +0000 (13:05 +0000)]
Show client's access cache statistics.

13 years ago- Fixed nfs_printf() to use vprintf().
ru [Wed, 13 Apr 2011 12:46:25 +0000 (12:46 +0000)]
- Fixed nfs_printf() to use vprintf().
- Fixed vfs.nfs.acdebug sysctl's description.
- Fixed panic when compiled with NFS_ACDEBUG.

MFC after: 3 days

13 years agoRemove the now defunct kern.ipc.nmbufs tunable.
pluknet [Wed, 13 Apr 2011 12:19:03 +0000 (12:19 +0000)]
Remove the now defunct kern.ipc.nmbufs tunable.

PR: kern/132497 (part)
MFC after: 1 week