Re: [PATCH v2 1/2] x86/mce/AMD: Redo use of SMCA MCA_DE{STAT,ADDR} registers

From: Borislav Petkov
Date: Tue Apr 11 2017 - 09:36:02 EST


On Tue, Apr 11, 2017 at 01:32:03PM +0000, Ghannam, Yazen wrote:
> Yes, exactly. Deferred errors are *always* logged in the DE* registers and

Then the solution is simple:

for_each_bank()
if (log_error()) {
clear_msrs();
continue;
}

if (mca_cfg.smca) {
log_error_from_de_regs()
clear_msrs();
}
}

and clear_msrs() clears them all.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.