summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2026-09-14 09:17:32 -0500
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-09-18 20:56:56 +0300
commit9d45679a02f5e434ec48b27f671e22243a5c99cc (patch)
treec7c5c989f2a50c6085dc3c63c6bbcf740e610e8c /tools/perf/scripts/python/bin/stackcollapse-report
parent850188bb14416b0fa1956f94c79324a0d50f9a60 (diff)
downloadlinux-next-9d45679a02f5e434ec48b27f671e22243a5c99cc.tar.gz
linux-next-9d45679a02f5e434ec48b27f671e22243a5c99cc.zip
platform/x86/amd: Stop counting intermediate cycles with metrics table
The metrics table doesn't increment for all cases that can cause an intermediate wakeup if the cycle is very fast. This can make the intent from commit 9f5595d5f03fd ("platform/x86/amd: pmc: Require at least 2.5 seconds between HW sleep cycles") not work properly. That commit originally was measured to work properly, but it was accidental due to a logic error. The logic error was fixed in commit 4dbd11796f3a8 ("platform/x86/amd: pmc: Clear metrics table at start of cycle") but this now masked the table doesn't always update. Since that code was introduced, Daniel Gibson added a number of changes to the logic which includes a state variable introduced in commit 037f0b03c663a ("platform/x86/amd/pmc: Don't log during intermediate wakeups"). Utilize that state variable to instead decide if a single sequence has started. Cc: Daniel Gibson <daniel@gibson.sh> Cc: stable@vger.kernel.org # 7.1.y: 037f0b03c663a platform/x86/amd/pmc: Don't log during intermediate wakeups Cc: stable@vger.kernel.org # 6.18.y: 037f0b03c663a platform/x86/amd/pmc: Don't log during intermediate wakeups Fixes: 4dbd11796f3a8 ("platform/x86/amd: pmc: Clear metrics table at start of cycle") Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Tested-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com> Link: https://patch.msgid.link/20260914141734.2703545-1-mario.limonciello@amd.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions