RE: [PATCH v3 0/5] AMD64 EDAC: Check for nodes without memory, etc.

From: Ghannam, Yazen
Date: Thu Nov 07 2019 - 14:41:42 EST


> -----Original Message-----
> From: linux-edac-owner@xxxxxxxxxxxxxxx <linux-edac-owner@xxxxxxxxxxxxxxx> On Behalf Of Borislav Petkov
> Sent: Thursday, November 7, 2019 2:34 PM
> To: Ghannam, Yazen <Yazen.Ghannam@xxxxxxx>
> Cc: linux-edac@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH v3 0/5] AMD64 EDAC: Check for nodes without memory, etc.
>
> On Thu, Nov 07, 2019 at 07:20:25PM +0000, Ghannam, Yazen wrote:
> > Yes, that's right. But it looks like future systems will re-use PCI IDs even
> > across families and models. And the PCI IDs will be more closely related to
> > hardware capabilities than family and model.
> >
> > In any case, we can address that when we get there.
>
> I'd be fine with it if this really is the case and we don't end up
> having to keep adding PCI IDs like crazy again. That was a moderate
> PITA, AFAIR, especially for distro kernels having to constantly pick up
> enablement patches and people complaining about it.
>
> So you need to make sure the PCI IDs will really get reused before
> converting back...
>

Will do.

> > > if (!ecc_en || !nb_mce_en)
> > > return false;
> > > else
> >
> > Right, I meant you can drop this else and just return true.
> >
> > > return true;
>
> I prefer the regular if-else way because it reads faster and it is
> straight-forward when one skims over the code.
>
> But I can drop if if you insist. :-)
>

No, I don't mind.

Thanks,
Yazen