Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933548AbbFJQbA (ORCPT ); Wed, 10 Jun 2015 12:31:00 -0400 Received: from mail-bn1on0144.outbound.protection.outlook.com ([157.56.110.144]:36992 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965184AbbFJQas (ORCPT ); Wed, 10 Jun 2015 12:30:48 -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: 0NPQLV7-08-MPY-02 X-M-MSG: Message-ID: <55786632.9020701@amd.com> Date: Wed, 10 Jun 2015 11:30:42 -0500 From: Aravind Gopalakrishnan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Borislav Petkov CC: linux-edac , LKML Subject: Re: [PATCH 3/3] EDAC, mce_amd_inj: Set MISCV on injection References: <1433950426-10084-1-git-send-email-bp@alien8.de> <1433950426-10084-3-git-send-email-bp@alien8.de> In-Reply-To: <1433950426-10084-3-git-send-email-bp@alien8.de> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.180.168.240] X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD024;1:Ik8KLFODdXqXpQlVvhnNG2BH+nRbVmZfpjNDTn289ySNpnRDnLbtquWxWTPZKl/E1NyE1HQOA7jivIkpT77ls5dNCCt3JwBm9Unk9maZYsbYhgAuq51NyfThun9IyFptS+bxnxeWd3nEZI0ZDETj51oAvboqWQWFJ/Wa4J888QIXY+2Fj/xkFS+pKl8J1bkDQGKmaP026dBoaEW+zISB4Zz5Lwn7z36b+HmIvGGxwTIDQ9NhhWfWje0FSA3BHDEGOl2zgkLbEtgfUQVdGqPZ+A== X-Forefront-Antispam-Report: CIP:165.204.84.222;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(428002)(51914003)(24454002)(189002)(199003)(164054003)(377454003)(479174004)(51704005)(47776003)(19580395003)(54356999)(87266999)(101416001)(50986999)(92566002)(86362001)(65956001)(117636001)(23746002)(76176999)(99136001)(2950100001)(83506001)(62966003)(46102003)(77156002)(120886001)(4001350100001)(105586002)(5001920100001)(65816999)(77096005)(36756003)(189998001)(19580405001)(87936001)(62816006);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR02MB066;H:atltwp02.amd.com;FPR:;SPF:None;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB066; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(520003)(3002001);SRVR:BLUPR02MB066;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB066; X-Forefront-PRVS: 06036BD506 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2015 16:30:44.4274 (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: BLUPR02MB066 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1249 Lines: 39 On 6/10/2015 10:33 AM, Borislav Petkov wrote: > From: Borislav Petkov > > When during injection we populate MCi_MISC by writing into misc, we need > to set the MiscV bit in the corresponding MCi_STATUS register which > denotes that there's valid info in the MCi_MISC register. > > Signed-off-by: Borislav Petkov > --- > drivers/edac/mce_amd_inj.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/edac/mce_amd_inj.c b/drivers/edac/mce_amd_inj.c > index 5001d166f54f..021f256b7f11 100644 > --- a/drivers/edac/mce_amd_inj.c > +++ b/drivers/edac/mce_amd_inj.c > @@ -248,6 +248,9 @@ static void do_inject(void) > unsigned int cpu = i_mce.extcpu; > u8 b = i_mce.bank; > > + if (i_mce.misc) > + i_mce.status |= MCI_STATUS_MISCV; > + > if (inj_type == SW_INJ) { > amd_decode_mce(NULL, 0, &i_mce); > return; Thanks for the catch here and on Patch 2:) Looks good to me. So you can slap a on them if needed.. Thanks, -Aravind. -- 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/