Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752202AbbGMRAZ (ORCPT ); Mon, 13 Jul 2015 13:00:25 -0400 Received: from mail-bn1bn0103.outbound.protection.outlook.com ([157.56.110.103]:21152 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751483AbbGMRAY (ORCPT ); Mon, 13 Jul 2015 13:00:24 -0400 Authentication-Results: spf=none (sender IP is 165.204.84.221) smtp.mailfrom=amd.com; alien8.de; dkim=none (message not signed) header.d=none; X-WSS-ID: 0NRFQJK-07-BB2-02 X-M-MSG: From: Aravind Gopalakrishnan To: , , CC: , Subject: [PATCH] EDAC, MCE, AMD: Don't emit 'CE' for Deferred error Date: Mon, 13 Jul 2015 06:53:02 -0500 Message-ID: <1436788382-6463-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;BY2FFO11FD031;1:TwLk+6lH4t1quPo6bBuzBIadiL9/avxSbevDcRKZOWhmcitlzvKI4iFdGgCCB9K8fJHc+JzHS0U7oqVBWOn46GuYHWS7oat174I9BEeHw2Bk9NtEDZ1a3sol8Y5GAkGuwixAQS9VzTAu1sc1iJJENyOjCD1n2OeEJXhS3yzyliNCfE5TGzWEP5SDjrS/g0tC1Ntwi1sz0rT5vxOc2ezOqMGEXprVFqjVDHYfcA6brvB7pE6LM9dM9YWorFtyXrAtIL4hGxiQDt0mtfH96EmqdZ+s4x/yl523P/qSczjHMMH/V3ipujSBvgnpFuJAv/x6t5IzF8sQtFXBc2M2UIZuIUPL5GuNQJq4B0IekWD8ncnA4gJhdAHCZjE2+V4wCAfW X-Forefront-Antispam-Report: CIP:165.204.84.221;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(428002)(199003)(189002)(48376002)(50466002)(92566002)(62966003)(189998001)(105586002)(5003940100001)(106466001)(50226001)(77156002)(5003600100002)(77096005)(2201001)(53416004)(46102003)(87936001)(19580405001)(33646002)(229853001)(19580395003)(86362001)(47776003)(36756003)(50986999);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR02MB1139;H:atltwp01.amd.com;FPR:;SPF:None;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1139;2:e9bFM+PokerZ8MaqxW3/AoCZbOTev9HgCKfF9bwi8BUf+y8B8E/kmNybWL7UJdvb;3:0wJRlyxFKPlmBEiVl6skDZ6Gz2y9rpYr6E62romfZMzeJf5dEXHp8C+xjqZKYjNPo8ILuj5nyvV24XkaXNFImmJ/uxPwk3zn1+BTuaQbU8R0OSN9MPHzgwRG7BwC6AHNsFZj68ciGvajFXOXL9hRupqoGBJb9aBlDZn7KgbmLKIIfnA8fcFmJW+i3NB9QtgNHmWznzYwYofGYKZgsVNaJURFwvmudgwl21Xvj41kjmwLTvHdMnSPFKZ4dpnFMnz0;25:/lFfGqse4jGKwg1DS0PWGKSSKy8AB5xdx7fTPLaP9JzrOTTzVDnyxvagE1sty8nA8fxhAJtvrgWkXyk+KWwcmJKkkYoi1iwFwl/uStptP+qHeeKwUGIndTiJiM5pCxyOdSiPoXcxUciSB/BVv/ReieSqv0YgHfmPogLPK7r6l6zLNVZquHSFIUxObHa0WtpTyOrohUSO2L5cs3CfEwX67BKcjyqps+w0rhwu0pLDGUX++BMhC3npV7hzjrqr+vy9Hx4gC39uvybNpr6/1HzTUA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB1139; X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1139;20:14XKrUZbGc21ezqG0HVfWEYKm7gkFRkTjb8K9Nru/BdmrAFXvOF1WW1dsAzT2eymTXWWw53oxRG6vcU4jloopqHF9KGDETh55KwSTMRTSO3vh7KJxrvTsZX/5jcOUmovPaca3cz8yQa7zWkMeSlBlx3LYnIYy3yYyN1BYY4Pu4go/ANlrgTkAy/FCc+nHH6XxSgnyZUydEles3kiqdcvKYsJV0+N0eM2+n6mNG+7AzqYq023aq8Z8vAXySYco8JPavtY3nFx1bVNVYAKrd/qPXVZ8LlS4z0hd1I8H/YiOpuY1SwfeUWCvezKzVijwtixe3GfBAGQFGwLSN2asOCNWMdS5YiYa2+dU6lmbiXbXX+sQmvl1vYEuQaIPzjbZ1G8uIZNmSu7vsF59Aefruh+7B37hScEOguPumHMMXJic1/a0JI5azw2789Rs1uM4FRfebj5RZULDSYfib5gli8vtLh82U2vz/whSXU8/xes1N5wGdi/OOYe/ujU9WZ3zkZ7;4:dS5VYa6t/zapVbkYq6j7ZXy9PtM70vF8n45XFtKQoXWrbG9aJGEgEgtRc4z+JqitLvlVA0gzEgegO3pFh2QlOMJXhf66K/52JVG04KPby4mrjarGxxZnA8Z5GaWIITm1D7psSAAE/FhME0bPGlbZENTS5gwBBsZ4NXHSR/jM9Vp0Yuq+VCQae8q0J3UjAUBRR9rjpHCZlfYQpKg/jIaULdLGBRO7mPVdn6o5SuF9xlMTuU7msvPMtSoNAaozurAkkmB6AODbmNT1ZmC2AHYGIkn57WT316Vqc+DZog7Jq6Y= BLUPR02MB1139: X-MS-Exchange-Organization-RulesExecuted 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:BLUPR02MB1139;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB1139; X-Forefront-PRVS: 0636271852 X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1139;23:w5utVuPyyysXshImxAsq0apfR2+KDRNHfnZemL3gVj+PS27Km2fTTrkNTvX1FOKYeIGHoVG1P65bvurvE8DInXTvihCobPNx19UA32sfNKJjoDtHPrb/rtEQWEpUPmeOwvls1GZYrJCIjO2YmjelKTXsOMNDKplfyO+8IFMmLZcxgOtjLU8wFzWHqQ5plWqg/0X7v1jbyxa5Mbfl83pcroETK1qkZpk/P//mCbRnKBhfZivByJUsNOqGJnKgkVdtELqhx/sRr6LH07gnv/fNtGauoFxi74RjnlkV88hccbeGrBK7frHUY08g1OKZU6Y/nDGokQj/tHxrE3NdetXe/U5OEHn+3RvLl8+ZRcBAaltlA8g2NTYbkKKsbUtFFy/U/FqRxF18uQhesHUE4TpLApKtBisqflOdTtqDil8W6XDptrIB0PiauNy69BKFywiCH8cP8byGoOKtTOLTdrf3gyg4eeHgpwUjopCX2k4pdyVi6E3hAYqTeZp7rZk59o+wTbdefvG3RHpp7r5iVmoJ/idBZkRMV6vKstj5V+sARK7nCXidjClFkL+WUhDhdhnxURZ0+B53Ey3knyxY8Jotft0XdHd3U7gIsnlFuQSvu9zm9QqK7Zg6FBVija8jvaXPdIWhiDdz/xSWwqHrEHbPi8NjPSrEzJTyGRqGwPPZoCGZmMvm0FJkxIA8mc6jgoc3ehx3COhA+H7WTlUDwztVPd3hvcXvfJglfrK7oSy7Nrhl2nptylIDyP+ue9l7KxVoKDCtRvRvoLSGDPWzC5w+u0y8zUu3fmFIpP84xPzlmds=;5:EPx4u9gGjaNAVLSDsNy446dgsULFPMjNk5fyNBQkmOdMIaKU2H+ZvSiFRn7rU78cvb8h5qkyzBFqJdrk5bYNsyaE3dRU7nApFQZrTVbbB/XM3NDVuUhsyM65patKsVk6ALxQZN1ziXIzg3E1RIaVPw== X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1139;24:V32J+hdhjbquz5uxC6mwOQbSJTAz4tg0d8kB5JOEeQxoNv5A74VeUnYRgTM+tFbq1Zzz3IXlQ7aTbIUJYSlJFCE202uLDJCojYqk6WdM5ZI=;20:0XduaqLzYg9Jx23kitVO/IT6/u0DRpuIgS89T1njOoLWvFwbCxp8rRLI0PWNQeS2zacCM/5BRy2hbDjpX5PCfA== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2015 16:45:22.1735 (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.221];Helo=[atltwp01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB1139 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1573 Lines: 42 Currently, we also display 'CE' for a Deferred error. like so- [Hardware Error]: CPU:0 (15:2:0) MC4_STATUS[Over|CE|MiscV|-|AddrV|Deferred|-|UECC]: 0xdc04b00095080813 When the 'UC' bit on MCx_STATUS register is clear, the error status is either a Corrected error or Deferred error as determined by the 'Deferred' bit. Refer AMD Error Scope Hierarchy table in a newer BKDG (example: 49125_15h_Models_30h-3Fh_BKDG.pdf, section "RAS Features") for clarification. Therefore, fix the output to not disply 'CE' Signed-off-by: Aravind Gopalakrishnan --- drivers/edac/mce_amd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index 58586d5..e3a945c 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c @@ -763,7 +763,8 @@ int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data) c->x86, c->x86_model, c->x86_mask, m->bank, ((m->status & MCI_STATUS_OVER) ? "Over" : "-"), - ((m->status & MCI_STATUS_UC) ? "UE" : "CE"), + ((m->status & MCI_STATUS_UC) ? "UE" : + (m->status & MCI_STATUS_DEFERRED) ? "-" : "CE"), ((m->status & MCI_STATUS_MISCV) ? "MiscV" : "-"), ((m->status & MCI_STATUS_PCC) ? "PCC" : "-"), ((m->status & MCI_STATUS_ADDRV) ? "AddrV" : "-")); -- 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/