RE: [PATCH v2 15/16] x86/mce/amd: Support SMCA Corrected Error Interrupt
From: Zhuo, Qiuxu
Date: Tue Feb 18 2025 - 08:35:23 EST
> From: Yazen Ghannam <yazen.ghannam@xxxxxxx>
> [...]
> --- a/arch/x86/kernel/cpu/mce/amd.c
> +++ b/arch/x86/kernel/cpu/mce/amd.c
> @@ -306,6 +306,11 @@ static void smca_configure(unsigned int bank,
> unsigned int cpu)
> high |= BIT(5);
> }
>
Do you think it would be better to have some comments on the thresholding
interrupt here (as the bits 10/8 look like magic numbers), similar to the
comments above for the deferred interrupt?
> + if ((low & BIT(10)) && data->thr_intr_en) {
> + __set_bit(bank, data->thr_intr_banks);
> + high |= BIT(8);
> + }
> +
> [...]