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

From: Borislav Petkov
Date: Wed Apr 05 2017 - 13:24:13 EST


On Wed, Apr 05, 2017 at 05:06:19PM +0000, Ghannam, Yazen wrote:
> Checking if we have a valid deferred error. Since we call __log_error() on
> thresholding interrupts too we would need to tell it which handler is calling
> it to do the correct check. This is what we currently do.

That's why I suggested a __log_error_deferred() - a separate function
which deals with deferred errors.

> What do you mean " we don't have anything"? We check if we have a valid
> deferred error in is_deferred_error(). Otherwise, we don't log anything.

So the normal status MSR says whether we have a deferred error or not.
If it says we don't, then we have to look at the DE* MSRs, correct?

If yes, then do it exactly like this.

Not:

IF deferred:
log
ELSE IF SMCA:
IF deferred:
log

but:

IF deferred:
log_deferred:
log
IF cannot log from normal MSRs
log from DE

Why are we even wasting time with this?!

--
Regards/Gruss,
Boris.

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