Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965135AbbFJPeV (ORCPT ); Wed, 10 Jun 2015 11:34:21 -0400 Received: from mail.skyhub.de ([78.46.96.112]:55263 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965091AbbFJPdx (ORCPT ); Wed, 10 Jun 2015 11:33:53 -0400 From: Borislav Petkov To: Aravind Gopalakrishnan Cc: linux-edac , LKML Subject: [PATCH 3/3] EDAC, mce_amd_inj: Set MISCV on injection Date: Wed, 10 Jun 2015 17:33:46 +0200 Message-Id: <1433950426-10084-3-git-send-email-bp@alien8.de> X-Mailer: git-send-email 2.3.5 In-Reply-To: <1433950426-10084-1-git-send-email-bp@alien8.de> References: <1433950426-10084-1-git-send-email-bp@alien8.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1023 Lines: 33 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; -- 2.3.5 -- 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/