diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-07-23 16:19:55 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-07-30 12:47:58 -0400 |
commit | 3d2a531804d16cd8df6dbbb0429c6f143e756049 (patch) | |
tree | 1fec9226bf58fb84bc50b5e90fb7df30d5b258df /drivers/pci | |
parent | 1f7979ac53224b0208e7d3eaeb5fd72ab9687389 (diff) |
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/quirks.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 8141f442e3df..a1682f19bcb0 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c | |||
@@ -2421,6 +2421,9 @@ static void __devinit __nv_msi_ht_cap_quirk(struct pci_dev *dev, int all) | |||
2421 | int pos; | 2421 | int pos; |
2422 | int found; | 2422 | int found; |
2423 | 2423 | ||
2424 | if (!pci_msi_enabled()) | ||
2425 | return; | ||
2426 | |||
2424 | /* check if there is HT MSI cap or enabled on this device */ | 2427 | /* check if there is HT MSI cap or enabled on this device */ |
2425 | found = ht_check_msi_mapping(dev); | 2428 | found = ht_check_msi_mapping(dev); |
2426 | 2429 | ||