Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B55183F9263 for ; Mon, 12 Oct 2026 11:41:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791805275; cv=none; b=aKh7VHMS+WoIhG8DyrlH6/pDpfFyN5RkwzJm4O6Hs+QEQlLzbS+0KL7pYSSVGqww1kzodkM7WjYYbkx46tbbOGOlXJx2DVNcLY+Qo/eJxN3kycZb1iNIUrxwiTMKvDNgOyva9EOLKKLKmmISwigR4T2zR+eBX9y56h33IbsqCWg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791805275; c=relaxed/simple; bh=6kEShhV8Zk6BbWvhE4TBMVtddmpmfwG4SyYkuevaYzw=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=GBAI/9dWbRRPklbEeNEsjDL/usPO4LQKHUh+U7T1BNR75YgMe0ipuDYT1rA925TGGgDASijDLu7vxvkg6R4D5qbZ8wdogLNnvXHPUQ7I5XVKgyIPk4jV+zj/4yn/R0uUkpYAM+L6eQCDtIcKZt7eKoatBRkgRhcePRFllWTQRNU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tXZJRt11; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tXZJRt11" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A07571F0089B; Mon, 12 Oct 2026 11:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791805274; bh=G47Mb2YKV7vvOhGz9so9UvbUyfa1e5TopKnf2EFCH74=; h=Subject:To:Cc:From:Date; b=tXZJRt11lPrZzq5SVmyZFR87Wc18Ikeb3A3L4FND32/q/32peo5N5SgYiRrEFFlPn rIMLVDjWUbcUOmbxb6ru0/QChJmaucEqBmzb0U75ZUV886/EWGkrsL1YDpeAO+NCpg JqTgVnXp5PtzHzld3E3jEu4v2B7fiyJEB2a5mcg0= Subject: FAILED: patch "[PATCH] EDAC/amd64: Mask UMC chip select to the four implemented" failed to apply to 5.15-stable tree To: Vishal.Badole@amd.com,bp@alien8.de,stable@vger.kernel.org,yazen.ghannam@amd.com Cc: From: Date: Mon, 12 Oct 2026 13:41:11 +0200 Message-ID: <2026101211-revered-disinfect-7f73@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x 7484bc43ba6b8e189b482db5b75e7842890a82b1 # git commit -s git send-email --to '' --in-reply-to '2026101211-revered-disinfect-7f73@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 7484bc43ba6b8e189b482db5b75e7842890a82b1 Mon Sep 17 00:00:00 2001 From: Vishal Badole Date: Fri, 2 Oct 2026 17:02:03 +0530 Subject: [PATCH] EDAC/amd64: Mask UMC chip select to the four implemented selects For DRAM ECC errors, the chip select value can be found in the MCA_SYND[ErrorInformation] field. ErrorInformation[2:0] was first documented in Zen1. The 3 bit field implied that up to 8 chip selects may be used. However, all Zen-based systems have only ever had up to 4 chip selects. So only bits [1:0] would contain a valid chip select value. Future systems are redefining the field to ErrorInformation[1:0]. This matches the existing 'up to 4 chip selects' implementations. And it frees up the extra bit for other decoding. Change the current chip select mask from 0x7 to 0x3 to prepare for the decode change. Fixes: 713ad54675fd ("EDAC, amd64: Define and register UMC error decode function") Suggested-by: Yazen Ghannam Signed-off-by: Vishal Badole Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Yazen Ghannam Cc: Link: https://patch.msgid.link/20261002113204.3358815-2-Vishal.Badole@amd.com diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 475235c402e8..0c0d11c72925 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -2796,13 +2796,13 @@ static inline void decode_bus_error(int node_id, struct mce *m) * the instance_id. For example, instance_id=0xYXXXXX where Y is the channel * number. * - * For DRAM ECC errors, the Chip Select number is given in bits [2:0] of + * For DRAM ECC errors, the Chip Select number is given in bits [1:0] of * the MCA_SYND[ErrorInformation] field. */ static void umc_get_err_info(struct mce *m, struct err_info *err) { err->channel = (m->ipid & GENMASK(31, 0)) >> 20; - err->csrow = m->synd & 0x7; + err->csrow = m->synd & 0x3; } static void decode_umc_error(int node_id, struct mce *m)