lkml.org 
[lkml]   [2022]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2022-05-12 16:20    [W:0.065 / U:1.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site