Re: [PATCH 4.14] x86/cpu: Fix LFENCE serialization check in init_amd()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 14, 2023 at 04:11:59AM -0700, Rhythm Mahajan wrote:
> The commit: 3f235279828c ("x86/cpu: Restore AMD's DE_CFG MSR after resume")
> renamed the MSR_F10H_DECFG_LFENCE_SERIALIZE macro to
> MSR_AMD64_DE_CFG_LFENCE_SERIALIZE.
> The fix changed MSR_F10H_DECFG_LFENCE_SERIALIZE to
> MSR_AMD64_DE_CFG_LFENCE_SERIALIZE_BIT in the init_amd() function,
> but should have used MSR_AMD64_DE_CFG_LFENCE_SERIALIZE.
> This causes a discrepancy in the LFENCE serialization
> check in the init_amd() function.
> 
> This causes a ~16% sysbench memory regression, when running:
>   sysbench --test=memory run
> 
> Fixes: 3f235279828c2a8aff3164fef08d58f7af2d64fc("x86/cpu: Restore AMD's DE_CFG MSR after resume
> ")

Odd line-wrapping :(

And please use the proper way to reference SHA1 as documented in the
kernel documentation.

And why is this only needed in 4.14.y?  What about Linus's tree and all
of the other stable trees?

Please get this fixed in Linus's tree first and then we can take a
backport.

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux