From patchwork Tue May 11 15:25:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 12251363 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73AB8C433B4 for ; Tue, 11 May 2021 15:26:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2F16361585 for ; Tue, 11 May 2021 15:26:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231609AbhEKP1F (ORCPT ); Tue, 11 May 2021 11:27:05 -0400 Received: from mail-dm6nam12on2070.outbound.protection.outlook.com ([40.107.243.70]:41440 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231808AbhEKP1F (ORCPT ); Tue, 11 May 2021 11:27:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P8tKIxtwbVK1kxdo0dOKY7MuCPsHwmEdEKH2ww8Q5OkxupyT1zuZP7NGlX3r/576ONeP0OW0PdU5pbSYvHt8SNZPg1MzFsg4Mq8NAhjwShScApj5VyydVCpqZYE7PEtZHgTfYMs6NF8TrMwtSlyzJYReCzfts0I9OQ0NtpHlCSvQtdRmWoiAPI/dAdBu67oMEOe4Xb9WxCCYcDKfjxDHrMkDGLv06waHgrdhvjRB1QjI/JaP7ryADkKIw/6X9EPTeQs6vGbFpovQ9W6c7W7omvfhtpaSCuov64JU8jEkn4s30jQRW/gqlAERktTGES0kRCnKO5mnkmnycrknDZCkvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iARQkXFQ7NBH2v1fFXaU9jJp3UwPCmAp0PSYviHQ3Kw=; b=TKOgL5cCApqr6nD+3sSLBylM6hES8pVb1uK5k0CWG1RWWUFlBjft7GnPuUtleZ2MwYv+yBzl9uYbY5PCjubW6zeDOFa1YePTKOZ6Zh8r63e7SS5MW65qSovnniVS3/ZYhO5HgGqDx78ECqE6Lu/ID2n+ux0puvYEHYO88eQs3ygEEvfRKx0sxN98tHJf9MejtKx2ums0DvqDu2ZuwXUdHhRKk5KbnpoFVjSjsyNGnks71iokGR1DLFbcUn0lrLL+Qvl5xbovz6KXOZPYY8hsrXKJBdKXK9RzMTF6KzwGo7OLFar/VyV7iEJeaoDVqSJhsj28rwUWNFB7PSBdU/6EfQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iARQkXFQ7NBH2v1fFXaU9jJp3UwPCmAp0PSYviHQ3Kw=; b=etnrHELkKgxkr0WFHdT+B0PbXBT5LIHgEJ2Kg7uY/wNV3OWNNboXaIFiE5cecX/S5puDebCTqd0MuhALsNxL/xs34Qr1tyNPyg4v5qqLy3UitN3FzSid+fMfOpoEk9WWaJk1NDyn3ZAofBbTbyoiBjsrjOd689jaTnQSsCuju+g= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB4388.namprd12.prod.outlook.com (2603:10b6:5:2a9::10) by DM6PR12MB3020.namprd12.prod.outlook.com (2603:10b6:5:11f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Tue, 11 May 2021 15:25:57 +0000 Received: from DM6PR12MB4388.namprd12.prod.outlook.com ([fe80::9030:4dbb:df11:c961]) by DM6PR12MB4388.namprd12.prod.outlook.com ([fe80::9030:4dbb:df11:c961%5]) with mapi id 15.20.4108.032; Tue, 11 May 2021 15:25:57 +0000 From: Naveen Krishna Chatradhi To: linux-edac@vger.kernel.org, x86@kernel.org Cc: linux-kernel@vger.kernel.org, bp@alien8.de, mingo@redhat.com, mchehab@kernel.org, Muralidhara M K Subject: [PATCH 1/3] x86/MCE/AMD, EDAC/mce_amd: Add new SMCA bank types. Date: Tue, 11 May 2021 20:55:36 +0530 Message-Id: <20210511152538.148084-1-nchatrad@amd.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: MA1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::14) To DM6PR12MB4388.namprd12.prod.outlook.com (2603:10b6:5:2a9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from milan-ETHANOL-X.amd.com (165.204.156.251) by MA1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Tue, 11 May 2021 15:25:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 541d3d88-3640-4b31-0ab8-08d9149112ca X-MS-TrafficTypeDiagnostic: DM6PR12MB3020: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2887; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PrjT4HOKPjDkBURVv23AHX4iyP7S4iCWCbSFoC4TlAS7Lkl7kpqerN/4lebryUwTUoWHBwHXJ/JEiMfTNUQBPDL6G1wkQHzduvd2C3j6xVI66+pyikWYvZn+qkqBcEQHkOGxpZr3wxmxf9dZDGemSfj6kB1lcEW7Qwx75ZgCY7H1BRVxOj2Ep+GOMHkfx02Vq7pb2V4r3x23Y7Tm4cB/wwOx+ngwP7tzMLUjjVHsqVvPpnUeVHCmFXR0OBZF/lcDQJUgm+OAPZ+Uo52upbwhStDT/ti7/gTQhE5Z7UrLgIOKbkW1XSQ6QQR/z1zWvMUbSlzfABKoaWTDZLqY2Kuc+qJncXq9fNYzRLRc+dXTPBanfY9CCalQ/uTkGIIdo+bfvc4/2aeZRtysWl4xwAPiiJuUanXAWR0NVmMBg8oZ3t4pJ4pI/PZWN1mdVEnIKlsis2AqPS4m03GLVTTrgE2E+iUmNLtycOA1otWzGVw0avq3pPZVkYz2YupqMzJNzQXmVIpEYcIV+R5NnfHAPOeuW9G1PKiRyVWdrVPGYENJdHBkcxVjOAzeHrb57yPhLwQ8pfxq9lxNffUKELSOH+54/R89kyt7ZAbz5e//yhcxJaSpzNj9HdH/9B2p7uBTGMsOmk0/EWroqqSOQQ0yyqhlSw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB4388.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(396003)(136003)(39860400002)(376002)(366004)(66476007)(7696005)(16526019)(186003)(66556008)(1076003)(52116002)(15650500001)(66946007)(2906002)(316002)(83380400001)(478600001)(36756003)(5660300002)(6666004)(38350700002)(38100700002)(6486002)(8676002)(26005)(4326008)(956004)(2616005)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: TUgZkdawxoOb/Ym4oZ5DgbAlzacY9hJwArjcn00gUqBFIK2cq8Hno4qltkBkZnm+WORR53AiFMqrf9+aLxiASzqLa9Y9ksBzabidnVQ85uZPDqTApawTvrD8Zs0yUB85VO7jkdqD6AQ0RcXUTKUHM+1dV+yENN9VTHdTHZFqi1XkjpyUFN1zuohayc9avohx4N2VP6zsA/vNtGRUUnhpWYC+ckE7bLLpcR1YW3kCWGW2qIdwA+aF9BAMgPXCbprB42DoOxK1ZODoVQdPcCcMJ6C6nIcyh35sxmCFIdVclJV3ZHCHOInoJO/c1ZzyognBoifVU9h7hH6OY0l2S3CkEzjXAybaJbWsTgHZy3p4S3Z9b+/aLGmZ0pWedX8FkuxvXs8lktCuBZU1hbvn6PIyQ76AVezHLL2ZLFWnpuazDqdFqzm0yzc62/8QI3pVTQaHvdGp3SrZbkXl5gtSn60/N1jj5VenDjsWAwLgeaITS0IuQlx0T5nOEwy2QXJpawLcXLveQabBvHOQlejiY4BA/L/dg1+wBf5hBMUoSrOieeocsD44FPIMOc7WsoeHvFAunofKi6qoocdFsR/dYZjWF4tP2MLsAt8PjWKmDgjq7HgeUe1KsUzfpijzVNLq0DpXUTxSw5ovUSQpxFZ3d8klxQmv98Gh0Y9UnPsUIQ+BHOzyvCONZGDzgV/MSiR1RRQbctu23pPrrxiLvQgzZhER9BNIXwS6fJ8IZUieOqaqPtyZPvCtYPLLPPxHJOXEsmZVNjtLUgulTujvi/b3QZ/2iSo99U2tJS7g/6ZkRHtLNp6p19WC3FDq0ULGOnGfJiPSqgxsc0CUXYPnHYsNAr10Al3LRuwx+XnrlD6ww6iwKKmNOsLwbIYcmoGLSQIZf90yAvbQYvxmk4VKTQejPAluukfgHIt2NFt8wBpzJeUbp7OYTxEjZO3kw4kHvjq/CGkYptyYnFh1pjOf3XoYL6y0QIBocG7MqoMetCEEudVoDLJU2HydcdLpHxl49G2D/pkg9HM3JZN1hB6u5u4tm3OkiODAW20t686rY47yihHDzORnnGnVqW3OkC+WE+V1h+y2LIOHPMAuSYYbPq2a0Tie9GiIfNKxgyvQ8MMa5vz/5wRY4gkQHEZRMdnstTDwscBulRNt3a/NGNOG/Yggozde1S7wJnMTziq2Kv3Xf0tJDeEOUbRTkw0BDBL7XtFywFwV6H5Ta3Tjvs7ecAQtWUyRjyS9PAM12e4O9oCaUpA3yBH90l6z2sI4MpVzquwDs9TG8+R3YQn8WRgKRogODPqwvnzguotPW99iykzlaTZ0OwtQli8Dm5oXR5mPK3X3W+Xz X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 541d3d88-3640-4b31-0ab8-08d9149112ca X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4388.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2021 15:25:57.1682 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: P0tSUNDrZeaQjcM+mb7aFAhYT5mkdBHlmpfmmH3fBcNrublvbJrffh2WJSp40Ef4tibFXyYNPt5KNXzqFzxUdg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3020 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org From: Muralidhara M K Add the (HWID, MCATYPE) tuples and names for new SMCA bank types. Also, add their respective error descriptions to the MCE decoding module edac_mce_amd. Signed-off-by: Muralidhara M K Reviewed-by: Yazen Ghannam --- arch/x86/include/asm/mce.h | 5 +++ arch/x86/kernel/cpu/mce/amd.c | 16 ++++++++ drivers/edac/mce_amd.c | 70 +++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+) diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index ddfb3cad8dff..cf7f35fdf2c8 100644 --- a/arch/x86/include/asm/mce.h +++ b/arch/x86/include/asm/mce.h @@ -317,6 +317,7 @@ enum smca_bank_types { SMCA_CS_V2, /* Coherent Slave */ SMCA_PIE, /* Power, Interrupts, etc. */ SMCA_UMC, /* Unified Memory Controller */ + SMCA_UMC_V2, /* Unified Memory Controller */ SMCA_PB, /* Parameter Block */ SMCA_PSP, /* Platform Security Processor */ SMCA_PSP_V2, /* Platform Security Processor */ @@ -325,6 +326,10 @@ enum smca_bank_types { SMCA_MP5, /* Microprocessor 5 Unit */ SMCA_NBIO, /* Northbridge IO Unit */ SMCA_PCIE, /* PCI Express Unit */ + SMCA_PCIE_V2, /* PCI Express Unit */ + SMCA_XGMI_PCS, /* xGMI PCS Unit */ + SMCA_XGMI_PHY, /* xGMI PHY Unit */ + SMCA_WAFL_PHY, /* WAFL PHY Unit */ N_SMCA_BANK_TYPES }; diff --git a/arch/x86/kernel/cpu/mce/amd.c b/arch/x86/kernel/cpu/mce/amd.c index e486f96b3cb3..055f3a0acf5e 100644 --- a/arch/x86/kernel/cpu/mce/amd.c +++ b/arch/x86/kernel/cpu/mce/amd.c @@ -90,6 +90,7 @@ static struct smca_bank_name smca_names[] = { [SMCA_CS_V2] = { "coherent_slave", "Coherent Slave" }, [SMCA_PIE] = { "pie", "Power, Interrupts, etc." }, [SMCA_UMC] = { "umc", "Unified Memory Controller" }, + [SMCA_UMC_V2] = { "umc_v2", "Unified Memory Controller" }, [SMCA_PB] = { "param_block", "Parameter Block" }, [SMCA_PSP] = { "psp", "Platform Security Processor" }, [SMCA_PSP_V2] = { "psp", "Platform Security Processor" }, @@ -98,6 +99,10 @@ static struct smca_bank_name smca_names[] = { [SMCA_MP5] = { "mp5", "Microprocessor 5 Unit" }, [SMCA_NBIO] = { "nbio", "Northbridge IO Unit" }, [SMCA_PCIE] = { "pcie", "PCI Express Unit" }, + [SMCA_PCIE_V2] = { "pcie", "PCI Express Unit" }, + [SMCA_XGMI_PCS] = { "xgmi_pcs", "Ext Global Memory Interconnect PCS Unit" }, + [SMCA_XGMI_PHY] = { "xgmi_phy", "Ext Global Memory Interconnect PHY Unit" }, + [SMCA_WAFL_PHY] = { "wafl_phy", "WAFL PHY Unit" }, }; static const char *smca_get_name(enum smca_bank_types t) @@ -155,6 +160,7 @@ static struct smca_hwid smca_hwid_mcatypes[] = { /* Unified Memory Controller MCA type */ { SMCA_UMC, HWID_MCATYPE(0x96, 0x0) }, + { SMCA_UMC_V2, HWID_MCATYPE(0x96, 0x1) }, /* Parameter Block MCA type */ { SMCA_PB, HWID_MCATYPE(0x05, 0x0) }, @@ -175,6 +181,16 @@ static struct smca_hwid smca_hwid_mcatypes[] = { /* PCI Express Unit MCA type */ { SMCA_PCIE, HWID_MCATYPE(0x46, 0x0) }, + { SMCA_PCIE_V2, HWID_MCATYPE(0x46, 0x1) }, + + /* xGMI PCS MCA type */ + { SMCA_XGMI_PCS, HWID_MCATYPE(0x50, 0x0) }, + + /* xGMI PHY MCA type */ + { SMCA_XGMI_PHY, HWID_MCATYPE(0x259, 0x0) }, + + /* WAFL PHY MCA type */ + { SMCA_WAFL_PHY, HWID_MCATYPE(0x267, 0x0) }, }; struct smca_bank smca_banks[MAX_NR_BANKS]; diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index 5dd905a3f30c..5515fd9336b1 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c @@ -323,6 +323,21 @@ static const char * const smca_umc_mce_desc[] = { "AES SRAM ECC error", }; +static const char * const smca_umc2_mce_desc[] = { + "DRAM ECC error", + "Data poison error", + "SDP parity error", + "Reserved", + "Address/Command parity error", + "Write data parity error", + "DCQ SRAM ECC error", + "Reserved", + "Read data parity error", + "Rdb SRAM ECC error", + "RdRsp SRAM ECC error", + "LM32 MP errors", +}; + static const char * const smca_pb_mce_desc[] = { "An ECC error in the Parameter Block RAM array", }; @@ -400,6 +415,56 @@ static const char * const smca_pcie_mce_desc[] = { "CCIX Non-okay write response with data error", }; +static const char * const smca_pcie2_mce_desc[] = { + "SDP Parity Error logging", +}; + +static const char * const smca_xgmipcs_mce_desc[] = { + "DataLossErr", + "TrainingErr", + "FlowCtrlAckErr", + "RxFifoUnderflowErr", + "RxFifoOverflowErr", + "CRCErr", + "BERExceededErr", + "TxVcidDataErr", + "ReplayBufParityErr", + "DataParityErr", + "ReplayFifoOverflowErr", + "ReplayFIfoUnderflowErr", + "ElasticFifoOverflowErr", + "DeskewErr", + "FlowCtrlCRCErr", + "DataStartupLimitErr", + "FCInitTimeoutErr", + "RecoveryTimeoutErr", + "ReadySerialTimeoutErr", + "ReadySerialAttemptErr", + "RecoveryAttemptErr", + "RecoveryRelockAttemptErr", + "ReplayAttemptErr", + "SyncHdrErr", + "TxReplayTimeoutErr", + "RxReplayTimeoutErr", + "LinkSubTxTimeoutErr", + "LinkSubRxTimeoutErr", + "RxCMDPktErr", +}; + +static const char * const smca_xgmiphy_mce_desc[] = { + "RAM ECC Error", + "ARC instruction buffer parity error", + "ARC data buffer parity error", + "PHY APB error", +}; + +static const char * const smca_waflphy_mce_desc[] = { + "RAM ECC Error", + "ARC instruction buffer parity error", + "ARC data buffer parity error", + "PHY APB error", +}; + struct smca_mce_desc { const char * const *descs; unsigned int num_descs; @@ -418,6 +483,7 @@ static struct smca_mce_desc smca_mce_descs[] = { [SMCA_CS_V2] = { smca_cs2_mce_desc, ARRAY_SIZE(smca_cs2_mce_desc) }, [SMCA_PIE] = { smca_pie_mce_desc, ARRAY_SIZE(smca_pie_mce_desc) }, [SMCA_UMC] = { smca_umc_mce_desc, ARRAY_SIZE(smca_umc_mce_desc) }, + [SMCA_UMC_V2] = { smca_umc2_mce_desc, ARRAY_SIZE(smca_umc2_mce_desc) }, [SMCA_PB] = { smca_pb_mce_desc, ARRAY_SIZE(smca_pb_mce_desc) }, [SMCA_PSP] = { smca_psp_mce_desc, ARRAY_SIZE(smca_psp_mce_desc) }, [SMCA_PSP_V2] = { smca_psp2_mce_desc, ARRAY_SIZE(smca_psp2_mce_desc) }, @@ -426,6 +492,10 @@ static struct smca_mce_desc smca_mce_descs[] = { [SMCA_MP5] = { smca_mp5_mce_desc, ARRAY_SIZE(smca_mp5_mce_desc) }, [SMCA_NBIO] = { smca_nbio_mce_desc, ARRAY_SIZE(smca_nbio_mce_desc) }, [SMCA_PCIE] = { smca_pcie_mce_desc, ARRAY_SIZE(smca_pcie_mce_desc) }, + [SMCA_PCIE_V2] = { smca_pcie2_mce_desc, ARRAY_SIZE(smca_pcie2_mce_desc) }, + [SMCA_XGMI_PCS] = { smca_xgmipcs_mce_desc, ARRAY_SIZE(smca_xgmipcs_mce_desc) }, + [SMCA_XGMI_PHY] = { smca_xgmiphy_mce_desc, ARRAY_SIZE(smca_xgmiphy_mce_desc) }, + [SMCA_WAFL_PHY] = { smca_waflphy_mce_desc, ARRAY_SIZE(smca_waflphy_mce_desc) }, }; static bool f12h_mc0_mce(u16 ec, u8 xec) From patchwork Tue May 11 15:25:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 12251365 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B645C433B4 for ; Tue, 11 May 2021 15:26:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 30FFD61400 for ; Tue, 11 May 2021 15:26:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231779AbhEKP13 (ORCPT ); Tue, 11 May 2021 11:27:29 -0400 Received: from mail-eopbgr760087.outbound.protection.outlook.com ([40.107.76.87]:3470 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231955AbhEKP11 (ORCPT ); Tue, 11 May 2021 11:27:27 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U88Rapyyd//kCW3FhXVffcVPCKZUtDPW0XSMhkkoqNyRdmrNTfpnEsvjUieh3+XMPAgY9HnrmXBjSp/v+KcnQO2ypYM23BjnLpSvcCDIZtsuEya/3FZ4KsTOUEi/LGd64UKGzsWvExi1QzG4LD+AM/cyxEK8JF2RagViY4Y15xWssvZPkSffz7nGnqafDtwMskUkBsI6CNenaoXAq59maMGv3K7eyu7tV38dbt/zl4NM4FJBscr/0Q2ZhKtOZbxWBNE6gJ8gL1JsUqMtaQkQ/iF6gKb/gAwb9SFXtRrrVnXHgyNBl/qX04ClYLHAyD6SBDXjybN0UsFLFvseCcDFig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vgSeeTandTe6p0eSaEd9ZH1d9GD6Y+BiMlYioOJiR2c=; b=F5swrPdz7TGFF/fhtbwOjicEjc5o4fmofHpzinN7CTmj3hCwuRurjQGd2i49OuAqn+HIhNqw6qb0Xeks8nsBlhkT9YXSRwHhgcTrJ/DU/WUV1YRqzS5uTpSke3vCZTHESiOmrSNBbwXaUHEg8kdzkVomksGUiaHrmbmcSdsj5LzG9E5gsIrX0iXkScQGz3sJBIdd1bdhs212/4gctwKHPcOLUkYyB4XPrseNNhewGl3jd+MDH3fdFgl8jEyH6fyy5oF7tOoDR2gSw2briIq5MrPx7iDcs8cckouwegs/SqgeXU/6W6yXCR1Pv0xzSUtQnsDnDsieBPQa/poolUDutA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vgSeeTandTe6p0eSaEd9ZH1d9GD6Y+BiMlYioOJiR2c=; b=sFfOXSLk09UqCPZ8PztcksF5gHW08viHe8K/ojGyLmAOGbprT5dp0Gv0jyPKqyldB9Lv+mf66DTOZ4DPPvE/rzEfjLweOYAj9uC2yZz/FRVW/AhJyg3QLdzit/oAfwp8qZXVvNREEl8CQY4PC0TlXJwYWjNzhl0jemu32xSwlPQ= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB4388.namprd12.prod.outlook.com (2603:10b6:5:2a9::10) by DM6PR12MB4402.namprd12.prod.outlook.com (2603:10b6:5:2a5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Tue, 11 May 2021 15:26:18 +0000 Received: from DM6PR12MB4388.namprd12.prod.outlook.com ([fe80::9030:4dbb:df11:c961]) by DM6PR12MB4388.namprd12.prod.outlook.com ([fe80::9030:4dbb:df11:c961%5]) with mapi id 15.20.4108.032; Tue, 11 May 2021 15:26:18 +0000 From: Naveen Krishna Chatradhi To: linux-edac@vger.kernel.org, x86@kernel.org Cc: linux-kernel@vger.kernel.org, bp@alien8.de, mingo@redhat.com, mchehab@kernel.org, Mukul Joshi Subject: [PATCH 2/3] x86/MCE/AMD: Helper function to check UMC v2 Date: Tue, 11 May 2021 20:55:37 +0530 Message-Id: <20210511152538.148084-2-nchatrad@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210511152538.148084-1-nchatrad@amd.com> References: <20210511152538.148084-1-nchatrad@amd.com> X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: MA1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::14) To DM6PR12MB4388.namprd12.prod.outlook.com (2603:10b6:5:2a9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from milan-ETHANOL-X.amd.com (165.204.156.251) by MA1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Tue, 11 May 2021 15:26:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 97d8850f-948a-43d7-9609-08d914911f50 X-MS-TrafficTypeDiagnostic: DM6PR12MB4402: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1051; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8A+cNYrqAHdBhd/tSg8mMwzigIuRuiaegYcSjcc9MJC19wUf//WwRP9TTEy+s/bfXPZ8sUJMstpbPJb8bFXP1HNFh7rPuf5s9Fi8VN7mIqgvlMvIGzzPjS8Od3pdWvg1Mh4XKr5CWOs/DqbKGvjTkiEPOSU7CnlVgORHSlOVXb/PAn/ug+wpz4b9Seiz/DWUDXmyFLtKIXyNa+g3i/UPB2BEU0R8jpxiJ021MoOjB/KK8Oadfhv9VcwRJ85zp/q0AQ52tOyxqJmn2tos4Be2KPOJb6uayZGHOabrXzZ2hdQem9r6dobLcl/NoKewDrdTcWSpmhrDz+HmWnvtNG7vOwaBi6TcdHVxvSHehqeb4Q8R6i9A34dX9ODcTdV6lU4WHPd2Scaez5EGFTjhOeeAPWYohWs0hTofE2dn7JkAOPgq9xKkYTOocICfKfxKeP7A0wuiO10BKMQjsYRvMWjc9jMLKQTjPiV2XKmXUP61vnlnJ6tIBV3115YSne0V7vaxaGpd0PsqG2KFbe2zCeYu5Lw2EybWC1aez/y+hk7gK9X0SVqWJ1aCWrWxbLTKS1S1EPkgolnh9sCUnYSALCmO+NC8bHe93qbQMXFa+kyTL15LgZn2sZu+Z3C+T24Enk+Rd6exueU4Gk7oHc9QMd/12w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB4388.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(39860400002)(346002)(396003)(366004)(136003)(2616005)(66946007)(4326008)(1076003)(316002)(83380400001)(2906002)(6486002)(52116002)(7696005)(6666004)(16526019)(186003)(8936002)(8676002)(478600001)(26005)(956004)(5660300002)(36756003)(38100700002)(66476007)(38350700002)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: H7CCbEQfuSSXAJZg1rFpqzoqAgBMtAUKkrjqmGH0QRLzQoqS0jHG3+MM8JvfFcS1e4W4pq4N6ZH1q+2TADN4m62thQC/0pB0b+LI+6EvYjOJZWZ5RoHeau1E5UGrgqC8Qq3U0PUs3zEyM48N06sozXQP85U7xLOqQkB4NUuvsruUGx1ZzvYJZsdYt+trBFuQNxJcTOxfAI94Z+z1Huf2KJ5KeIPaEq1IZNTOxSVXTuuUT25pZ9/V3Gc8zg8jajNHs9KTQUN1ZdGZFnPdawpezN1aypjK5yrIjD0mCgDbv5V5at8bV/OS1mQBBeoQRMUMX1ZbWbZiAW773fdRWNa2sGb1Mu4fbdnuGypuIQ9//YlCGpikgk9969lten/b6cAqfJ82rAySOYOZRBWFkj3/sakakLiusT7yZ11Yb5/VPgEKeAFTzA2PkDzwuKqy4+OGfiaeduhdsiXJ2ERTRCjEd3Q79HVunHihDw9S9NTZhM6D3g+6V69xRqf3rL3kMBuB/lRiVe6Fv3UsGMKOgKXMFvNWG1l0cBDZ9gi1R8RvZbQNnq6X87MJ9K0Xqmk5P34c6VwX6ysj+nJQlmsYRWDxNwdBtezYHI3Ip416I0UyBuyO8zt5WaEtsDuVNvfX6Vzo+P3J5LRnJ44FEW7jmzGM8R1pbBoLkvEn0BuRsUUL9zRbZWKyBH/2BqdXoHjFgpvXOqVfVY12CZmQAmF1q6TJg6ECUw5bcs5e9WxWDBhXeoz7WPpNhNOFtr6oDnIzZwt1R9pdVehwBB+hk4Qa4jfdnoF7ZF56xMNUwxwBom1VJAUSrbgLRuWv0EDtWbEXsgzUyP5Ik3wBzBEXOkO32sVOf2MVODeJCfDySn5QvYCcQLZLLALQ9nmv8nG5rCrhmYtCMQVxjMNHQ+E45Ky/vVVN2WRZdx7sGbdt2nq2+iWH+NQhK88jxgnmZE4uGEaTMQKNSjFTJWvTkp7uC5cHVMsMc7CI4iCN/qrf6+XPuGXoOF7ITlQ1NakFnIp2tpymYA78MkJPqntPKqDrALG0rJnIi4vQEQOgG11OwMNgCdkI6ObaDQgtGdFhbsDrVGB/bLkJ8R1SC7b+v8/RIfHt5deu8E0zY9IHmSkCB2e/GLXvi9wSvWJRKw0YvD5DL36sXf7crtHL6JrJZINrj7jHgE+Bz5ifHXU7nddg1I6NgXUeoOze9JmMqQFwxFHt9owi4MRvkTGaDHFnUIfCEt4k/qAbm42Lk1/LQ7MTmk1erHRUE2JdlEFXe+IguCMzmh75Shl5YPCVrdyd1Lk02DNGAIb9rWE2ZwvctrzyUSRqwjTFV+P2gR+X7Fa7Hxi9NKsHrBNu X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97d8850f-948a-43d7-9609-08d914911f50 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4388.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2021 15:26:17.9656 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZNyJ0cPq1Me6wHiQg3L2qYKUdB0+ZEeW/Xe/uqX2Ash6nOcMi7MLlkr3kq+5Q5tP3ajZ2QXOxwop/38b4wi0wQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4402 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org From: Mukul Joshi Add a helper function to check if a given bank is UMCv2 or not. Signed-off-by: Mukul Joshi Reviewed-by: John Clements Reviewed-by: Yazen Ghannam --- arch/x86/include/asm/mce.h | 2 ++ arch/x86/kernel/cpu/mce/amd.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index cf7f35fdf2c8..8cbe7221a253 100644 --- a/arch/x86/include/asm/mce.h +++ b/arch/x86/include/asm/mce.h @@ -357,6 +357,7 @@ extern int mce_threshold_remove_device(unsigned int cpu); void mce_amd_feature_init(struct cpuinfo_x86 *c); int umc_normaddr_to_sysaddr(u64 norm_addr, u16 nid, u8 umc, u64 *sys_addr); +bool is_smca_umc_v2(int bank); #else @@ -366,6 +367,7 @@ static inline bool amd_mce_is_memory_error(struct mce *m) { return false; }; static inline void mce_amd_feature_init(struct cpuinfo_x86 *c) { } static inline int umc_normaddr_to_sysaddr(u64 norm_addr, u16 nid, u8 umc, u64 *sys_addr) { return -EINVAL; }; +static inline bool is_smca_umc_v2(int bank) { return false; }; #endif static inline void mce_hygon_feature_init(struct cpuinfo_x86 *c) { return mce_amd_feature_init(c); } diff --git a/arch/x86/kernel/cpu/mce/amd.c b/arch/x86/kernel/cpu/mce/amd.c index 055f3a0acf5e..41718e3111f2 100644 --- a/arch/x86/kernel/cpu/mce/amd.c +++ b/arch/x86/kernel/cpu/mce/amd.c @@ -1542,3 +1542,9 @@ int mce_threshold_create_device(unsigned int cpu) mce_threshold_remove_device(cpu); return err; } + +bool is_smca_umc_v2(int bank) +{ + return (smca_get_bank_type(bank) == SMCA_UMC_V2); +} +EXPORT_SYMBOL_GPL(is_smca_umc_v2); From patchwork Tue May 11 15:25:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 12251367 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4278C433ED for ; Tue, 11 May 2021 15:26:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9557A6188B for ; Tue, 11 May 2021 15:26:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231966AbhEKP1b (ORCPT ); Tue, 11 May 2021 11:27:31 -0400 Received: from mail-eopbgr760085.outbound.protection.outlook.com ([40.107.76.85]:28000 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231950AbhEKP1a (ORCPT ); Tue, 11 May 2021 11:27:30 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S4tnRIJyeZ11+R2cBNRO5FGrXHbEGnjGI4+xjbq/24PzeAW20rx7RWBn4o6HT0mnJXwXD0aeXBCA/wBJMvQQqs3coJ9d2pefleQKKoYHwYVyPSEIAyD7Im6F2hXUb024LYYKa1k0nJlNZBbOdr6sQbbrqhTpAnGynHvM3TCEroYoB3QKHnRvH/Cf4KXfYIjWOuUqJtdUX3sVx4YJzAnsLANGPDcj1HKKsdHqqmK0Lefi/g9KfoSgg+x4SetUPuwxVr38/Qj3qVBvK7GXCmqUFaUPsQjxjRmgNQN9ksR17CtDhUrvboDTu9YHlJvx7aVJKk+tTOX8FBln5azp9skCLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n13QHWFd4cXBsdN4n/Zwor2nh2BRbP9K1UEwCNHpk1I=; b=CYZPF7hdrGqLun/Ot72DZTFoxw/xgFrXzjW6sXlSTFSPpvop/aHeymPamdEi4Kq7UTYTFWds8i2EMlnDtgA+05FjbeNdZJKc4htYrtbNVSvXE8kBLKhlhrNwg3CBFWQuzIWaK95WeeiD+5eZs+JEEA7tkb7e9RCa3C/90KQjmBBgvlcsLjSYjEy4h4m245Lp1EImSTQ4PK7h5/R53TqV5CO2bhvtyzluTp8S5higDdYWiJB13OYpKsojrCXrfgG5vO5PCe6sCD98dNt7ARgTcPL8mEhAymoRTaWJsQfM7TJjiwLK7ctJ27isc8Q0jy3YiJYDU/rdj8uXfI+rLw+ddw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n13QHWFd4cXBsdN4n/Zwor2nh2BRbP9K1UEwCNHpk1I=; b=rN9pJIfeWTH1fPfqTMlWxC93m5Yv6Ywz+M0umSO12lpMhyd4vpIRywQ8Pm4Z8j1xk8BL+xbvD56Z4cexaefNua9lRXET0oHVSj+T0o4t/TAFFF8pl5BrfG0XP+k5uIdeSBWS5ei1h71KOC+tC7Uf3XRSGZmhKhg470OsKF6try4= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB4388.namprd12.prod.outlook.com (2603:10b6:5:2a9::10) by DM6PR12MB4402.namprd12.prod.outlook.com (2603:10b6:5:2a5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Tue, 11 May 2021 15:26:23 +0000 Received: from DM6PR12MB4388.namprd12.prod.outlook.com ([fe80::9030:4dbb:df11:c961]) by DM6PR12MB4388.namprd12.prod.outlook.com ([fe80::9030:4dbb:df11:c961%5]) with mapi id 15.20.4108.032; Tue, 11 May 2021 15:26:23 +0000 From: Naveen Krishna Chatradhi To: linux-edac@vger.kernel.org, x86@kernel.org Cc: linux-kernel@vger.kernel.org, bp@alien8.de, mingo@redhat.com, mchehab@kernel.org, Mukul Joshi Subject: [PATCH 3/3] x86/mce: Add MCE priority for Accelerator devices Date: Tue, 11 May 2021 20:55:38 +0530 Message-Id: <20210511152538.148084-3-nchatrad@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210511152538.148084-1-nchatrad@amd.com> References: <20210511152538.148084-1-nchatrad@amd.com> X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: MA1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::14) To DM6PR12MB4388.namprd12.prod.outlook.com (2603:10b6:5:2a9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from milan-ETHANOL-X.amd.com (165.204.156.251) by MA1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Tue, 11 May 2021 15:26:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8a100149-e4f5-4c1c-23ea-08d914912245 X-MS-TrafficTypeDiagnostic: DM6PR12MB4402: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3276; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k8bGy4C9oeLwNYhxws0jeajF8mn9PX5LKz1QVEI4HA/eev0T03phJLykcpHji8SDJEwNJjBU7D9nbxU5TCuQ1iHYeBiha/sonM5n17Mw5FiWvJWK/+fWRkmDe9IieF+dDhYT1p7ppOMTp30Mj1g6nynMjBRh4gi54lgBKsxZAFTzvlol52/C45y/MvwBi4pzn7sKGUk4w0yotIAd/D5L+5bUubjlVTPGzbjcO34ma3X9kIHlP1jTlFqkx7FwuiQ5n1peBY1SHs6UFCOsBTApdD7749KngVV1AdM40jIOjn/oDlVo2IcnL/X4QtpiyZz0BBlTXD98aCRywmiKCz0U0TR4ec2v0gQOojuliScNfW+dyT/OCyKrRVL96Ps95t42a+n9mnw9dYlIxndJ0vBp/waDiMxX0IVMbzNfRWdZ0fzabkdGaVvy81xXsM7UHrFNDyYsBPrri00nWe1dAy9OSDxDk//OFrR65TZ7IcrDCKPp2rK/dClsZV3sirk9sHPsz4Pq8Ii6T7T5sIabBjyo1MwR4MxCUHVzMAGjujhaGBYXlekaR/6X9yNpxPXw1uwG9JLfV0+9JVjrfHN3kzKg5Ou01Sz+snbOgAfuwNExxxX0Z9TMNzy1mvgCVzI4oIBhNUXfgev0vkcSuYGrOpmsa7KCgEXph7FBpsuIUBIa+M0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB4388.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(39860400002)(346002)(396003)(366004)(136003)(2616005)(66946007)(4326008)(1076003)(316002)(83380400001)(2906002)(6486002)(52116002)(7696005)(6666004)(16526019)(186003)(8936002)(8676002)(478600001)(26005)(4744005)(956004)(5660300002)(36756003)(38100700002)(66476007)(38350700002)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: WkY465O/woPVEwQ0rzx1V5sIdQ1UL8/Iig7yeyORLynhGj7VtlvqAv7BrQeidHUPJzlkrhqEI7qMbuOlT18EYbOyL0q3gmlbMb+5uJZM0k6MQGTWYHiyLP8Lto0ClDX9ND1uF+Do17z90djIzgXs0Ax8omCJJvbdR5+3m0OYli88kJbMnjSw4EtYfPssGAPd5Vt9Ytijg8gKVix5DmB1YkNY4+L9Xs9HKlTwCevtYFwQgROqOYjPh6fpF8zaK7IIOyhmxeaFGmZmaNIOU84FjNT/lz/di5BiNjnC4ZM7TBWV9ALXOnMb8Dosa2RRjIovijjdugcjOzZA4IWgkLr9EYFGjqoiWTxI5+p1jUDUNnzjfnx5ADTz0VSkqoFV9gh7mbGOYRXB38lF3iblXTiWjzJbSlP0gNIR1UV0W6Ujca/4FHX2Apz/CeAA2i1wBKRN/ES3GczZcRwYxXUXKifyFOeSNrPtySK2qBE9VLQUXkuJDUwWX4jXspNqop2htiHrQ8vXL+sAluKcNz4XifF/CBrUY7GjZ5FZHo3VtY6Cn+Mth0feGPj1FNhjMJ9ZlArP1neHWskzfe3d2OisRrkO71KxNxEeoKE0FfGlyHLmcSrA361XHdE2cfc3XbMVdbk5VogIvLLyZAytaxpCzRnTTGvU3CQuw6FBn3GtYuvAZJ/rutUgNE63DBNZUVps8ri5FLk4ZH31qj/uGd4qpWI24hdQURzlEe60xkSgVufOGFZ8v3Xar1bmiYaoETHET0OOl4Z3eD9fh0oCCKVVFZK+CXMgQ0hY4I5U1x6n2FegJTN9yn5F+g9txGMJZKhsIRU5zDy+vPgTJH0Hj9PRmXBXHn2NwwbLDuaDFjBYZfCluUIjgfLhUetRDMA6gAJJoEUfGhEPBm0fCYd/yeM63uKaz0b4HbJlebPP9yg1iIj0MndVtmAz0XV/7EbwtmT9hOIODrLCu52nUe502DEo3omGFJ6GHsvB7FKUx3WdkHWsgAztmhYfMSyG3vqqiE6A6iw+Xrzx2Bihw1q0xmu8C0B+ocwt6QQZ4gSmyK7efQpJPOrVnYDIEzR0ILLZ1qslhBa8KNFZ+IrWV0Db+pJk7aQ9zK+3zqnugsdJjQbG0M6rKi6MOJBBbe9cbRyD9fx2hxzNMjxepG3o31WC11zHbxL9PIM0vsylxPcuNj/uGpvozkSyzH9/dLVrJ/xgpjWqJ+x6qF4CKk1UCyTA82ZDue+X7U8p8+DZ6Hr2fIJfYqG/dDz289RbxBkTJZbLWY8QJQacqL9pZXEWoZvRyPi+EBntk+C8RPzbnzGnsKq9FClNA8gkA4C2YNVVF9iBUtjKz4iu X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8a100149-e4f5-4c1c-23ea-08d914912245 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4388.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2021 15:26:23.1298 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ge79aHlKdLc+sXKtjvDLb6YK0YkETab85NQNuE9sC8MXgbguMxKvpEstTkEq/kpBOxdfC3JiGq2HPAIXSQaCPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4402 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org From: Mukul Joshi Create a new MCE priority for accelerator devices on the notifier chain. On some future AMD platforms, GPU devices will process MCE errors and work as error detection devices. Signed-off-by: Mukul Joshi Reviewed-by: John Clements Reviewed-by: Yazen Ghannam --- arch/x86/include/asm/mce.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index 8cbe7221a253..849f10a8602d 100644 --- a/arch/x86/include/asm/mce.h +++ b/arch/x86/include/asm/mce.h @@ -173,6 +173,7 @@ enum mce_notifier_prios { MCE_PRIO_LOWEST, MCE_PRIO_MCELOG, MCE_PRIO_EDAC, + MCE_PRIO_ACCEL, MCE_PRIO_NFIT, MCE_PRIO_EXTLOG, MCE_PRIO_UC,