linux/arch/x86/kernel/cpu
Sandipan Das 263e55949d 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.

Ensure that HWCR[IRPerfEn] is set for all unaffected processors. This
includes a subset of Zen 1 (Family 17h Models 30h and above) and all
later processors. Also clear X86_FEATURE_IRPERF on affected processors
so that the IRPerfCount register is not used by other entities like the
MSR PMU driver.

Fixes: 232afb5578 ("x86/CPU/AMD: Add X86_FEATURE_ZEN1")
Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Borislav Petkov <bp@alien8.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/caa057a9d6f8ad579e2f1abaa71efbd5bd4eaf6d.1744956467.git.sandipan.das@amd.com
2025-04-18 14:29:47 +02:00
..
mce treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
microcode x86/microcode/AMD: Extend the SHA check to Zen5, block loading of any unreleased standalone Zen5 microcode patches 2025-04-12 21:09:42 +02:00
mtrr x86/mtrr: Modify a x86_model check to an Intel VFM check 2025-03-19 11:19:40 +01:00
resctrl x86/resctrl: Fix rdtgroup_mkdir()'s unlocked use of kernfs_node::name 2025-04-09 11:35:08 +02:00
sgx x86/sgx: Warn explicitly if X86_FEATURE_SGX_LC is not enabled 2025-03-10 12:29:18 +01:00
.gitignore
Makefile x86/split_lock: Move Split and Bus lock code to a dedicated file 2024-08-08 18:02:15 +02:00
acrn.c
amd.c x86/cpu/amd: Fix workaround for erratum 1054 2025-04-18 14:29:47 +02:00
aperfmperf.c cpufreq: Allow arch_freq_get_on_cpu to return an error 2025-02-17 18:09:20 +00:00
bugs.c x86/bugs: Add RSB mitigation document 2025-04-09 12:42:09 +02:00
bus_lock.c x86/split_lock: Simplify reenabling 2025-03-25 10:16:50 +01:00
cacheinfo.c x86/cacheinfo: Remove unnecessary headers and reorder the rest 2025-03-04 11:17:33 +01:00
centaur.c
common.c - Some preparatory work to convert the mitigations machinery to mitigating 2025-03-25 13:30:18 -07:00
cpu.h x86/cpu: Remove unused TLB strings 2025-03-04 11:17:33 +01:00
cpuid-deps.c x86/cpufeatures: Warn about unmet CPU feature dependencies 2025-03-19 11:17:31 +01:00
cyrix.c x86/CPU: Fix warm boot hang regression on AMD SC1100 SoC systems 2025-02-25 22:44:01 +01:00
debugfs.c x86/cpu: Prefix hexadecimal values with 0x in cpu_debug_show() 2025-02-27 13:26:53 +01:00
feat_ctl.c x86/cpu: Clarify the error message when BIOS does not support SGX 2024-08-25 14:41:19 +02:00
hygon.c x86/cpu: Simplify TLB entry count storage 2025-03-04 11:17:33 +01:00
hypervisor.c
intel.c CRC updates for 6.15 2025-03-25 18:33:04 -07:00
intel_epb.c
match.c x86/cpu: Update x86_match_cpu() to also use cpu-type 2025-03-19 11:17:11 +01:00
mkcapflags.sh
mshyperv.c x86: hyperv: Add mshv_handler() irq handler and setup function 2025-03-20 21:23:04 +00:00
perfctr-watchdog.c
powerflags.c
proc.c cpufreq: Allow arch_freq_get_on_cpu to return an error 2025-02-17 18:09:20 +00:00
rdrand.c
scattered.c x86/cpu: Fix formatting of cpuid_bits[] in scattered.c 2024-10-28 13:51:05 +01:00
topology.c Merge branch 'linus' into x86/cleanups, to resolve conflict 2024-12-10 19:33:03 +01:00
topology.h
topology_amd.c x86/cpu: Add CPU type to struct cpuinfo_topology 2024-10-25 20:44:26 +02:00
topology_common.c x86/topology: Introduce topology_logical_core_id() 2024-12-02 12:01:35 +01:00
topology_ext.c
transmeta.c
tsx.c
umc.c
umwait.c
vmware.c x86/vmware: Parse MP tables for SEV-SNP enabled guests under VMware hypervisors 2025-03-13 19:01:09 +01:00
vortex.c
zhaoxin.c