kernel - Disable MSIX mode in pci_teardown_msix()
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 28 Jul 2020 20:34:02 +0000 (13:34 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 28 Jul 2020 20:34:02 +0000 (13:34 -0700)
commit66fa3dc12ad6849b85e194517655f9b382df5ace
tree326ea84067d75f98ae9cf8b37c9a1c25a2d71ad1
parentfaeb2db387c1e9bfca42dc6917fbf4d7149f5704
kernel - Disable MSIX mode in pci_teardown_msix()

* Disable MSIX mode when pci_teardown_msix() is called.  This fixes
  issues on some BIOSes which do not fully clear the PCI hardware
  configuration when warm-booting.

  In particular, the NVME controller appears to have this issue with
  some laptops (HP Intel gen 9 and gen 10 laptops) whereby the MSI
  interrupt winds up being stuck on reboot.
sys/bus/pci/pci.c