netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] e1000e: disregard NVM checksum on tgp when valid checksum mask is not set
@ 2025-04-22  7:43 Jacek Kowalski
  2025-04-22  8:39 ` [Intel-wired-lan] " Lifshits, Vitaly
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Jacek Kowalski @ 2025-04-22  7:43 UTC (permalink / raw)
  To: Tony Nguyen, Przemek Kitszel, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: intel-wired-lan, netdev, linux-kernel

Some Dell Tiger Lake systems have incorrect NVM checksum. These also
have a bitmask that indicates correct checksum set to "invalid".

Because it is impossible to determine whether the NVM write would finish
correctly or hang (see https://bugzilla.kernel.org/show_bug.cgi?id=213667)
it makes sense to skip the validation completely under these conditions.

Signed-off-by: Jacek Kowalski <Jacek@jacekk.info>
Fixes: 4051f68318ca9 ("e1000e: Do not take care about recovery NVM checksum")
Cc: stable@vger.kernel.org
---
  drivers/net/ethernet/intel/e1000e/ich8lan.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c b/drivers/net/ethernet/intel/e1000e/ich8lan.c
index 364378133526..df4e7d781cb1 100644
--- a/drivers/net/ethernet/intel/e1000e/ich8lan.c
+++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c
@@ -4274,6 +4274,8 @@ static s32 e1000_validate_nvm_checksum_ich8lan(struct e1000_hw *hw)
  			ret_val = e1000e_update_nvm_checksum(hw);
  			if (ret_val)
  				return ret_val;
+		} else if (hw->mac.type == e1000_pch_tgp) {
+			return 0;
  		}
  	}
  
-- 
2.39.5

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

end of thread, other threads:[~2025-06-03 21:00 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-22  7:43 [PATCH] e1000e: disregard NVM checksum on tgp when valid checksum mask is not set Jacek Kowalski
2025-04-22  8:39 ` [Intel-wired-lan] " Lifshits, Vitaly
2025-04-24 16:24 ` Simon Horman
2025-04-24 16:46   ` Jacek Kowalski
2025-04-24 17:18     ` Simon Horman
2025-04-24 17:37       ` Jacek Kowalski
2025-04-25 16:45         ` Simon Horman
2025-04-24 16:59   ` [Intel-wired-lan] " Lifshits, Vitaly
2025-04-24 17:29     ` Jacek Kowalski
2025-04-27 13:26       ` Lifshits, Vitaly
2025-04-28 16:43         ` Jacek Kowalski
2025-05-04  9:13           ` Lifshits, Vitaly
2025-05-12 17:25 ` Vlad URSU
2025-05-15  4:39   ` [Intel-wired-lan] " Lifshits, Vitaly
2025-05-15 19:07     ` Vlad URSU
2025-06-01 10:19       ` Lifshits, Vitaly
2025-06-02 18:44         ` Vlad URSU
2025-06-03  9:22           ` Lifshits, Vitaly
2025-06-03 21:00             ` Jacek Kowalski

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