All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH v3 1/2] e1000e: disregard NVM checksum on tgp when valid checksum mask is not set
@ 2025-06-24 19:07 ` Jacek Kowalski
  0 siblings, 0 replies; 19+ messages in thread
From: Jacek Kowalski @ 2025-06-24 19:07 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

As described by Vitaly Lifshits:

> Starting from Tiger Lake, LAN NVM is locked for writes by SW, so the
> driver cannot perform checksum validation and correction. This means
> that all NVM images must leave the factory with correct checksum and
> checksum valid bit set. Since Tiger Lake devices were the first to have
> this lock, some systems in the field did not meet this requirement.
> Therefore, for these transitional devices we skip checksum update and
> verification, if the valid bit is not set.

Signed-off-by: Jacek Kowalski <Jacek@jacekk.info>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Vitaly Lifshits <vitaly.lifshits@intel.com>
Fixes: 4051f68318ca9 ("e1000e: Do not take care about recovery NVM checksum")
Cc: stable@vger.kernel.org
---
v1 -> v2: updated patch description
v2 -> v3: no changes
 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.47.2

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

end of thread, other threads:[~2025-06-29  9:36 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-24 19:07 [Intel-wired-lan] [PATCH v3 1/2] e1000e: disregard NVM checksum on tgp when valid checksum mask is not set Jacek Kowalski
2025-06-24 19:07 ` Jacek Kowalski
2025-06-24 19:14 ` [Intel-wired-lan] [PATCH v3 2/2] e1000e: ignore factory-default checksum value on TGP platform Jacek Kowalski
2025-06-24 19:14   ` Jacek Kowalski
2025-06-24 19:42   ` [Intel-wired-lan] " Simon Horman
2025-06-24 19:42     ` Simon Horman
2025-06-24 21:05     ` [Intel-wired-lan] " Jacek Kowalski
2025-06-24 21:05       ` Jacek Kowalski
2025-06-25  9:44       ` [Intel-wired-lan] " Simon Horman
2025-06-25  9:44         ` Simon Horman
2025-06-25 13:05         ` [Intel-wired-lan] " Jacek Kowalski
2025-06-25 13:05           ` Jacek Kowalski
2025-06-25 14:06           ` [Intel-wired-lan] " Vlad URSU
2025-06-25 14:06             ` Vlad URSU
2025-06-25 17:00             ` [Intel-wired-lan] " Simon Horman
2025-06-25 17:00               ` Simon Horman
2025-06-25 17:10               ` [Intel-wired-lan] " Ruinskiy, Dima
2025-06-29  9:36           ` David Laight
2025-06-29  9:36             ` David Laight

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.