x86/mce/AMD: Make sure banks were initialized before accessing them
Quoted 42 lines · Yazen
Quoted 15 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Borislav Petkov
Sent: Thursday, March 7, 2019 8:54 AM
To: Rafał Miłecki <[email protected]>; Ghannam, Yazen <[email protected]>
Cc: Rafał Miłecki <[email protected]>; John Clemens <[email protected]>; Tony Luck <[email protected]>; linux- [email protected]; Aravind Gopalakrishnan <[email protected]>; Thomas Gleixner <[email protected]>; Ingo Molnar
<[email protected]>; H . Peter Anvin <[email protected]>; [email protected]
Subject: Re: [PATCH] x86/mce/AMD: Make sure banks were initialized before accessing themQuoted 8 lines
Quoted 2 lines · Rafał Miłecki
I hope my ping on this is justified. Can you provide any update on that issue, please? I keep seeing errors with the 5.0.0.
I believe Yazen was about to send a patch, AFAIR.
Yazen?
Yes, I'll send a patch for this.
I was expecting a BIOS fix, but that seems unlikely now.
Rafal,
This error signature looks like a known issue which is exposed with a certain BIOS configuration. The reported error is benign and can be safely ignored.However, please try the following as a workaround to reduce the number of reported errors.
This will disable the threshold interrupt on the banks that could see this error:
find/sys/devices/system/machinecheck/-wholename */insn_fetch/interrupt_enable -exec sh -c "echo 0 > {}" \;
Quoted 8 lines
Even with the interrupt disabled, the error will still be detected by polling. You can disable regular MCA polling with this:
echo 0 >/sys/devices/system/machinecheck/machinecheck0/check_intervalYou may still see the error reported if the MCA banks are polled for other reasons. But this should be rare.
Please let me know if this works for you.
Sorry for a late reply.
Executing both commands (the first one wasn't enough) stops kernel reporting the errors.