]> www.infradead.org Git - users/hch/blktests.git/commit
common/rc: confirm pcie hotplug capabilities
authorKeith Busch <kbusch@kernel.org>
Wed, 25 Nov 2020 15:49:52 +0000 (07:49 -0800)
committerOmar Sandoval <osandov@fb.com>
Mon, 4 Jan 2021 22:50:19 +0000 (14:50 -0800)
commit10838a67750239ec7ba19127bf013ea8ec7963b7
tree4d967d86a9e1bf176f19795180cacc732d9f9f23
parentd23c3aa0c1c088de9296db4847bdc5cfa0206670
common/rc: confirm pcie hotplug capabilities

It turns out some PCIe slots report hotplug surprise but are not hotplug
capable. Despite the contridiction, the spec seems to allow that.

The linux pciehp driver needs hotplug capable to bind to the slot, and
the block/019 test requires hotplug surprise to handle the unannounced
link-down. Verify both bits in the slot capabilities register are set.

Reported-by: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Reviewed-by: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
common/rc