Skip to content

Commit

Permalink
PCI: Do not run NVidia quirks related to MSI with MSI disabled
Browse files Browse the repository at this point in the history
commit 3d2a531 upstream.

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 .

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
rjwysocki authored and gregkh committed Aug 13, 2010
1 parent 855b9e0 commit 692f3d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/pci/quirks.c
Expand Up @@ -2390,6 +2390,9 @@ static void __devinit __nv_msi_ht_cap_quirk(struct pci_dev *dev, int all)
int pos;
int found;

if (!pci_msi_enabled())
return;

/* check if there is HT MSI cap or enabled on this device */
found = ht_check_msi_mapping(dev);

Expand Down

0 comments on commit 692f3d4

Please sign in to comment.