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 F13103FB1B; Mon, 23 Jun 2025 22:03:20 +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=1750716201; cv=none; b=WWjCAkmoeX5ccBt11MBInwrbJDt+iMqkKKYgdOC5Mk3AOhYCXFYpYKC/pJqapcpSDfL/zxUcIfwgCUtolZ4M1zminrfGeAxxtnHN2kFaNzG0VblL7x2bFdagkmbMPfQDQdEMSL9NygC5JiY7gMcUNsP4zzh2O+H3P1mg85u1sO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750716201; c=relaxed/simple; bh=eu0QKKpzEzV8IoYkraRC9xVozvtltxbeEoG5LdJRi+k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T3SX25msmptZDh/f5q8PP5xgzI1luMyRa37MHelQLPH9NNnjD3SrcObjf4KynADVKS0fsLjdIWF8lMDr2ctXTx0ojbFhwEh0WbJrsCbICXYhRpRkVFQrgf8ToaxoXRW/X+xFT4PgpWsQAbS3+NwwMdVOEV+8QrqAOYkg74ifr1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=asOzydUo; 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="asOzydUo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 890B3C4CEEA; Mon, 23 Jun 2025 22:03:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750716200; bh=eu0QKKpzEzV8IoYkraRC9xVozvtltxbeEoG5LdJRi+k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=asOzydUokwYFXT9tWGnqdGMp0i896sNavQ0JA4kuO+YZeF9g+byFW3LCgm1l54UyC hLlqjJH3q8o5Zy9H/R1Ml1IIzR4MhcL2CWsSPWBYNyqCA0PMY9mXYdZcM1d8hl+dXU G2Z1rqNBK2bpae79JGd2ksC7M6Qf2qzcsk081WFE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, reox , Avadhut Naik , "Borislav Petkov (AMD)" , stable@kernel.org Subject: [PATCH 6.6 269/290] EDAC/amd64: Correct number of UMCs for family 19h models 70h-7fh Date: Mon, 23 Jun 2025 15:08:50 +0200 Message-ID: <20250623130635.009294286@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250623130626.910356556@linuxfoundation.org> References: <20250623130626.910356556@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Avadhut Naik commit b2e673ae53ef4b943f68585207a5f21cfc9a0714 upstream. AMD's Family 19h-based Models 70h-7fh support 4 unified memory controllers (UMC) per processor die. The amd64_edac driver, however, assumes only 2 UMCs are supported since max_mcs variable for the models has not been explicitly set to 4. The same results in incomplete or incorrect memory information being logged to dmesg by the module during initialization in some instances. Fixes: 6c79e42169fe ("EDAC/amd64: Add support for ECC on family 19h model 60h-7Fh") Closes: https://lore.kernel.org/all/27dc093f-ce27-4c71-9e81-786150a040b6@reox.at/ Reported-by: reox Signed-off-by: Avadhut Naik Signed-off-by: Borislav Petkov (AMD) Cc: stable@kernel.org Link: https://lore.kernel.org/20250613005233.2330627-1-avadhut.naik@amd.com Signed-off-by: Greg Kroah-Hartman --- drivers/edac/amd64_edac.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -4130,6 +4130,7 @@ static int per_family_init(struct amd64_ break; case 0x70 ... 0x7f: pvt->ctl_name = "F19h_M70h"; + pvt->max_mcs = 4; pvt->flags.zn_regs_v2 = 1; break; case 0xa0 ... 0xaf: