From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F395221290; Tue, 26 Aug 2025 13:41:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756215684; cv=none; b=XVeHOg91V7V1GRhaBE1jLV2uoGVtNpXn0Ot3m/h4+4r2ktskYJVOwieY5sEYCu859tAvH+4DY1LzkXWf/4T1cTRS10wUuMN62tCMDCCgFymfl1KO/zRmEF2hl3cuhRaoN0b7qnenQAZK1MXofQ0wHFUau46xFwNcJXoFXZHUDRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756215684; c=relaxed/simple; bh=31UDqyPnvFsMMWk2wCL57iSxTxtSCc8PrdGuBcvpezk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NKUtg/3TSejNs11L1pnMmNsNaP1J4j5ZUPzvHBsaydvPs8dwDILE1/ybH875iAXOYk/diEmdM+g9mNxt7y/HPKyOrAE9zRFicv8eF9VJN0r2IWZcJdT9h/OiOeKFLC0jLd5J/gXfFrRxxrtYwDWjmjnefmEax2Q5Tnlb4yvoVcQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WtLif4YB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WtLif4YB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B52E5C113CF; Tue, 26 Aug 2025 13:41:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756215684; bh=31UDqyPnvFsMMWk2wCL57iSxTxtSCc8PrdGuBcvpezk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WtLif4YBop+DRbD+/QWXoQXTl3HlFf0uoL5agxl3Y7JxkWSNImQAAMh2iJfZnyRtY GPyRIqGpVT5QOwgK/YO4PhilAk6B/RthxNyLkxEY/sDlx3RHMQHR8k4re+AfxVeW0p XF8jfrhiN5kWMymN4f8O+eLWPSOgqxB2/wDJ9u4U= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jacek Kowalski , Simon Horman , Vitaly Lifshits , Mor Bar-Gabay , Tony Nguyen Subject: [PATCH 5.15 095/644] e1000e: disregard NVM checksum on tgp when valid checksum bit is not set Date: Tue, 26 Aug 2025 13:03:06 +0200 Message-ID: <20250826110948.859854114@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250826110946.507083938@linuxfoundation.org> References: <20250826110946.507083938@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jacek Kowalski commit 536fd741c7ac907d63166cdae1081b1febfab613 upstream. 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 Reviewed-by: Simon Horman Reviewed-by: Vitaly Lifshits Fixes: 4051f68318ca9 ("e1000e: Do not take care about recovery NVM checksum") Cc: stable@vger.kernel.org Tested-by: Mor Bar-Gabay Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/e1000e/ich8lan.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/net/ethernet/intel/e1000e/ich8lan.c +++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c @@ -4146,6 +4146,8 @@ static s32 e1000_validate_nvm_checksum_i ret_val = e1000e_update_nvm_checksum(hw); if (ret_val) return ret_val; + } else if (hw->mac.type == e1000_pch_tgp) { + return 0; } }