[PATCH v3 1/4] x86/mce: Add Zhaoxin MCE support

2019-09-16 Thread Tony W Wang-oc
All Zhaoxin newer CPUs support MCE that compatible with Intel's "Machine-Check Architecture", so add support for Zhaoxin MCE in mce/core.c. Signed-off-by: Tony W Wang-oc --- arch/x86/kernel/cpu/mce/core.c | 38 -- 1 file changed, 28 insertions(+), 10

Re: [PATCH v3 1/4] x86/mce: Add Zhaoxin MCE support

2019-09-13 Thread Borislav Petkov
On Fri, Sep 13, 2019 at 11:10:31AM -0700, Luck, Tony wrote: > Is it time to have a big cleanup on how we handle similarities > and oddities in the MCE subsystem? We've been adding ad-hoc > tests like this in random places ... and it all looks very > messy. Hohum, it has been bothering me for a

Re: [PATCH v3 1/4] x86/mce: Add Zhaoxin MCE support

2019-09-13 Thread Luck, Tony
On Wed, Sep 11, 2019 at 12:01:42PM +, Tony W Wang-oc wrote: > + /* Checks after this one are Intel/Zhaoxin-specific: */ > + if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL && > + boot_cpu_data.x86_vendor != X86_VENDOR_ZHAOXIN) Is it time to have a big cleanup on how we

Re: [PATCH v3 1/4] x86/mce: Add Zhaoxin MCE support

2019-09-11 Thread Borislav Petkov
On Wed, Sep 11, 2019 at 12:01:42PM +, Tony W Wang-oc wrote: > All Zhaoxin newer CPUs support MCE that compatible with Intel's > "Machine-Check Architecture", so add support for Zhaoxin MCE in > mce/core.c. > > Signed-off-by: Tony W Wang-oc > --- > v2->v3: > - Make ifelse-case to switch-case

[PATCH v3 1/4] x86/mce: Add Zhaoxin MCE support

2019-09-11 Thread Tony W Wang-oc
All Zhaoxin newer CPUs support MCE that compatible with Intel's "Machine-Check Architecture", so add support for Zhaoxin MCE in mce/core.c. Signed-off-by: Tony W Wang-oc --- v2->v3: - Make ifelse-case to switch-case - Simplify Zhaoxin CPU FMS checking arch/x86/kernel/cpu/mce/core.c | 38