]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf/x86/amd/core: Update and fix stalled-cycles-* events for Zen 2 and later
authorSandipan Das <sandipan.das@amd.com>
Mon, 25 Mar 2024 07:47:53 +0000 (13:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:35:47 +0000 (16:35 +0200)
commit69fe5f177ad39c0ed2186e2391cbee1908096616
tree88bfbe73ea4ffb816dc3112ae14f6828641e9029
parentd2be2f872fe7ba865a37bb50d5def771e9cc1901
perf/x86/amd/core: Update and fix stalled-cycles-* events for Zen 2 and later

[ Upstream commit c7b2edd8377be983442c1344cb940cd2ac21b601 ]

AMD processors based on Zen 2 and later microarchitectures do not
support PMCx087 (instruction pipe stalls) which is used as the backing
event for "stalled-cycles-frontend" and "stalled-cycles-backend".

Use PMCx0A9 (cycles where micro-op queue is empty) instead to count
frontend stalls and remove the entry for backend stalls since there
is no direct replacement.

Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Fixes: 3fe3331bb285 ("perf/x86/amd: Add event map for AMD Family 17h")
Link: https://lore.kernel.org/r/03d7fc8fa2a28f9be732116009025bdec1b3ec97.1711352180.git.sandipan.das@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/events/amd/core.c