Skip to content

x86/CPU/AMD: Rework Zen family detection and other fun

Borislav Petkov lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/cpu branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/13x86/CPU/AMD: Add ZenX generations flagsarch/x86/include/asm/cpufeatures.h arch/x86/kernel/cpu/amd.c+72 -48 replies
2/13x86/CPU/AMD: Carve out the erratum 1386 fixarch/x86/kernel/cpu/amd.c+15 -90 replies
3/13x86/CPU/AMD: Move the Zen3 BTC_NO detection to the Zen3 init functionarch/x86/kernel/cpu/amd.c+9 -80 replies
4/13x86/CPU/AMD: Move erratum 1076 fix into the Zen1 init functionarch/x86/kernel/cpu/amd.c+5 -50 replies
5/13x86/CPU/AMD: Call the spectral chicken in the Zen2 init functionarch/x86/kernel/cpu/amd.c+3 -40 replies
6/13x86/CPU/AMD: Rename init_amd_zn() to init_amd_zen_common()arch/x86/kernel/cpu/amd.c+7 -40 replies
7/13x86/CPU/AMD: Move Zenbleed check to the Zen2 init functionarch/x86/kernel/cpu/amd.c+30 -402 replies
8/13x86/CPU/AMD: Move the DIV0 bug detection to the Zen1 init functionarch/x86/kernel/cpu/amd.c+2 -90 replies
9/13x86/CPU/AMD: Get rid of amd_erratum_1054[]arch/x86/kernel/cpu/amd.c+1 -50 replies
10/13x86/CPU/AMD: Get rid of amd_erratum_383[]arch/x86/kernel/cpu/amd.c+1 -50 replies
11/13x86/CPU/AMD: Get rid of amd_erratum_400[]arch/x86/kernel/cpu/amd.c+20 -130 replies
12/13x86/CPU/AMD: Get rid of amd_erratum_1485[]arch/x86/kernel/cpu/amd.c+3 -80 replies
13/13x86/CPU/AMD: Drop now unused CPU erratum checking functionarch/x86/kernel/cpu/amd.c+0 -560 replies

Reviews trailers per patch

None of the 13 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNikolay Borisov
SeriesR-b
1/13
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/13] x86/CPU/AMD: Rework Zen family detection and other fun

From: "Borislav Petkov (AMD)" <[email protected]>

Add Zen generation flags which will be used to check on what type of Zen the kernel runs. Distribute the per-generation init work into the respective functions and cleanup amd.c properly.

As a result, drop the errata checking gunk which is not needed anymore.

There should be no functionality change resulting from these changes.

Borislav Petkov (AMD) (13):
x86/CPU/AMD: Add ZenX generations flags
x86/CPU/AMD: Carve out the erratum 1386 fix
x86/CPU/AMD: Move the Zen3 BTC_NO detection to the Zen3 init function x86/CPU/AMD: Move erratum 1076 fix into the Zen1 init function x86/CPU/AMD: Call the spectral chicken in the Zen2 init function x86/CPU/AMD: Rename init_amd_zn() to init_amd_zen_common() x86/CPU/AMD: Move Zenbleed check to the Zen2 init function x86/CPU/AMD: Move the DIV0 bug detection to the Zen1 init function x86/CPU/AMD: Get rid of amd_erratum_1054[]
x86/CPU/AMD: Get rid of amd_erratum_383[]
x86/CPU/AMD: Get rid of amd_erratum_400[]
x86/CPU/AMD: Get rid of amd_erratum_1485[]
x86/CPU/AMD: Drop now unused CPU erratum checking function

 arch/x86/include/asm/cpufeatures.h |   6 +-
 arch/x86/kernel/cpu/amd.c          | 266 ++++++++++++++---------------
 2 files changed, 135 insertions(+), 137 deletions(-)
Signature · 1 line
2.42.0.rc0.25.ga82fb66fed25