diff options
| author | Rajvi Jingar <[email protected]> | 2023-03-20 21:20:29 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2023-03-27 11:34:34 +0000 |
| commit | fb5755100a0a5aa5957bdb204fd1e249684557fc (patch) | |
| tree | 777ba457dd19b7b45d0a2592abaa7a0f710d221e /tools/perf/scripts/python/task-analyzer.py | |
| parent | platform/surface: aggregator: Add missing fwnode_handle_put() (diff) | |
| download | kernel-fb5755100a0a5aa5957bdb204fd1e249684557fc.tar.gz kernel-fb5755100a0a5aa5957bdb204fd1e249684557fc.zip | |
platform/x86/intel/pmc: Alder Lake PCH slp_s0_residency fix
For platforms with Alder Lake PCH (Alder Lake S and Raptor Lake S) the
slp_s0_residency attribute has been reporting the wrong value. Unlike other
platforms, ADL PCH does not have a counter for the time that the SLP_S0
signal was asserted. Instead, firmware uses the aggregate of the Low Power
Mode (LPM) substate counters as the S0ix value. Since the LPM counters run
at a different frequency, this lead to misreporting of the S0ix time.
Add a check for Alder Lake PCH and adjust the frequency accordingly when
display slp_s0_residency.
Fixes: bbab31101f44 ("platform/x86/intel: pmc/core: Add Alderlake support to pmc core driver")
Signed-off-by: Rajvi Jingar <[email protected]>
Signed-off-by: David E. Box <[email protected]>
Reviewed-by: Rajneesh Bhardwaj <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
