linux/arch/x86/events/amd
Sandipan Das ad8c91282c perf/x86/amd/core: Avoid register reset when CPU is dead
When bringing a CPU online, some of the PMC and LBR related registers
are reset. The same is done when a CPU is taken offline although that
is unnecessary. This currently happens in the "cpu_dead" callback which
is also incorrect as the callback runs on a control CPU instead of the
one that is being taken offline. This also affects hibernation and
suspend to RAM on some platforms as reported in the link below.

Fixes: 21d59e3e2c ("perf/x86/amd/core: Detect PerfMonV2 support")
Reported-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/550a026764342cf7e5812680e3e2b91fe662b5ac.1706526029.git.sandipan.das@amd.com
2024-03-13 11:01:30 +01:00
..
brs.c arch/x86: Fix typos 2024-01-03 11:46:22 +01:00
core.c perf/x86/amd/core: Avoid register reset when CPU is dead 2024-03-13 11:01:30 +01:00
ibs.c perf/x86/amd: Reject branch stack for IBS events 2023-11-30 09:34:40 +01:00
iommu.c x86/events/amd/iommu: Remove redundant assignment to variable shift 2021-12-28 21:30:05 +01:00
iommu.h
lbr.c perf/x86/amd/lbr: Discard erroneous branch entries 2024-03-13 11:01:30 +01:00
Makefile perf/x86/amd/lbr: Detect LbrExtV2 support 2022-08-27 00:05:43 +02:00
power.c
uncore.c perf/x86/amd/uncore: Fix __percpu annotation 2024-03-04 11:58:36 +01:00