From: Peter P Waskiewicz Jr <hidden> Date: 2012-08-07 08:05:38
This series contains fixes to the e1000e and igb drivers.
The following are changes since commit 5d299f3d3c8a2fbc732b1bf03af36333ccec3130:
and are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/ppwaskie/net master
Stefan Assmann (1):
igb: add delay to allow igb loopback test to succeed on 8086:10c9
Tushar Dave (2):
e1000e: NIC goes up and immediately goes down
e1000e: 82571 Tx Data Corruption during Tx hang recovery
drivers/net/ethernet/intel/e1000e/82571.c | 10 +++++-----
drivers/net/ethernet/intel/igb/igb_ethtool.c | 3 +++
2 files changed, 8 insertions(+), 5 deletions(-)
--
1.7.11.2
From: Peter P Waskiewicz Jr <hidden> Date: 2012-08-07 08:05:44
From: Tushar Dave <redacted>
Found that commit d478eb44 was a bad commit.
If the link partner is transmitting codeword (even if NULL codeword),
then the RXCW.C bit will be set so check for RXCW.CW is unnecessary.
Ref: RH BZ 840642
Reported-by: Fabio Futigami <redacted>
Signed-off-by: Tushar Dave <redacted>
CC: Marcelo Ricardo Leitner <redacted>
CC: stable <redacted> [2.6.38+]
Tested-by: Aaron Brown <redacted>
Signed-off-by: Peter P Waskiewicz Jr <redacted>
---
drivers/net/ethernet/intel/e1000e/82571.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
From: Peter P Waskiewicz Jr <hidden> Date: 2012-08-07 08:05:45
From: Tushar Dave <redacted>
A bus trace shows that while executing e1000e_down, TCTL is cleared except
for the PSP bit. This occurs while in the middle of fetching a TSO packet
since the Tx packet buffer is full at that point. Before the device is
reset, the e1000_watchdog_task starts to run from the middle (it was
apparently pre-empted earlier, although that is not in the trace) and sets
TCTL.EN. At that point, 82571 transmits the corrupted packet, apparently
because TCTL.MULR was cleared in the middle of fetching a packet, which is
forbidden.
Driver should just clear TCTL.EN in e1000_reset_hw_82571 instead of
clearing the entire register, so as not to change any settings in the
middle of fetching a packet.
Signed-off-by: Tushar Dave <redacted>
Tested-by: Aaron Brown <redacted>
Signed-off-by: Peter P Waskiewicz Jr <redacted>
---
drivers/net/ethernet/intel/e1000e/82571.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
From: Peter P Waskiewicz Jr <hidden> Date: 2012-08-07 08:05:47
From: Stefan Assmann <redacted>
Some 8086:10c9 NICs have a problem completing the ethtool loopback test.
The result looks like this:
ethtool -t eth1
The test result is FAIL
The test extra info:
Register test (offline) 0
Eeprom test (offline) 0
Interrupt test (offline) 0
Loopback test (offline) 13
Link test (on/offline) 0
A bisect clearly points to commit a95a07445ee97a2fef65befafbadcc30ca1bd145.
However that seems to only trigger the bug. While adding some printk the
problem disappeared, so this might be a timing issue. After some trial and
error I discovered that adding a small delay just before igb_write_phy_reg()
in igb_integrated_phy_loopback() allows the loopback test to succeed.
I was unable to figure out the root cause so far but I expect it to be
somewhere in the following executing path
igb_integrated_phy_loopback
->igb_write_phy_reg_igp
->igb_write_phy_reg_mdic
->igb_acquire_phy_82575
->igb_acquire_swfw_sync_82575
The problem could only be observed on 8086:10c9 NICs so far and not all
of them show the behaviour. I did not restrict the workaround to this
type of NIC as it should do no harm to other igb NICs.
With the patch below the loopback test succeeded 500 times in a row
using a NIC that would otherwise fail.
Signed-off-by: Stefan Assmann <redacted>
Tested-by: Aaron Brown <redacted>
Signed-off-by: Peter P Waskiewicz Jr <redacted>
---
drivers/net/ethernet/intel/igb/igb_ethtool.c | 3 +++
1 file changed, 3 insertions(+)
@@ -1498,6 +1498,9 @@ static int igb_integrated_phy_loopback(struct igb_adapter *adapter)break;}+/* add small delay to avoid loopback test failure */+msleep(50);+/* force 1000, set loopback */igb_write_phy_reg(hw,PHY_CONTROL,0x4140);
From: David Miller <davem@davemloft.net> Date: 2012-08-08 22:42:39
From: Peter P Waskiewicz Jr <redacted>
Date: Tue, 7 Aug 2012 01:04:14 -0700
This series contains fixes to the e1000e and igb drivers.
The following are changes since commit 5d299f3d3c8a2fbc732b1bf03af36333ccec3130:
and are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/ppwaskie/net master
Stefan Assmann (1):
igb: add delay to allow igb loopback test to succeed on 8086:10c9
Tushar Dave (2):
e1000e: NIC goes up and immediately goes down
e1000e: 82571 Tx Data Corruption during Tx hang recovery