Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965551AbbEMWj3 (ORCPT ); Wed, 13 May 2015 18:39:29 -0400 Received: from mail-bn1on0139.outbound.protection.outlook.com ([157.56.110.139]:48580 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964894AbbEMWj0 (ORCPT ); Wed, 13 May 2015 18:39:26 -0400 Authentication-Results: spf=none (sender IP is 165.204.84.222) smtp.mailfrom=amd.com; alien8.de; dkim=none (message not signed) header.d=none; X-WSS-ID: 0NOB89H-08-4QO-02 X-M-MSG: From: Aravind Gopalakrishnan To: , , , , CC: , , , Aravind Gopalakrishnan Subject: [PATCH] x86, mce, amd: Read mcgstatus before we log the error Date: Wed, 13 May 2015 12:37:04 -0500 Message-ID: <1431538624-19565-1-git-send-email-Aravind.Gopalakrishnan@amd.com> X-Mailer: git-send-email 2.4.0 MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD055;1:XZqabp+xsLqbTlk08ERYKGVXUedZ6E2y+O494ILBKEfDlNc8BqDzxp+UyemKZAKK33Mcc7KSJJOZ423DI91CRWdAYj1hAlV14oCEP9PTMOrSFpYnxNAH1FgPkiHCNDTdJ9AVdtFgq1MUkz5/8YZT6IgIUcb//HF5Csli4PiHDbEGItgUTdSthawuq9CYwmSDul9wTfLi/89c2xZFA6lSmNnhuerkD5vxha2zgobcnMLva9nOzpF5l/XJ0voPa/L2GL1obRflSwOx6H7ekDQkQMD/vFjGmf4eAnL7LU1pzbr4gY1Jaa7OPqWy7z+/bGDQNyTAdcogXZcXS5ey10WdNw== X-Forefront-Antispam-Report: CIP:165.204.84.222;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(428002)(199003)(189002)(101416001)(47776003)(189998001)(36756003)(50226001)(50466002)(87936001)(46102003)(2201001)(92566002)(86362001)(62966003)(77156002)(50986999)(105586002)(19580405001)(19580395003)(5001770100001)(48376002)(106466001)(229853001)(77096005)(53416004);DIR:OUT;SFP:1102;SCL:1;SRVR:BN1PR02MB069;H:atltwp02.amd.com;FPR:;SPF:None;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR02MB069; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BN1PR02MB069;BCL:0;PCL:0;RULEID:;SRVR:BN1PR02MB069; X-Forefront-PRVS: 0575F81B58 X-OriginatorOrg: amd4.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2015 22:39:22.6694 (UTC) X-MS-Exchange-CrossTenant-Id: fde4dada-be84-483f-92cc-e026cbee8e96 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fde4dada-be84-483f-92cc-e026cbee8e96;Ip=[165.204.84.222];Helo=[atltwp02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR02MB069 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 972 Lines: 29 Code to read mcgstatus was introduced with patch 44612a3ac. However, that seems to have been accidentally removed in a3a529d10. Adding that back here. Signed-off-by: Aravind Gopalakrishnan --- arch/x86/kernel/cpu/mcheck/mce_amd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu/mcheck/mce_amd.c b/arch/x86/kernel/cpu/mcheck/mce_amd.c index e99b150..7edfa4c 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_amd.c +++ b/arch/x86/kernel/cpu/mcheck/mce_amd.c @@ -319,6 +319,7 @@ static void __log_error(unsigned int bank, bool threshold_err, u64 misc) return; mce_setup(&m); + rdmsrl(MSR_IA32_MCG_STATUS, m.mcgstatus); m.status = status; m.bank = bank; -- 2.4.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/