aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cap_mkdb/(developers-only)
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2025-02-25 16:29:14 +0000
committerWarner Losh <imp@FreeBSD.org>2025-02-25 16:36:53 +0000
commitdc95228d98474aba940e3885164912b419c5579d (patch)
tree27b3ab4034d3187411bd416422174de5cd6229fe /usr.bin/cap_mkdb/(developers-only)
parent601925180df4d165f4c2c4dc91a49da7b9f3438b (diff)
nvme: Fix hotplug on one of the amazon platformsHEADmain
Amazon EC2 m7i cloud instances use PCI hotplug rather than ACPI hotplug. The card is removed and detach is called to remove the drive from the system. The hardware is no longer present at this point, but the bridge doesn't translate the now-missing hardware reads to all ff's leading us to conclude the hardware is there and we need to do a proper shutdown of it. Fix this oversight by asking the bridge if the device is still present as well. We need both tests since some systems one cane remove the card w/o a hotplug event and we want to fail-safe in those cases. Convert gone to a bool while I'm here and update a comment about shutting down the controller and why that's important. Tested by: cperciva Sponsored by: Netflix
Diffstat (limited to 'usr.bin/cap_mkdb/(developers-only)')
0 files changed, 0 insertions, 0 deletions