Skip to content

Commit 3ed48c8

Browse files
idoschdavem330
authored andcommitted
PCI: Add no PM reset quirk for NVIDIA Spectrum devices
Spectrum-{1,2,3,4} devices report that a D3hot->D0 transition causes a reset (i.e., they advertise NoSoftRst-). However, this transition does not have any effect on the device: It continues to be operational and network ports remain up. Advertising this support makes it seem as if a PM reset is viable for these devices. Mark it as unavailable to skip it when testing reset methods. Before: # cat /sys/bus/pci/devices/0000\:03\:00.0/reset_method pm bus After: # cat /sys/bus/pci/devices/0000\:03\:00.0/reset_method bus Signed-off-by: Ido Schimmel <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> Signed-off-by: Petr Machata <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 527a07e commit 3ed48c8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/pci/quirks.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3786,6 +3786,19 @@ static void quirk_no_pm_reset(struct pci_dev *dev)
37863786
DECLARE_PCI_FIXUP_CLASS_HEADER(PCI_VENDOR_ID_ATI, PCI_ANY_ID,
37873787
PCI_CLASS_DISPLAY_VGA, 8, quirk_no_pm_reset);
37883788

3789+
/*
3790+
* Spectrum-{1,2,3,4} devices report that a D3hot->D0 transition causes a reset
3791+
* (i.e., they advertise NoSoftRst-). However, this transition does not have
3792+
* any effect on the device: It continues to be operational and network ports
3793+
* remain up. Advertising this support makes it seem as if a PM reset is viable
3794+
* for these devices. Mark it as unavailable to skip it when testing reset
3795+
* methods.
3796+
*/
3797+
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MELLANOX, 0xcb84, quirk_no_pm_reset);
3798+
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MELLANOX, 0xcf6c, quirk_no_pm_reset);
3799+
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MELLANOX, 0xcf70, quirk_no_pm_reset);
3800+
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MELLANOX, 0xcf80, quirk_no_pm_reset);
3801+
37893802
/*
37903803
* Thunderbolt controllers with broken MSI hotplug signaling:
37913804
* Entire 1st generation (Light Ridge, Eagle Ridge, Light Peak) and part

0 commit comments

Comments
 (0)