From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sg-3-112.ptr.tlmpb.com (sg-3-112.ptr.tlmpb.com [101.45.255.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8474C4594E for ; Fri, 9 Oct 2026 02:06:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=101.45.255.112 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791511590; cv=none; b=C5V0YPE8c2brS0zzqSozsedzOH7Ai1nZpvXVVHU1NgsHRS8MVNFH46EtsbU1SMmo/2+Q31OVrQUL5zSxlLUOtKr7ufymVPPP+yjtqBkC5jgqkHpoajV5/xLF5JypdxtJEMXaXlBr/D0ey9adgvVVRwHfaEXzgisU2zaClRFp2/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791511590; c=relaxed/simple; bh=vM/219kW0GUnhl+QaWvYEue3Yn1LeK6T8AsxRcL6/H8=; h=Cc:Message-Id:Content-Type:To:Subject:From:Date:Mime-Version; b=NzjZBprIYhSOc1QNR+HqhX4XXAEq0PUfvrLsXuHxP6rPnzO/cdUJ0riP2FkYWVb23SsEFDO2RrTUTgLYW9gTl2EYtn40APSOQmH2bqNmdOHMbjfufEmf1OgopoMe8HQD/BX23xdlO+5XypZj+kMn7tDCJfVVpNeWvNz3VBKT9vQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=fCgwPLxC; arc=none smtp.client-ip=101.45.255.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="fCgwPLxC" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1791511547; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=LKiQnCGHUZ2nk19TVt8SnmnQqa0mKzZoQnMjcrji8Q4=; b=fCgwPLxCmANMov3JTysU9v07ayzZ2KDbxtOCGFUwn3Luvy6tmaItMuyhBsGZ/ozo7nVYjc S8f5focrl6amlvkOGynSxmPo8Wz7N63/BaXutDkmQOYacmb9eY7n8mqKIdpW/IcI8TBPGe ntRGrhNSGMts2DQpfG8DES+tNUYHwGk+LOAwznW+4xH01c1gIWi5/J7ZLD0HjhA055KMeJ Stz6r+T4I5DNJJZ4kjMzeU4KAggRWFrJdmwZHvEoleLJEo0k4rLn0qXXTeRg6a5x7MVDQN 0DOU0nzOJ0BJCgsJFXFQzUmoowGc1nl/wVZ5EMWSvWmFd4ngHZUwannvjKx9Zw== Cc: "Guixiong Wei" , "Borislav Petkov" , "Tony Luck" , "Muralidhara M K" , , , X-Mailer: git-send-email 2.55.0 Message-Id: <20261009020447.90758-2-weiguixiong@bytedance.com> X-Original-From: Guixiong Wei Content-Transfer-Encoding: 7bit X-Lms-Return-Path: Content-Type: text/plain; charset=UTF-8 To: "Yazen Ghannam" Subject: [PATCH] EDAC/mce_amd: Add missing long names for SMCA bank types From: "Guixiong Wei" Date: Fri, 9 Oct 2026 10:04:24 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Commit 47b744ea5e3c ("x86/MCE/AMD: Add new MA_LLC, USR_DP, and USR_CP bank types") added three SMCA bank types after the bank long names had been moved to the MCE decoder. The new types were added to the enum, short-name table, and HWID/McaType mapping, but not to smca_long_names[]. As a result, an error from any of these banks is logged with "(null)" in place of the bank name. Add the missing long names. Fixes: 47b744ea5e3c ("x86/MCE/AMD: Add new MA_LLC, USR_DP, and USR_CP bank types") Cc: stable@vger.kernel.org Signed-off-by: Guixiong Wei --- drivers/edac/mce_amd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index 7aee57a25b689..34a44769d1d0f 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c @@ -702,6 +702,7 @@ static const char * const smca_long_names[] = { [SMCA_L2_CACHE] = "L2 Cache", [SMCA_L3_CACHE] = "L3 Cache", [SMCA_LS ... SMCA_LS_V2] = "Load Store Unit", + [SMCA_MA_LLC] = "Memory Attached Last Level Cache", [SMCA_MP5] = "Microprocessor 5 Unit", [SMCA_MPART] = "MPART Unit", [SMCA_MPASP ... SMCA_MPASP_V2] = "MPASP Unit", @@ -726,6 +727,8 @@ static const char * const smca_long_names[] = { [SMCA_UMC] = "Unified Memory Controller", [SMCA_UMC_V2] = "Unified Memory Controller v2", [SMCA_USB] = "USB Unit", + [SMCA_USR_CP] = "Ultra Short Reach Control Plane Controller", + [SMCA_USR_DP] = "Ultra Short Reach Data Plane Controller", [SMCA_WAFL_PHY] = "WAFL PHY Unit", [SMCA_XGMI_PCS] = "Ext Global Memory Interconnect PCS Unit", [SMCA_XGMI_PHY] = "Ext Global Memory Interconnect PHY Unit", -- 2.50.1 (Apple Git-155)