freebsd-skq/sys
adrian 0d2aec183a Add some AR5416/AR5418 WAR's for power-on and suspend/resume:
* Now that ah_configPCIE is called for both power on and suspend/resume,
  make sure the right bit(s) are cleared and set when suspending and
  resuming.  Specifically:

  + force disable/enable the PCIe PHY upon suspend/resume;
  + reprogram the PCIe WAR register when resuming and upon power-on.

* Add a recipe which powers down any PCIe PHY hardware inside the AR5416
  (which is the PCI variant) to save on power.  I have (currently) no way
  to test exactly how much power is saved, if any.

Tested on:

* AR5416 cardbus - although unfortunately pccard/cbb/cardbus currently
  detaches the NIC upon suspend, I don't think it's a proper test case.

* AR5418 PCIe attached to expresscard - since we're not doing PCIe APSM,
  it's also not likely a full/good test case.

In both instances I went through a handful of suspend/resume cycles and
ensured that the STA vap reassociated correctly.

TODO:

* Setup a laptop to simply sit in a suspend/resume loop, making sure that
  the NIC always correctly comes back;

* Start doing suspend/resume tests with actual traffic going on in the
  background, as I bet this process is all quite racy at the present;

* Test adhoc/hostap mode, just to be completely sure it's working correctly;

* See if I can jury rig an external power source to an AR5416 to test out
  whether ah_disablePCIE() works.

Obtained from:	Qualcomm Atheros
2012-05-25 17:53:57 +00:00
..
amd64 Correct an error in pmap_pv_reclaim(). In a rare case, when it should have 2012-05-25 05:28:14 +00:00
arm MFp4 bz_ipv6_fast: 2012-05-24 22:00:48 +00:00
boot Use 32-bit ufs_ino_t instead of ino_t to keep boot2 small and prevent 2012-05-25 09:36:39 +00:00
bsm
cam Add tunable/sysctl kern.cam.pmp.hide_special, controlling whether special 2012-05-25 08:30:09 +00:00
cddl Fix enforcement of file size limit with O_APPEND on ZFS. 2012-05-22 10:54:42 +00:00
compat Add kern_fhstat(), adjust sys_fhstat() to use it. 2012-05-24 08:00:26 +00:00
conf Fix to kern/168294 - add flow director support into the 2012-05-24 17:39:54 +00:00
contrib Merge ACPICA 20120518. 2012-05-24 23:12:30 +00:00
crypto Add support for the extended FPU states on amd64, both for native 2012-01-21 17:45:27 +00:00
ddb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
dev Add some AR5416/AR5418 WAR's for power-on and suspend/resume: 2012-05-25 17:53:57 +00:00
fs Use C99-style initialization for struct dirent in preparation for 2012-05-25 09:16:59 +00:00
gdb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
geom Revert r235918 for now and add comment explaining the reason for the 2012-05-25 10:08:48 +00:00
gnu/fs Fix build: 2012-05-23 06:49:50 +00:00
i386 MFp4 bz_ipv6_fast: 2012-05-24 22:00:48 +00:00
ia64 MFp4 bz_ipv6_fast: 2012-05-24 22:00:48 +00:00
isa
kern device_add_child: protect against child device with no driver but fixed unit number 2012-05-25 07:32:26 +00:00
kgssapi
libkern Use strcmp that I replaced by accident. 2012-05-21 02:45:47 +00:00
mips MFp4 bz_ipv6_fast: 2012-05-24 22:00:48 +00:00
modules MFp4 bz_ipv6_fast: 2012-05-25 03:02:56 +00:00
net MFp4 bz_ipv6_fast: 2012-05-25 02:21:17 +00:00
net80211 Fix some corner cases in the ieee80211_send_bar() handling. 2012-05-22 19:37:12 +00:00
netatalk Fix typos 2012-02-28 15:07:05 +00:00
netgraph Revert my local not yet properly tested changes, that leaked in 2012-05-25 07:46:24 +00:00
netinet Undefine SCTP_PACKED before including sctp_uio.h, which doesn't 2012-05-25 11:14:08 +00:00
netinet6 MFp4 bz_ipv6_fast: 2012-05-25 09:27:16 +00:00
netipsec Merge multi-FIB IPv6 support from projects/multi-fibv6/head/: 2012-02-17 02:39:58 +00:00
netipx
netnatm
netncp
netsmb
nfs Merge multi-FIB IPv6 support from projects/multi-fibv6/head/: 2012-02-17 02:39:58 +00:00
nfsclient PR# 165923 reported intermittent write failures for dirty 2012-05-12 12:02:51 +00:00
nfsserver Honor NFSv3 commit call (RFC 1813, Section 3.3.21) where when count is 0, 2011-12-15 02:26:53 +00:00
nlm jwd@ reported a problem via email to freebsd-fs@ on Aug 25, 2011 2012-01-31 02:11:05 +00:00
ofed Revert r234834 per luigi@ request. 2012-05-03 08:56:43 +00:00
opencrypto
pc98 MFprojects/zfsd: 2012-05-24 11:20:51 +00:00
pci intpm: add ATI IXP400 pci id 2012-04-16 10:33:46 +00:00
powerpc Missing vm_paddr_t bits which should have been part of r235936. 2012-05-25 15:13:55 +00:00
rpc
security Check vplabel for NULL before dereferencing it. Fixes a panic 2012-05-03 15:51:34 +00:00
sparc64 Merge from x86: r232521 2012-05-25 14:52:05 +00:00
sys MFprojects/zfsd: 2012-05-24 11:07:39 +00:00
teken
tools Make vnode_if.awk parse vnode operations with underscores, like VOP_FOO_BAR. 2012-02-21 19:35:59 +00:00
ufs Add missing `continue' statement at end of case. 2012-05-18 15:20:21 +00:00
vm Tweak condition for disabling allocation from per-CPU buckets in 2012-05-23 18:56:29 +00:00
x86 Consitently use "__LP64__". 2012-05-24 21:44:46 +00:00
xdr
xen blkif interface comment cleanups. No functional changes 2012-02-29 17:47:01 +00:00
Makefile Add sys/ofed to the 'make cscope' target. 2012-03-20 18:05:15 +00:00