Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4294944ima; Mon, 4 Feb 2019 13:50:13 -0800 (PST) X-Google-Smtp-Source: AHgI3IZKZyONJBpc5m595ricAxnz2rHG1F4Wn8axuHCP6CmWNGDinzX3sggy994CMTcjXcwbHrBR X-Received: by 2002:a62:8e19:: with SMTP id k25mr1477063pfe.185.1549317013877; Mon, 04 Feb 2019 13:50:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549317013; cv=none; d=google.com; s=arc-20160816; b=n1y6z7x2/NAaRYuXSg95iy/UMqLILqVlKMuWOy4FFarU/zDEQmQltEKzb+jo936WtX 6m+lUqWH0WJDUqZ14obvrP4K3/hXFokTx/53c4rhd+rAnUj1Fe8t0CN44QwpKI5tnTPv 36rdos0/0GXXdl/emmIdR+4ag4qvH3DDFsI75eKVKq2aQnK1xMCkq/bXiE9k1HQUcfRZ GBXl4J5YB4Ko/DBbUjHQ4sSfj8PgAlrN3RkKi3vZaLFfiLlNJqToRYP9L07xiS6VY1+j 9FDSXV8iU+SsdQykgeiRoBotMVcDXaxI1YVC+D3JQlhSBeGwuJKBTrqhJfNKefA9X98z GK6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=ioHuhi+x0PK1i9U+kyP/0y66Ou92juPFoQJ/pfOrGhY=; b=S6oZfk4Li2u0otyG0yo+Cc6JiOnsVdfb2geNGTy9PyhMLDHEDpEmcitxrOty0gdjD3 ckwScsJ0+McZf6gSsOU7s8plSv+bgBCHlIwpuTVi0LHwLvRrgla4Ga+X4/rqUBseFx5V 50N1LHQ61A+NWMCSf2tN7DRV2mLfh6XLBAa6an+VoZt/O9oG/ZuB0s+Fwnnb6HTDumdu /X434TKdyg92401ogGT1iNE8G0o7vzA1zjbSsaLhL0a6c2OnwoEGHstS71MJayGFXAb+ dkyxK8n2zKYPLH7bMpFmJO6YxD+TbSsPm6lKzJJjBE6hhahTGmO+NuL4bbR7xRzp4fyw HRjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f63si1168067pfg.136.2019.02.04.13.49.57; Mon, 04 Feb 2019 13:50:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730002AbfBDUoc (ORCPT + 99 others); Mon, 4 Feb 2019 15:44:32 -0500 Received: from terminus.zytor.com ([198.137.202.136]:34451 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728268AbfBDUoc (ORCPT ); Mon, 4 Feb 2019 15:44:32 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x14KiBYB564952 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 4 Feb 2019 12:44:11 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x14KiB2C564949; Mon, 4 Feb 2019 12:44:11 -0800 Date: Mon, 4 Feb 2019 12:44:11 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Yazen Ghannam Message-ID: Cc: x86@kernel.org, mingo@redhat.com, bp@suse.de, mchehab@kernel.org, tony.luck@intel.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, Shirish.S@amd.com, mingo@kernel.org, keescook@chromium.org, yazen.ghannam@amd.com, hpa@zytor.com, linux-edac@vger.kernel.org Reply-To: x86@kernel.org, bp@suse.de, mingo@redhat.com, mchehab@kernel.org, tony.luck@intel.com, mingo@kernel.org, linux-kernel@vger.kernel.org, Shirish.S@amd.com, tglx@linutronix.de, hpa@zytor.com, linux-edac@vger.kernel.org, yazen.ghannam@amd.com, keescook@chromium.org In-Reply-To: <20190201225534.8177-4-Yazen.Ghannam@amd.com> References: <20190201225534.8177-4-Yazen.Ghannam@amd.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:ras/core] x86/MCE/AMD, EDAC/mce_amd: Add new error descriptions for some SMCA bank types Git-Commit-ID: 8a5dd2cd2f2e94878cacc969655a69ca214795ab X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8a5dd2cd2f2e94878cacc969655a69ca214795ab Gitweb: https://git.kernel.org/tip/8a5dd2cd2f2e94878cacc969655a69ca214795ab Author: Yazen Ghannam AuthorDate: Fri, 1 Feb 2019 22:55:52 +0000 Committer: Borislav Petkov CommitDate: Sun, 3 Feb 2019 13:05:16 +0100 x86/MCE/AMD, EDAC/mce_amd: Add new error descriptions for some SMCA bank types Some SMCA bank types on future systems will report new error types even though the bank type is not treated as a new version. These new error types will reported by bits that are reserved in past systems. Add the new error descriptions to the lists in edac_mce_amd. Signed-off-by: Yazen Ghannam Signed-off-by: Borislav Petkov Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Kees Cook Cc: linux-edac Cc: Mauro Carvalho Chehab Cc: Shirish S Cc: Thomas Gleixner Cc: Tony Luck Cc: x86-ml Link: https://lkml.kernel.org/r/20190201225534.8177-4-Yazen.Ghannam@amd.com --- arch/x86/kernel/cpu/mce/amd.c | 8 ++++---- drivers/edac/mce_amd.c | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/cpu/mce/amd.c b/arch/x86/kernel/cpu/mce/amd.c index bd1331b241ca..e64de5149e50 100644 --- a/arch/x86/kernel/cpu/mce/amd.c +++ b/arch/x86/kernel/cpu/mce/amd.c @@ -144,22 +144,22 @@ static struct smca_hwid smca_hwid_mcatypes[] = { { SMCA_RESERVED, HWID_MCATYPE(0x00, 0x0), 0x0 }, /* ZN Core (HWID=0xB0) MCA types */ - { SMCA_LS, HWID_MCATYPE(0xB0, 0x0), 0x1FFFEF }, + { SMCA_LS, HWID_MCATYPE(0xB0, 0x0), 0x1FFFFF }, { SMCA_IF, HWID_MCATYPE(0xB0, 0x1), 0x3FFF }, { SMCA_L2_CACHE, HWID_MCATYPE(0xB0, 0x2), 0xF }, { SMCA_DE, HWID_MCATYPE(0xB0, 0x3), 0x1FF }, /* HWID 0xB0 MCATYPE 0x4 is Reserved */ - { SMCA_EX, HWID_MCATYPE(0xB0, 0x5), 0x7FF }, + { SMCA_EX, HWID_MCATYPE(0xB0, 0x5), 0xFFF }, { SMCA_FP, HWID_MCATYPE(0xB0, 0x6), 0x7F }, { SMCA_L3_CACHE, HWID_MCATYPE(0xB0, 0x7), 0xFF }, /* Data Fabric MCA types */ { SMCA_CS, HWID_MCATYPE(0x2E, 0x0), 0x1FF }, - { SMCA_PIE, HWID_MCATYPE(0x2E, 0x1), 0xF }, + { SMCA_PIE, HWID_MCATYPE(0x2E, 0x1), 0x1F }, { SMCA_CS_V2, HWID_MCATYPE(0x2E, 0x2), 0x3FFF }, /* Unified Memory Controller MCA type */ - { SMCA_UMC, HWID_MCATYPE(0x96, 0x0), 0x3F }, + { SMCA_UMC, HWID_MCATYPE(0x96, 0x0), 0xFF }, /* Parameter Block MCA type */ { SMCA_PB, HWID_MCATYPE(0x05, 0x0), 0x1 }, diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index 184c90172d17..c79e650aa606 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c @@ -155,7 +155,7 @@ static const char * const smca_ls_mce_desc[] = { "Store queue parity", "Miss address buffer payload parity", "L1 TLB parity", - "Reserved", + "DC Tag error type 5", "DC tag error type 6", "DC tag error type 1", "Internal error type 1", @@ -222,6 +222,7 @@ static const char * const smca_ex_mce_desc[] = { "Retire status queue parity error", "Scheduling queue parity error", "Branch buffer queue parity error", + "Hardware Assertion error", }; static const char * const smca_fp_mce_desc[] = { @@ -279,6 +280,7 @@ static const char * const smca_pie_mce_desc[] = { "Internal PIE register security violation", "Error on GMI link", "Poison data written to internal PIE register", + "A deferred error was detected in the DF" }; static const char * const smca_umc_mce_desc[] = { @@ -288,6 +290,8 @@ static const char * const smca_umc_mce_desc[] = { "Advanced peripheral bus error", "Command/address parity error", "Write data CRC error", + "DCQ SRAM ECC error", + "AES SRAM ECC error", }; static const char * const smca_pb_mce_desc[] = {