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

From: Yazen Ghannam
Date: Mon Apr 17 2023 - 13:28:53 EST


On 4/17/23 13:17, Luck, Tony wrote:
>> int apei_smca_report_x86_error(struct cper_ia_proc_ctx *ctx_info, u64 lapic_id)
>
> I'm a bit puzzled why this function has "smca" in the name. I think it is called
> unconditionally on Intel as well as AMD systems ... and looks like it will do useful
> things if Intel someday has a hybrid server that reports APEI errors (maybe it is
> already useful on hybrid clients?).
>
> Otherwise this look looks fine.
>
> Acked-by: Tony Luck <tony.luck@xxxxxxxxx>
>

Thanks Tony.

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.

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

Thanks,
Yazen