Skip to content

Commit 29a43dc

Browse files
Edmund Railebjorn-helgaas
authored andcommitted
PCI: Mark LSI FW643 to avoid bus reset
Apparently the LSI / Agere FW643 can't recover after a Secondary Bus Reset and requires a power-off or suspend/resume and rescan. VFIO resets a device before assigning it to a VM, and the FW643 doesn't support any other reset methods, so this problem prevented assignment of FW643 to VMs. Prevent use of Secondary Bus Reset for this device. With this change, the FW643 can be assigned to VMs with VFIO. Note that it will not be reset, resulting in leaking state between VMs and host. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Edmund Raile <[email protected]> [bhelgaas: commit log, comment] Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 6613476 commit 29a43dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/pci/quirks.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3765,6 +3765,14 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x003e, quirk_no_bus_reset);
37653765
*/
37663766
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CAVIUM, 0xa100, quirk_no_bus_reset);
37673767

3768+
/*
3769+
* Apparently the LSI / Agere FW643 can't recover after a Secondary Bus
3770+
* Reset and requires a power-off or suspend/resume and rescan. Prevent
3771+
* use of that reset.
3772+
*/
3773+
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATT, 0x5900, quirk_no_bus_reset);
3774+
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATT, 0x5901, quirk_no_bus_reset);
3775+
37683776
/*
37693777
* Some TI KeyStone C667X devices do not support bus/hot reset. The PCIESS
37703778
* automatically disables LTSSM when Secondary Bus Reset is received and

0 commit comments

Comments
 (0)