[PATCH 1/2] x86/MCE: Extend size of the MCE Records pool

From: Naik, Avadhut
Date: Thu Feb 08 2024 - 12:42:14 EST


Hi

On 2/7/2024 18:02, Luck, Tony wrote:
>> +#define CPU_GEN_MEMSZ 256
>
> What is this define?
>
> Why isn't this "sizeof(struct mce)"?
>
> Or 2* that if you are trying to reserve enough space for two records per CPU.
>
That's the memory in bytes reserved for each logical CPU in the
extended MCE Records pool. By current size of struct mce that
equates to around 2 records.

Will change it to (2 * sizeof(struct mce)) though. Feels more
accurate. Thanks for the suggestion!

Do you have any additional concerns/comments on this patchset?

> -Tony

--
Thanks,
Avadhut Naik