netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/5] forcedeth: msi interrupt fix
@ 2009-01-30 18:56 Ayaz Abdulla
  0 siblings, 0 replies; 3+ messages in thread
From: Ayaz Abdulla @ 2009-01-30 18:56 UTC (permalink / raw)
  To: Manfred Spraul, Jeff Garzik, Andrew Morton, David S. Miller,
	nedev

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

This patch fixes an issue with the suspend/resume cycle with msi 
interrupts. See bugzilla number 10487 for more details. The fix is to 
re-setup a private msi pci config offset field.

Signed-off-by: Ayaz Abdulla <aabdulla@nvidia.com>



[-- Attachment #2: patch-forcedeth-msi-pci-config --]
[-- Type: text/plain, Size: 661 bytes --]

--- old/drivers/net/forcedeth.c	2009-01-27 10:48:18.000000000 -0800
+++ new/drivers/net/forcedeth.c	2009-01-27 10:48:21.000000000 -0800
@@ -589,6 +589,9 @@
 #define NV_MSI_X_VECTOR_TX    0x1
 #define NV_MSI_X_VECTOR_OTHER 0x2
 
+#define NV_MSI_PRIV_OFFSET 0x68
+#define NV_MSI_PRIV_VALUE  0xffffffff
+
 #define NV_RESTART_TX         0x1
 #define NV_RESTART_RX         0x2
 
@@ -6057,6 +6060,8 @@
 	for (i = 0;i <= np->register_size/sizeof(u32); i++)
 		writel(np->saved_config_space[i], base+i*sizeof(u32));
 
+	pci_write_config_dword(pdev, NV_MSI_PRIV_OFFSET, NV_MSI_PRIV_VALUE);
+
 	netif_device_attach(dev);
 	if (netif_running(dev)) {
 		rc = nv_open(dev);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/5] forcedeth: msi interrupt fix
@ 2009-02-06 19:27 Ayaz Abdulla
  2009-02-07  8:26 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Ayaz Abdulla @ 2009-02-06 19:27 UTC (permalink / raw)
  To: Manfred Spraul, Jeff Garzik, Andrew Morton, David S. Miller,
	nedev

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]

This patch fixes an issue with the suspend/resume cycle with msi
interrupts. See bugzilla number 10487 for more details. The fix is to
re-setup a private msi pci config offset field.

Signed-off-by: Ayaz Abdulla <aabdulla@nvidia.com>




[-- Attachment #2: patch-forcedeth-msi-pci-config --]
[-- Type: text/plain, Size: 661 bytes --]

--- old/drivers/net/forcedeth.c	2009-02-06 14:14:02.000000000 -0500
+++ new/drivers/net/forcedeth.c	2009-02-06 14:14:54.000000000 -0500
@@ -589,6 +589,9 @@
 #define NV_MSI_X_VECTOR_TX    0x1
 #define NV_MSI_X_VECTOR_OTHER 0x2
 
+#define NV_MSI_PRIV_OFFSET 0x68
+#define NV_MSI_PRIV_VALUE  0xffffffff
+
 #define NV_RESTART_TX         0x1
 #define NV_RESTART_RX         0x2
 
@@ -6074,6 +6077,8 @@
 	for (i = 0;i <= np->register_size/sizeof(u32); i++)
 		writel(np->saved_config_space[i], base+i*sizeof(u32));
 
+	pci_write_config_dword(pdev, NV_MSI_PRIV_OFFSET, NV_MSI_PRIV_VALUE);
+
 	netif_device_attach(dev);
 	if (netif_running(dev)) {
 		rc = nv_open(dev);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/5] forcedeth: msi interrupt fix
  2009-02-06 19:27 [PATCH 2/5] forcedeth: msi interrupt fix Ayaz Abdulla
@ 2009-02-07  8:26 ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2009-02-07  8:26 UTC (permalink / raw)
  To: aabdulla; +Cc: manfred, jgarzik, akpm, netdev

From: Ayaz Abdulla <aabdulla@nvidia.com>
Date: Fri, 06 Feb 2009 14:27:24 -0500

> This patch fixes an issue with the suspend/resume cycle with msi
> interrupts. See bugzilla number 10487 for more details. The fix is to
> re-setup a private msi pci config offset field.
> 
> Signed-off-by: Ayaz Abdulla <aabdulla@nvidia.com>

Applied to net-next-2.6

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-07  8:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-06 19:27 [PATCH 2/5] forcedeth: msi interrupt fix Ayaz Abdulla
2009-02-07  8:26 ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2009-01-30 18:56 Ayaz Abdulla

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).