* [PATCH] PCI: Do not run NVidia quirks related to MSI with MSI disabled
@ 2010-07-23 20:19 Rafael J. Wysocki
2010-07-30 16:47 ` Jesse Barnes
0 siblings, 1 reply; 2+ messages in thread
From: Rafael J. Wysocki @ 2010-07-23 20:19 UTC (permalink / raw)
To: Jesse Barnes; +Cc: linux-pci, Linux Kernel Mailing List
From: Rafael J. Wysocki <rjw@sisk.pl>
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>
---
drivers/pci/quirks.c | 3 +++
1 file changed, 3 insertions(+)
Index: linux-2.6/drivers/pci/quirks.c
===================================================================
--- linux-2.6.orig/drivers/pci/quirks.c
+++ linux-2.6/drivers/pci/quirks.c
@@ -2390,6 +2390,9 @@ static void __devinit __nv_msi_ht_cap_qu
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] PCI: Do not run NVidia quirks related to MSI with MSI disabled
2010-07-23 20:19 [PATCH] PCI: Do not run NVidia quirks related to MSI with MSI disabled Rafael J. Wysocki
@ 2010-07-30 16:47 ` Jesse Barnes
0 siblings, 0 replies; 2+ messages in thread
From: Jesse Barnes @ 2010-07-30 16:47 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: linux-pci, Linux Kernel Mailing List
On Fri, 23 Jul 2010 22:19:55 +0200
"Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> From: Rafael J. Wysocki <rjw@sisk.pl>
>
> 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>
> ---
> drivers/pci/quirks.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> Index: linux-2.6/drivers/pci/quirks.c
> ===================================================================
> --- linux-2.6.orig/drivers/pci/quirks.c
> +++ linux-2.6/drivers/pci/quirks.c
> @@ -2390,6 +2390,9 @@ static void __devinit __nv_msi_ht_cap_qu
> 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);
applied to linux-next with a cc: stable. Thanks.
--
Jesse Barnes, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-30 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-23 20:19 [PATCH] PCI: Do not run NVidia quirks related to MSI with MSI disabled Rafael J. Wysocki
2010-07-30 16:47 ` Jesse Barnes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®