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

From: Naik, Avadhut
Date: Thu Feb 08 2024 - 12:49:26 EST




On 2/8/2024 11:41, Naik, Avadhut wrote:
> 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.
This memory will be reserved for each logical CPU only when the
command line parameter being introduced through the second patch
"mce-genpool-extend" is not set.

>
> 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