* [PATCH] e1000e: fix packet corruption and tx hang during NFSv2
@ 2010-03-05 12:21 Jeff Kirsher
2010-03-05 13:18 ` Neil Horman
2010-03-05 22:01 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Jeff Kirsher @ 2010-03-05 12:21 UTC (permalink / raw)
To: davem; +Cc: netdev, gospo, nhorman, Jesse Brandeburg, Jeff Kirsher
From: Jesse Brandeburg <jesse.brandeburg@intel.com>
when receiving a particular type of NFS v2 UDP traffic, the hardware could
DMA some bad data and then hang, possibly corrupting memory.
Disable the NFS parsing in this hardware, verified to fix the bug.
Originally reported and reproduced by RedHat's Neil Horman
CC: nhorman@tuxdriver.com
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
drivers/net/e1000e/defines.h | 2 ++
drivers/net/e1000e/ich8lan.c | 10 ++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/drivers/net/e1000e/defines.h b/drivers/net/e1000e/defines.h
index db05ec3..e301e26 100644
--- a/drivers/net/e1000e/defines.h
+++ b/drivers/net/e1000e/defines.h
@@ -320,6 +320,8 @@
#define E1000_RXCSUM_IPPCSE 0x00001000 /* IP payload checksum enable */
/* Header split receive */
+#define E1000_RFCTL_NFSW_DIS 0x00000040
+#define E1000_RFCTL_NFSR_DIS 0x00000080
#define E1000_RFCTL_ACK_DIS 0x00001000
#define E1000_RFCTL_EXTEN 0x00008000
#define E1000_RFCTL_IPV6_EX_DIS 0x00010000
diff --git a/drivers/net/e1000e/ich8lan.c b/drivers/net/e1000e/ich8lan.c
index 54d03a0..8b5e157 100644
--- a/drivers/net/e1000e/ich8lan.c
+++ b/drivers/net/e1000e/ich8lan.c
@@ -2740,6 +2740,16 @@ static void e1000_initialize_hw_bits_ich8lan(struct e1000_hw *hw)
reg &= ~(1 << 31);
ew32(STATUS, reg);
}
+
+ /*
+ * work-around descriptor data corruption issue during nfs v2 udp
+ * traffic, just disable the nfs filtering capability
+ */
+ reg = er32(RFCTL);
+ reg |= (E1000_RFCTL_NFSW_DIS | E1000_RFCTL_NFSR_DIS);
+ ew32(RFCTL, reg);
+
+ return;
}
/**
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] e1000e: fix packet corruption and tx hang during NFSv2
2010-03-05 12:21 [PATCH] e1000e: fix packet corruption and tx hang during NFSv2 Jeff Kirsher
@ 2010-03-05 13:18 ` Neil Horman
2010-03-05 22:01 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Neil Horman @ 2010-03-05 13:18 UTC (permalink / raw)
To: Jeff Kirsher; +Cc: davem, netdev, gospo, Jesse Brandeburg
On Fri, Mar 05, 2010 at 04:21:44AM -0800, Jeff Kirsher wrote:
> From: Jesse Brandeburg <jesse.brandeburg@intel.com>
>
> when receiving a particular type of NFS v2 UDP traffic, the hardware could
> DMA some bad data and then hang, possibly corrupting memory.
>
> Disable the NFS parsing in this hardware, verified to fix the bug.
>
> Originally reported and reproduced by RedHat's Neil Horman
> CC: nhorman@tuxdriver.com
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> ---
>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] e1000e: fix packet corruption and tx hang during NFSv2
2010-03-05 12:21 [PATCH] e1000e: fix packet corruption and tx hang during NFSv2 Jeff Kirsher
2010-03-05 13:18 ` Neil Horman
@ 2010-03-05 22:01 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2010-03-05 22:01 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev, gospo, nhorman, jesse.brandeburg
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Fri, 05 Mar 2010 04:21:44 -0800
> From: Jesse Brandeburg <jesse.brandeburg@intel.com>
>
> when receiving a particular type of NFS v2 UDP traffic, the hardware could
> DMA some bad data and then hang, possibly corrupting memory.
>
> Disable the NFS parsing in this hardware, verified to fix the bug.
>
> Originally reported and reproduced by RedHat's Neil Horman
> CC: nhorman@tuxdriver.com
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-05 22:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-05 12:21 [PATCH] e1000e: fix packet corruption and tx hang during NFSv2 Jeff Kirsher
2010-03-05 13:18 ` Neil Horman
2010-03-05 22:01 ` 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).