* [PATCH] pci-quirks: disable MSI on RS400-200 and RS480, take #2
@ 2007-05-09 12:23 Tejun Heo
2007-05-09 15:37 ` Chuck Ebbert
2007-05-19 12:13 ` Jay Cliburn
0 siblings, 2 replies; 7+ messages in thread
From: Tejun Heo @ 2007-05-09 12:23 UTC (permalink / raw)
To: Greg K-H, Jeff Garzik, linux-kernel, IDE/ATA development list,
Matías Alejandro Torres
MSI doesn't work on RS400-200 and RS480 requiring pci=nomsi kernel
boot parameter for ahci to work. This patch renames quirk_svw_msi()
to quirk_disable_all_msi() and use it to disable MSI on those chips.
http://thread.gmane.org/gmane.linux.ide/17820
http://thread.gmane.org/gmane.linux.ide/17516
https://bugzilla.novell.com/show_bug.cgi?id=263893
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Matías Alejandro Torres <torresmat@gmail.com>
---
Okay, this is the fixed version and should probably included in
-stable too as there have been quite some number of reports which got
resolved by adding 'pci=nomsi'. Verified by Matías Alejandro Torres.
Thanks.
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 3411483..1e3070e 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -1624,18 +1624,20 @@ DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_N
quirk_nvidia_ck804_pcie_aer_ext_cap);
#ifdef CONFIG_PCI_MSI
-/* The Serverworks PCI-X chipset does not support MSI. We cannot easily rely
- * on setting PCI_BUS_FLAGS_NO_MSI in its bus flags because there are actually
- * some other busses controlled by the chipset even if Linux is not aware of it.
- * Instead of setting the flag on all busses in the machine, simply disable MSI
- * globally.
+/* Some chipsets do not support MSI. We cannot easily rely on setting
+ * PCI_BUS_FLAGS_NO_MSI in its bus flags because there are actually
+ * some other busses controlled by the chipset even if Linux is not
+ * aware of it. Instead of setting the flag on all busses in the
+ * machine, simply disable MSI globally.
*/
-static void __init quirk_svw_msi(struct pci_dev *dev)
+static void __init quirk_disable_all_msi(struct pci_dev *dev)
{
pci_no_msi();
printk(KERN_WARNING "PCI: MSI quirk detected. MSI deactivated.\n");
}
-DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_GCNB_LE, quirk_svw_msi);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_GCNB_LE, quirk_disable_all_msi);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS400_200, quirk_disable_all_msi);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS480, quirk_disable_all_msi);
/* Disable MSI on chipsets that are known to not support it */
static void __devinit quirk_disable_msi(struct pci_dev *dev)
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] pci-quirks: disable MSI on RS400-200 and RS480, take #2
2007-05-09 12:23 [PATCH] pci-quirks: disable MSI on RS400-200 and RS480, take #2 Tejun Heo
@ 2007-05-09 15:37 ` Chuck Ebbert
2007-05-09 15:50 ` Tejun Heo
2007-05-19 12:13 ` Jay Cliburn
1 sibling, 1 reply; 7+ messages in thread
From: Chuck Ebbert @ 2007-05-09 15:37 UTC (permalink / raw)
To: Tejun Heo
Cc: Greg K-H, Jeff Garzik, linux-kernel, IDE/ATA development list,
Matías Alejandro Torres
Tejun Heo wrote:
> MSI doesn't work on RS400-200 and RS480 requiring pci=nomsi kernel
> boot parameter for ahci to work. This patch renames quirk_svw_msi()
> to quirk_disable_all_msi() and use it to disable MSI on those chips.
>
> http://thread.gmane.org/gmane.linux.ide/17820
> http://thread.gmane.org/gmane.linux.ide/17516
> https://bugzilla.novell.com/show_bug.cgi?id=263893
>
FWIW several distros have turned off MSI by default and added
a "pci=msi" option to enable it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] pci-quirks: disable MSI on RS400-200 and RS480, take #2
2007-05-09 15:37 ` Chuck Ebbert
@ 2007-05-09 15:50 ` Tejun Heo
2007-05-09 15:56 ` Chuck Ebbert
0 siblings, 1 reply; 7+ messages in thread
From: Tejun Heo @ 2007-05-09 15:50 UTC (permalink / raw)
To: Chuck Ebbert
Cc: Greg K-H, Jeff Garzik, linux-kernel, IDE/ATA development list,
Matías Alejandro Torres
Chuck Ebbert wrote:
> Tejun Heo wrote:
>> MSI doesn't work on RS400-200 and RS480 requiring pci=nomsi kernel
>> boot parameter for ahci to work. This patch renames quirk_svw_msi()
>> to quirk_disable_all_msi() and use it to disable MSI on those chips.
>>
>> http://thread.gmane.org/gmane.linux.ide/17820
>> http://thread.gmane.org/gmane.linux.ide/17516
>> https://bugzilla.novell.com/show_bug.cgi?id=263893
>>
>
> FWIW several distros have turned off MSI by default and added
> a "pci=msi" option to enable it.
Yeah, it seem to cause a lot of problems on certain chips but I think
the correct path is to add PCI quirks for those. Most MSI problems I've
seen are on these ATI chips. Do you happen to know any other?
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] pci-quirks: disable MSI on RS400-200 and RS480, take #2
2007-05-09 15:50 ` Tejun Heo
@ 2007-05-09 15:56 ` Chuck Ebbert
2007-05-09 16:04 ` Tejun Heo
2007-05-09 19:23 ` Jeff Garzik
0 siblings, 2 replies; 7+ messages in thread
From: Chuck Ebbert @ 2007-05-09 15:56 UTC (permalink / raw)
To: Tejun Heo
Cc: Greg K-H, Jeff Garzik, linux-kernel, IDE/ATA development list,
Matías Alejandro Torres
Tejun Heo wrote:
>> FWIW several distros have turned off MSI by default and added
>> a "pci=msi" option to enable it.
>
> Yeah, it seem to cause a lot of problems on certain chips but I think
> the correct path is to add PCI quirks for those. Most MSI problems I've
> seen are on these ATI chips. Do you happen to know any other?
We had devices that didn't do MSI right, e.g. forcedeth and others I
can't recall now.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] pci-quirks: disable MSI on RS400-200 and RS480, take #2
2007-05-09 15:56 ` Chuck Ebbert
@ 2007-05-09 16:04 ` Tejun Heo
2007-05-09 19:23 ` Jeff Garzik
1 sibling, 0 replies; 7+ messages in thread
From: Tejun Heo @ 2007-05-09 16:04 UTC (permalink / raw)
To: Chuck Ebbert
Cc: Greg K-H, Jeff Garzik, linux-kernel, IDE/ATA development list,
Matías Alejandro Torres
Chuck Ebbert wrote:
> Tejun Heo wrote:
>>> FWIW several distros have turned off MSI by default and added
>>> a "pci=msi" option to enable it.
>> Yeah, it seem to cause a lot of problems on certain chips but I think
>> the correct path is to add PCI quirks for those. Most MSI problems I've
>> seen are on these ATI chips. Do you happen to know any other?
>
> We had devices that didn't do MSI right, e.g. forcedeth and others I
> can't recall now.
Right, driver on such devices shouldn't enable MSI. I think we have
several of those in ATA too. Oh.. crap. :-(
--
tejun
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] pci-quirks: disable MSI on RS400-200 and RS480, take #2
2007-05-09 15:56 ` Chuck Ebbert
2007-05-09 16:04 ` Tejun Heo
@ 2007-05-09 19:23 ` Jeff Garzik
1 sibling, 0 replies; 7+ messages in thread
From: Jeff Garzik @ 2007-05-09 19:23 UTC (permalink / raw)
To: Chuck Ebbert
Cc: Tejun Heo, Greg K-H, linux-kernel, IDE/ATA development list,
Matías Alejandro Torres
Chuck Ebbert wrote:
> Tejun Heo wrote:
>>> FWIW several distros have turned off MSI by default and added
>>> a "pci=msi" option to enable it.
>> Yeah, it seem to cause a lot of problems on certain chips but I think
>> the correct path is to add PCI quirks for those. Most MSI problems I've
>> seen are on these ATI chips. Do you happen to know any other?
>
> We had devices that didn't do MSI right, e.g. forcedeth and others I
> can't recall now.
AFAIK that's a broken diagnosis. It's the system, not the device, that
is problematic.
Jeff
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] pci-quirks: disable MSI on RS400-200 and RS480, take #2
2007-05-09 12:23 [PATCH] pci-quirks: disable MSI on RS400-200 and RS480, take #2 Tejun Heo
2007-05-09 15:37 ` Chuck Ebbert
@ 2007-05-19 12:13 ` Jay Cliburn
1 sibling, 0 replies; 7+ messages in thread
From: Jay Cliburn @ 2007-05-19 12:13 UTC (permalink / raw)
To: Tejun Heo
Cc: Greg K-H, Jeff Garzik, linux-kernel, IDE/ATA development list,
Matías Alejandro Torres
Can someone (Greg K-H?) tell me the status of the below patch? Is it
planned for 2.6.22? It looks like a useful generic "let's disable msi
on board x" that I might want to use for the atl1 network driver.
Thanks,
Jay
On Wed, 09 May 2007 14:23:02 +0200
Tejun Heo <htejun@gmail.com> wrote:
> MSI doesn't work on RS400-200 and RS480 requiring pci=nomsi kernel
> boot parameter for ahci to work. This patch renames quirk_svw_msi()
> to quirk_disable_all_msi() and use it to disable MSI on those chips.
>
> http://thread.gmane.org/gmane.linux.ide/17820
> http://thread.gmane.org/gmane.linux.ide/17516
> https://bugzilla.novell.com/show_bug.cgi?id=263893
>
> Signed-off-by: Tejun Heo <htejun@gmail.com>
> Cc: Matías Alejandro Torres <torresmat@gmail.com>
> ---
> Okay, this is the fixed version and should probably included in
> -stable too as there have been quite some number of reports which got
> resolved by adding 'pci=nomsi'. Verified by Matías Alejandro Torres.
>
> Thanks.
>
> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
> index 3411483..1e3070e 100644
> --- a/drivers/pci/quirks.c
> +++ b/drivers/pci/quirks.c
> @@ -1624,18 +1624,20 @@ DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_N
> quirk_nvidia_ck804_pcie_aer_ext_cap);
>
> #ifdef CONFIG_PCI_MSI
> -/* The Serverworks PCI-X chipset does not support MSI. We cannot
> easily rely
> - * on setting PCI_BUS_FLAGS_NO_MSI in its bus flags because there
> are actually
> - * some other busses controlled by the chipset even if Linux is not
> aware of it.
> - * Instead of setting the flag on all busses in the machine, simply
> disable MSI
> - * globally.
> +/* Some chipsets do not support MSI. We cannot easily rely on setting
> + * PCI_BUS_FLAGS_NO_MSI in its bus flags because there are actually
> + * some other busses controlled by the chipset even if Linux is not
> + * aware of it. Instead of setting the flag on all busses in the
> + * machine, simply disable MSI globally.
> */
> -static void __init quirk_svw_msi(struct pci_dev *dev)
> +static void __init quirk_disable_all_msi(struct pci_dev *dev)
> {
> pci_no_msi();
> printk(KERN_WARNING "PCI: MSI quirk detected. MSI
> deactivated.\n"); }
> -DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SERVERWORKS,
> PCI_DEVICE_ID_SERVERWORKS_GCNB_LE, quirk_svw_msi);
> +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SERVERWORKS,
> PCI_DEVICE_ID_SERVERWORKS_GCNB_LE, quirk_disable_all_msi);
> +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI,
> PCI_DEVICE_ID_ATI_RS400_200, quirk_disable_all_msi);
> +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS480,
> quirk_disable_all_msi); /* Disable MSI on chipsets that are known to
> not support it */ static void __devinit quirk_disable_msi(struct
> pci_dev *dev) - To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in the body of a message to
> majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html Please read the FAQ at
> http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-05-19 12:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-09 12:23 [PATCH] pci-quirks: disable MSI on RS400-200 and RS480, take #2 Tejun Heo
2007-05-09 15:37 ` Chuck Ebbert
2007-05-09 15:50 ` Tejun Heo
2007-05-09 15:56 ` Chuck Ebbert
2007-05-09 16:04 ` Tejun Heo
2007-05-09 19:23 ` Jeff Garzik
2007-05-19 12:13 ` Jay Cliburn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).