Re: [PATCH v2 15/16] x86/mce/amd: Support SMCA Corrected Error Interrupt
From: Yazen Ghannam
Date: Wed Feb 19 2025 - 11:21:44 EST
On Tue, Feb 18, 2025 at 01:27:04PM +0000, Zhuo, Qiuxu wrote:
> > 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);
> > + }
> > +
> > [...]
Yes, I'd like to convert these to defines. I left that idea, for now, to
simplify the changes.
Thanks,
Yazen