Linux kernel source tree
Go to file
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
arch x86/cpu/amd: Fix workaround for erratum 1054 2025-04-18 14:29:47 +02:00
block
certs
crypto
Documentation Miscellaneous fixes: 2025-04-10 15:20:10 -07:00
drivers Miscellaneous irqchip fixes: 2025-04-10 15:47:46 -07:00
fs CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
include Miscellaneous irqchip fixes: 2025-04-10 15:47:46 -07:00
init Miscellaneous scheduler fixes/updates: 2025-04-06 10:44:58 -07:00
io_uring io_uring/kbuf: reject zero sized provided buffers 2025-04-07 07:51:23 -06:00
ipc
kernel Miscellaneous timer fixes: 2025-04-10 15:39:39 -07:00
lib CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
LICENSES
mm Disable SLUB_TINY for build testing 2025-04-06 10:00:04 -07:00
net Including fixes from netfilter. 2025-04-10 08:52:18 -07:00
rust Kbuild updates for v6.15 2025-04-05 15:46:50 -07:00
samples
scripts Disable SLUB_TINY for build testing 2025-04-06 10:00:04 -07:00
security
sound soundwire fix for 6.15-rc1 2025-04-06 12:04:53 -07:00
tools Miscellaneous objtool fixes: 2025-04-10 14:27:32 -07:00
usr
virt ARM: 2025-04-08 13:47:55 -07:00
.clang-format
.clippy.toml
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS MAINTAINERS: add more keywords for the GPIO subsystem entry 2025-04-08 10:41:58 +02:00
Makefile kbuild: Add '-fno-builtin-wcslen' 2025-04-08 12:03:26 -07:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.