diff options
author | Borislav Petkov <bp@suse.de> | 2015-06-10 10:20:56 -0400 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2015-06-24 12:17:38 -0400 |
commit | cda9459da736481c6ff7e4368c994b98533a28cc (patch) | |
tree | 9010847df046d049065961307d829a5f3932a1e8 | |
parent | 6d1e9bf5b04887a2220fbb44be074e9e8376e332 (diff) |
EDAC, mce_amd_inj: Set MISCV on injection
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>
-rw-r--r-- | drivers/edac/mce_amd_inj.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/edac/mce_amd_inj.c b/drivers/edac/mce_amd_inj.c index b92986b03f93..4c73e4d03d46 100644 --- a/drivers/edac/mce_amd_inj.c +++ b/drivers/edac/mce_amd_inj.c | |||
@@ -191,6 +191,9 @@ static void do_inject(void) | |||
191 | unsigned int cpu = i_mce.extcpu; | 191 | unsigned int cpu = i_mce.extcpu; |
192 | u8 b = i_mce.bank; | 192 | u8 b = i_mce.bank; |
193 | 193 | ||
194 | if (i_mce.misc) | ||
195 | i_mce.status |= MCI_STATUS_MISCV; | ||
196 | |||
194 | if (inj_type == SW_INJ) { | 197 | if (inj_type == SW_INJ) { |
195 | amd_decode_mce(NULL, 0, &i_mce); | 198 | amd_decode_mce(NULL, 0, &i_mce); |
196 | return; | 199 | return; |