Thread (1 message) 1 message, 1 author, 2020-05-22

Re: [PATCH] e1000e: Relax condition to trigger reset for ME workaround

From: Punit Agrawal <hidden>
Date: 2020-05-22 03:21:17
Also in: intel-wired-lan, lkml

Hi Aaron,

"Brown, Aaron F" [off-list ref] writes:
quoted
From: netdev-owner@vger.kernel.org <redacted> On
Behalf Of Punit Agrawal
Sent: Thursday, May 14, 2020 9:31 PM
To: Kirsher, Jeffrey T <redacted>
Cc: daniel.sangorrin@toshiba.co.jp; Punit Agrawal
[off-list ref]; Alexander Duyck
[off-list ref]; David S. Miller [off-list ref];
intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org; linux-
kernel@vger.kernel.org
Subject: [PATCH] e1000e: Relax condition to trigger reset for ME workaround

It's an error if the value of the RX/TX tail descriptor does not match
what was written. The error condition is true regardless the duration
of the interference from ME. But the driver only performs the reset if
E1000_ICH_FWSM_PCIM2PCI_COUNT (2000) iterations of 50us delay have
transpired. The extra condition can lead to inconsistency between the
state of hardware as expected by the driver.

Fix this by dropping the check for number of delay iterations.

While at it, also make __ew32_prepare() static as it's not used
anywhere else.

Signed-off-by: Punit Agrawal <redacted>
Reviewed-by: Alexander Duyck <redacted>
Cc: Jeff Kirsher <redacted>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: intel-wired-lan@lists.osuosl.org
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
Hi Jeff,

If there are no further comments please consider merging the patch.

Also, should it be marked for backport to stable?

Thanks,
Punit

RFC[0] -> v1:
* Dropped return value for __ew32_prepare() as it's not used
* Made __ew32_prepare() static
* Added tags

[0] https://lkml.org/lkml/2020/5/12/20

 drivers/net/ethernet/intel/e1000e/e1000.h  |  1 -
 drivers/net/ethernet/intel/e1000e/netdev.c | 12 +++++-------
 2 files changed, 5 insertions(+), 8 deletions(-)
Tested-by: Aaron Brown <redacted>
Thanks for taking the patch for a spin.

Jeff, let me know if you're okay to apply the tag or want me to send a
new version.

Thanks,
Punit
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help