RE: [PATCH 1/2] x86/mce: Disable preemption for CPER decoding
From: Luck, Tony
Date: Thu Jun 22 2023 - 13:05:39 EST
> This is the reason we search for the logical CPU number using the Local
> APIC ID provided in the CPER. And fill in relevant data using that CPU
> number.
So you don't care which CPU number mce_setup() used because you are
going to update it with the right one from CPER?
Then maybe the fix for part 1 is just to use raw_smp_processor_id() instead of
smp_processor_id() to avoid the warning for calling with pre-emption enabled,
instead of disabling premption with the get_cpu() ... put_cpu() wrap around the
call to mce_setup()?
-Tony