Re: [PATCH RESEND 2/5] x86/MCE: Handle MCA controls in a per_cpu way

From: Borislav Petkov
Date: Wed Apr 10 2019 - 12:40:42 EST


On Wed, Apr 10, 2019 at 04:36:30PM +0000, Ghannam, Yazen wrote:
> We have this case on AMD Family 17h with Bank 4. The hardware enforces
> this bank to be Read-as-Zero/Writes-Ignored.
>
> This behavior is enforced whether the bank is in the middle or at the
> end.

Does num_banks contain the disabled bank? If so, then it will work.

> I'm thinking to redo the sysfs interface for banks in another patch
> set. I could include a new file to indicate enabled/disabled, or maybe
> just update the documentation to describe this case.

No, the write to the bank controls should fail on a disabled bank.

--
Regards/Gruss,
Boris.

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