Re: [PATCH v2 15/16] x86/mce/amd: Support SMCA Corrected Error Interrupt

From: Luck, Tony
Date: Thu Feb 13 2025 - 17:35:11 EST


On Thu, Feb 13, 2025 at 04:46:04PM +0000, Yazen Ghannam wrote:
> @@ -306,6 +306,11 @@ static void smca_configure(unsigned int bank, unsigned int cpu)
> high |= BIT(5);
> }
>
> + if ((low & BIT(10)) && data->thr_intr_en) {
> + __set_bit(bank, data->thr_intr_banks);
> + high |= BIT(8);

Maybe someday add some #define names for these BITs?

> + }
> +
> this_cpu_ptr(mce_banks_array)[bank].lsb_in_status = !!(low & BIT(8));
>
> wrmsr(smca_config, low, high);

-Tony