Skip to content

Commit cda9459

Browse files
committed
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>
1 parent 6d1e9bf commit cda9459

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/edac/mce_amd_inj.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ static void do_inject(void)
191191
unsigned int cpu = i_mce.extcpu;
192192
u8 b = i_mce.bank;
193193

194+
if (i_mce.misc)
195+
i_mce.status |= MCI_STATUS_MISCV;
196+
194197
if (inj_type == SW_INJ) {
195198
amd_decode_mce(NULL, 0, &i_mce);
196199
return;

0 commit comments

Comments
 (0)