Re: [tip: x86/urgent] x86/cpu/amd: Fix workaround for erratum 1054

From: Borislav Petkov
Date: Fri Apr 18 2025 - 06:39:48 EST


On Fri, Apr 18, 2025 at 06:36:19AM -0000, tip-bot2 for Sandipan Das wrote:
> The following commit has been merged into the x86/urgent branch of tip:
>
> Commit-ID: f4efdb357680bef4584faedbd44b90cd53d3245f
> Gitweb: https://git.kernel.org/tip/f4efdb357680bef4584faedbd44b90cd53d3245f
> Author: Sandipan Das <sandipan.das@xxxxxxx>
> AuthorDate: Fri, 18 Apr 2025 11:49:40 +05:30
> Committer: Ingo Molnar <mingo@xxxxxxxxxx>
> CommitterDate: Fri, 18 Apr 2025 08:31:07 +02:00
>
> x86/cpu/amd: Fix workaround for erratum 1054
>
> Erratum 1054 affects AMD Zen processors that are a part of Family 17h
> Models 00-2Fh and the workaround is to not set HWCR[IRPerfEn]. However,
> when X86_FEATURE_ZEN1 was introduced, the condition to detect unaffected
> processors was incorrectly changed in a way that the IRPerfEn bit gets
> set only for unaffected Zen 1 processors.

Whoops, sorry about that.

> Fixes: 232afb557835 ("x86/CPU/AMD: Add X86_FEATURE_ZEN1")
> Signed-off-by: Sandipan Das <sandipan.das@xxxxxxx>
> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
> Link: https://lore.kernel.org/r/caa057a9d6f8ad579e2f1abaa71efbd5bd4eaf6d.1744956467.git.sandipan.das@xxxxxxx

This needs

Cc: <stable@xxxxxxxxxx>

Thx.