]> Git Repo - linux.git/commit
x86/cpu/amd: Call init_amd_zn() om Family 19h processors too
authorKim Phillips <[email protected]>
Wed, 11 Mar 2020 19:14:51 +0000 (14:14 -0500)
committerBorislav Petkov <[email protected]>
Thu, 12 Mar 2020 11:13:44 +0000 (12:13 +0100)
commit753039ef8b2f1078e5bff8cd42f80578bf6385b0
tree2add49e71361ad182f8b99307db604d0ece785f0
parentbdb04a1abbf92c998f1afb5f00a037f2edaec1f7
x86/cpu/amd: Call init_amd_zn() om Family 19h processors too

Family 19h CPUs are Zen-based and still share most architectural
features with Family 17h CPUs, and therefore still need to call
init_amd_zn() e.g., to set the RECLAIM_DISTANCE override.

init_amd_zn() also sets X86_FEATURE_ZEN, which today is only used
in amd_set_core_ssb_state(), which isn't called on some late
model Family 17h CPUs, nor on any Family 19h CPUs:
X86_FEATURE_AMD_SSBD replaces X86_FEATURE_LS_CFG_SSBD on those
later model CPUs, where the SSBD mitigation is done via the
SPEC_CTRL MSR instead of the LS_CFG MSR.

Family 19h CPUs also don't have the erratum where the CPB feature
bit isn't set, but that code can stay unchanged and run safely
on Family 19h.

Signed-off-by: Kim Phillips <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/amd.c
This page took 0.050992 seconds and 4 git commands to generate.