* Re: pci: Added quirk to disable msi for MCP55 NIC on Asus P5N32-SLI Premium
@ 2008-11-16 9:53 David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2008-11-16 9:53 UTC (permalink / raw)
To: apetlund; +Cc: netdev
This patch was corrupted by your email client, long lines were chopped
up etc., making the patch unusable. For example:
--------------------
+ "Disabling msi for MCP55 NIC on P5N32-SLI
Premium\n");
--------------------
Please resubmit this after fixing up these issues, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pci: Added quirk to disable msi for MCP55 NIC on Asus P5N32-SLI Premium
@ 2008-11-19 22:13 David Miller
2008-11-20 14:32 ` Andreas Petlund
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2008-11-19 22:13 UTC (permalink / raw)
To: apetlund; +Cc: netdev
You can't start calling dmi_*() routines in drivers/pci/quirks.c without
including linux/dmi.h there, otherwise it doesn't build on some platforms:
drivers/pci/quirks.c: In function 'nvenet_msi_disable':
drivers/pci/quirks.c:1837: error: implicit declaration of function 'dmi_name_in_vendors'
make[1]: *** [drivers/pci/quirks.o] Error 1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pci: Added quirk to disable msi for MCP55 NIC on Asus P5N32-SLI Premium
2008-11-19 22:13 pci: Added quirk to disable msi for MCP55 NIC on Asus P5N32-SLI Premium David Miller
@ 2008-11-20 14:32 ` Andreas Petlund
2008-11-21 4:42 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Petlund @ 2008-11-20 14:32 UTC (permalink / raw)
To: David Miller; +Cc: netdev
David Miller wrote:
> You can't start calling dmi_*() routines in drivers/pci/quirks.c without
> including linux/dmi.h there, otherwise it doesn't build on some platforms:
>
> drivers/pci/quirks.c: In function 'nvenet_msi_disable':
> drivers/pci/quirks.c:1837: error: implicit declaration of function 'dmi_name_in_vendors'
> make[1]: *** [drivers/pci/quirks.o] Error 1
Here is an updated version with the missing include.
Signed-off-by: Andreas Petlund <andreas@petlund.no>
---
drivers/pci/quirks.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 5049a47..5f4f85f 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -22,6 +22,7 @@
#include <linux/delay.h>
#include <linux/acpi.h>
#include <linux/kallsyms.h>
+#include <linux/dmi.h>
#include "pci.h"
int isa_dma_bridge_buggy;
@@ -1828,6 +1829,22 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SERVERWORKS,
PCI_DEVICE_ID_SERVERWORKS_HT1000_PXB,
ht_enable_msi_mapping);
+/* The P5N32-SLI Premium motherboard from Asus has a problem with msi
+ * for the MCP55 NIC. It is not yet determined whether the msi problem
+ * also affects other devices. As for now, turn off msi for this device.
+ */
+static void __devinit nvenet_msi_disable(struct pci_dev *dev)
+{
+ if (dmi_name_in_vendors("P5N32-SLI PREMIUM")) {
+ dev_info(&dev->dev,
+ "Disabling msi for MCP55 NIC on P5N32-SLI Premium\n");
+ dev->no_msi = 1;
+ }
+}
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_NVIDIA,
+ PCI_DEVICE_ID_NVIDIA_NVENET_15,
+ nvenet_msi_disable);
+
static void __devinit nv_msi_ht_cap_quirk(struct pci_dev *dev)
{
struct pci_dev *host_bridge;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: pci: Added quirk to disable msi for MCP55 NIC on Asus P5N32-SLI Premium
2008-11-20 14:32 ` Andreas Petlund
@ 2008-11-21 4:42 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2008-11-21 4:42 UTC (permalink / raw)
To: apetlund; +Cc: netdev
From: Andreas Petlund <apetlund@simula.no>
Date: Thu, 20 Nov 2008 15:32:28 +0100
> David Miller wrote:
> > You can't start calling dmi_*() routines in drivers/pci/quirks.c without
> > including linux/dmi.h there, otherwise it doesn't build on some platforms:
> >
> > drivers/pci/quirks.c: In function 'nvenet_msi_disable':
> > drivers/pci/quirks.c:1837: error: implicit declaration of function 'dmi_name_in_vendors'
> > make[1]: *** [drivers/pci/quirks.o] Error 1
>
> Here is an updated version with the missing include.
>
> Signed-off-by: Andreas Petlund <andreas@petlund.no>
Applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-11-21 4:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19 22:13 pci: Added quirk to disable msi for MCP55 NIC on Asus P5N32-SLI Premium David Miller
2008-11-20 14:32 ` Andreas Petlund
2008-11-21 4:42 ` David Miller
-- strict thread matches above, loose matches on Subject: below --
2008-11-16 9:53 David Miller
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).