freebsd-dev/sys
Eric van Gyzen 991d431fa8 PCIe HotPlug: Detect bridges that are not really HotPlug capable
Some devices report that they have an MRL when they actually
do not.  Since they always report that the MRL is open, child
devices would be ignored.  Try to detect these devices and
ignore their claim of HotPlug support.  Specifically,
if there is an open MRL but the Data Link Layer is active,
the MRL is not real.

Revert r303645 to re-enable HotPlug support for slots with
power controllers, since it works correctly in my testing.

Start the DLL state-change timer if Presence /or/ MRL state changes,
along with other conditions.  Previously, we started the timer iff
Presence changed.  If there is an MRL, it must be closed for power
to be turned on, so Presence is unlikely to change on an MRL-close event.

Add a printf() of interesting registers on HotPlug interrupts and
commands (one from erj@).  These were very useful for debugging.
Guard them with bootverbose, since they're spam in normal operation.

In collaboration with:	jhb
Reviewed by:	jhb
MFC after:	1 day
Relnotes:	yes (re-enable HotPlug support for slots with power controllers)
Sponsored by:	Dell Inc.
Differential Revision:	https://reviews.freebsd.org/D7509
2016-08-17 01:24:34 +00:00
..
amd64 The pmap_delayed_invl_wait() function blocks on turnstile, it does not 2016-08-11 12:37:11 +00:00
arm Correct the size of the softc in a10_ehci 2016-08-14 13:17:59 +00:00
arm64 Add the ARMv8.1 identification registers to the list we print when booting. 2016-08-15 09:23:08 +00:00
boot Only use WaitForKeys event if it exists, this is not the case in u-boot efi implementation. 2016-08-16 14:33:25 +00:00
bsm
cam cam/da: Add quirk for I-O Data USB Flash Disk 2016-08-11 03:12:56 +00:00
cddl MFV r301526: 2016-08-16 02:25:19 +00:00
compat Eliminate use of sys_fsync() and sys_fdatasync(). 2016-08-15 20:11:52 +00:00
conf bhnd(4): Implement NVRAM support required for PMU bring-up. 2016-08-16 21:32:05 +00:00
contrib Consistently use device_t 2016-08-09 19:32:06 +00:00
crypto Connect the SHA-512t256 and Skein hashing algorithms to ZFS 2016-05-31 04:12:14 +00:00
ddb In ddb ps, left justify the non-numeric fields 'state' and 'wmesg' and 2016-08-14 15:26:40 +00:00
dev PCIe HotPlug: Detect bridges that are not really HotPlug capable 2016-08-17 01:24:34 +00:00
fs Implement VOP_FDATASYNC() for msdosfs. 2016-08-15 19:17:00 +00:00
gdb
geom Do not invoke resize event if initial disk size is zero. Some disks 2016-08-01 20:54:54 +00:00
gnu Revert changes for local testing, inadvertantly commited in r300811. 2016-05-26 23:59:42 +00:00
i386 Remove duplicate definition of get_pcb_td(). gcc works for detecting 2016-08-15 10:46:33 +00:00
isa
kern Fix a stupid typo (or copy/paste buffer malfunction). 2016-08-16 23:00:22 +00:00
kgssapi
libkern
mips bhnd(4): Implement NVRAM support required for PMU bring-up. 2016-08-16 21:32:05 +00:00
modules bhnd(4): Implement NVRAM support required for PMU bring-up. 2016-08-16 21:32:05 +00:00
net Update iflib to support more NIC designs 2016-08-12 21:29:44 +00:00
net80211 sys: replace comma with semicolon when pertinent. 2016-08-09 19:42:20 +00:00
netgraph Avoid panic from ng_uncallout when unpluggin ethernet cable with active 2016-08-08 19:31:01 +00:00
netinet A few more wording tweaks as suggested (with some modifications 2016-08-16 15:17:36 +00:00
netinet6 Add ipfw_nat64 module that implements stateless and stateful NAT64. 2016-08-13 16:09:49 +00:00
netipsec Get closer to a VIMAGE network stack teardown from top to bottom rather 2016-06-21 13:48:49 +00:00
netnatm
netpfil Fix command: ipfw set (enable|disable) N (where N > 4). 2016-08-15 13:06:29 +00:00
netsmb
nfs Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
nfsclient
nfsserver
nlm When sleeping waiting for either local or remote advisory lock, 2016-06-26 20:08:42 +00:00
ofed mthca: Add a wrapper for the firmware's DIAG_RPRT command. 2016-08-05 21:34:09 +00:00
opencrypto opencrypto AES-ICM: Fix heap corruption typo 2016-08-01 22:57:03 +00:00
pc98
powerpc Return 0 instead of an error code on failure to find dcsr. 2016-08-14 04:11:36 +00:00
riscv o Remove operation in machine mode. 2016-08-10 12:41:36 +00:00
rpc Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
security Add AUE_WAIT6 handling to the BSM conversion switch statement, reusing 2016-07-11 13:06:17 +00:00
sparc64 sys: replace comma with semicolon when pertinent. 2016-08-09 19:42:20 +00:00
sys Remove prototypes missed in r303951. 2016-08-16 19:43:17 +00:00
teken
tests
tools Consider CROSS_BINUTILS_PREFIX environment variable so we use correct 2016-08-10 13:49:17 +00:00
ufs Bug 211013 reports that a write error to a UFS filesystem running 2016-08-16 21:02:30 +00:00
vm Eliminate unneeded vm_page_xbusy() and vm_page_xunbusy() operations when 2016-08-14 22:00:45 +00:00
x86 sys: replace comma with semicolon when pertinent. 2016-08-09 19:42:20 +00:00
xdr
xen xen: Correct typo in #undef for symbol NBPL 2016-06-06 14:55:46 +00:00
Makefile