[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yn0XhDwRGB5uBY6E@yaz-fattaah>
Date: Thu, 12 May 2022 14:19:48 +0000
From: Yazen Ghannam <yazen.ghannam@....com>
To: Borislav Petkov <bp@...en8.de>
Cc: linux-edac@...r.kernel.org, linux-kernel@...r.kernel.org,
Smita.KoralahalliChannabasappa@....com, muralidhara.mk@....com,
naveenkrishna.chatradhi@....com
Subject: Re: [PATCH 02/18] EDAC/amd64: Remove scrub rate control for Family
17h and later
On Wed, May 11, 2022 at 12:26:27PM +0200, Borislav Petkov wrote:
> On Mon, May 09, 2022 at 02:55:18PM +0000, Yazen Ghannam wrote:
> > @@ -251,6 +234,9 @@ static int set_scrub_rate(struct mem_ctl_info *mci, u32 bw)
> > struct amd64_pvt *pvt = mci->pvt_info;
> > u32 min_scrubrate = 0x5;
> >
> > + if (pvt->umc)
> > + return -EPERM;
>
> Since this function is testing families, it might be more
> straightforward for the check to be:
>
> if (pvt->fam >= 0x17)
>
Yes, I'll make that change.
Thanks,
Yazen
Powered by blists - more mailing lists