Re: [PATCH 3/4] x86/mce: Clarify comments regarding deferred error

From: Borislav Petkov
Date: Tue Feb 23 2016 - 07:11:57 EST


On Tue, Feb 16, 2016 at 03:45:10PM -0600, Aravind Gopalakrishnan wrote:
> The Deferred field indicates if we have a Deferred error.
> Deferred errors indicate errors that hardware could not
> fix. But it still does not cause any interruption to program
> flow. So it does not generate any #MC and UC bit in MCx_STATUS
> is not set.
>
> Fixing comment here. No functional change
>
> Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@xxxxxxx>
> ---
> arch/x86/include/asm/mce.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h
> index 2ec67ac..476da8b 100644
> --- a/arch/x86/include/asm/mce.h
> +++ b/arch/x86/include/asm/mce.h
> @@ -40,7 +40,7 @@
> #define MCI_STATUS_AR (1ULL<<55) /* Action required */
>
> /* AMD-specific bits */
> -#define MCI_STATUS_DEFERRED (1ULL<<44) /* declare an uncorrected error */
> +#define MCI_STATUS_DEFERRED (1ULL<<44) /* declare a deferred error */

/* uncorrected error, deferred exception */

sounds better to me.

> #define MCI_STATUS_POISON (1ULL<<43) /* access poisonous data */
> #define MCI_STATUS_TCC (1ULL<<55) /* Task context corrupt */
> /*
> --

For the future, such cleanups/fixes should always go first in the patch
set.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.