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

From: Yazen Ghannam
Date: Fri Jun 09 2023 - 10:27:36 EST


On 4/17/23 1:39 PM, Luck, Tony wrote:
>> 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.
>

Hi all,

Any further comments on this?

Thanks,
Yazen