RE: [PATCH] x86/mce: Schedule mce_setup() on correct CPU for CPER decoding

From: Luck, Tony
Date: Mon Apr 17 2023 - 13:40:50 EST


> The function expects the data to match the "MCAX" register layout used on
> Scalable MCA systems. CTL, STATUS, ADDR, and MISC will be at the same offsets
> for legacy MCA and MCAX. But the rest will be different.

Ah yes. Looking at the code, rather than the patch I see that it first checks for SMCA
and returns if it isn't on an SMCA system.

if (!boot_cpu_has(X86_FEATURE_SMCA))
return -EINVAL;

> This could be extended though, if other systems will use it.

I'll keep it in mind if Intel makes a hybrid server.

-Tony