Skip to content

Commit 3d2a531

Browse files
rjwysockijbarnes993
authored andcommitted
PCI: Do not run NVidia quirks related to MSI with MSI disabled
There is no reason to run NVidia-specific quirks related to HT MSI mappings with MSI disabled via pci=nomsi, so make __nv_msi_ht_cap_quirk() return immediately in that case. This allows at least one machine to boot 100% of the time with pci=nomsi (it still doesn't boot reliably without that). Addresses https://bugzilla.kernel.org/show_bug.cgi?id=16443 . Cc: stable@kernel.org Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
1 parent 1f7979a commit 3d2a531

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/pci/quirks.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2421,6 +2421,9 @@ static void __devinit __nv_msi_ht_cap_quirk(struct pci_dev *dev, int all)
24212421
int pos;
24222422
int found;
24232423

2424+
if (!pci_msi_enabled())
2425+
return;
2426+
24242427
/* check if there is HT MSI cap or enabled on this device */
24252428
found = ht_check_msi_mapping(dev);
24262429

0 commit comments

Comments
 (0)