HomeFreeBSD

pci: Make PCIe Eject timeout configurable

Description

pci: Make PCIe Eject timeout configurable

PCIe mandates a 5 second delay between when the "Attention Button" is
pressed and when the associated device is detached; this is to allow
for the button to be pressed a second time to cancel the ejection. On
some systems this 5 second delay may not be desireable; so introduce a
hw.pci.pcie_hp_detach_timeout sysctl (which can also be set as a loader
tunable) which specifies the timeout in milliseconds (default 5000).
If set to zero, the device is detached immediately.

Reviewed by: jhb
MFC after: 2 weeks
Sponsored by: Amazon
Differential Revision: https://reviews.freebsd.org/D49585

Details

Provenance
cpercivaAuthored on Mon, Mar 31, 4:08 AM
Reviewer
jhb
Differential Revision
D49585: pci: Make PCIe Eject timeout configurable
Parents
rGcc05f8de571d: pci.4: Update the information on pci_bar_mmap to match pciio.h
Branches
Unknown
Tags
Unknown