EDAC, mce_amd_inj: Set MISCV on injection
authorBorislav Petkov <bp@suse.de>
Wed, 10 Jun 2015 14:20:56 +0000 (16:20 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 24 Jun 2015 16:17:38 +0000 (18:17 +0200)
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 <bp@suse.de>
drivers/edac/mce_amd_inj.c

index b92986b03f93300de106d9207adde1a086e23fc2..4c73e4d03d465c14d206b5e66955cc22ddce2986 100644 (file)
@@ -191,6 +191,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;
This page took 0.027083 seconds and 5 git commands to generate.