]> Git Repo - linux.git/commit
perf/x86/amd/core: Avoid register reset when CPU is dead
authorSandipan Das <[email protected]>
Mon, 29 Jan 2024 11:06:26 +0000 (16:36 +0530)
committerIngo Molnar <[email protected]>
Wed, 13 Mar 2024 10:01:30 +0000 (11:01 +0100)
commitad8c91282c95f801c37812d59d2d9eba6899b384
treedb3ff37ae380c55be2f6d567dcf669ad694775af
parent29297ffffb0bf388778bd4b581a43cee6929ae65
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: 21d59e3e2c40 ("perf/x86/amd/core: Detect PerfMonV2 support")
Reported-by: Mario Limonciello <[email protected]>
Signed-off-by: Sandipan Das <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/550a026764342cf7e5812680e3e2b91fe662b5ac.1706526029.git.sandipan.das@amd.com
arch/x86/events/amd/core.c
This page took 0.056362 seconds and 4 git commands to generate.