diff options
| author | 2026-06-15 10:33:12 +0530 | |
|---|---|---|
| committer | 2026-08-06 09:27:17 -0400 | |
| commit | 39dfe8a7d7092c23e480f35e2cb2760d3e93f7a6 (patch) | |
| tree | 961e03545ea7a8160c3864aa14ff1410dc3ac10f /tools/lib/python/kdoc/python_version.py | |
| parent | drm/amd/pm: smu_v14_0_0: add SMU_DCEFCLK support in DPM frequency queries (diff) | |
drm/amd/pm: smu_v14_0_0: use find_clk_level() for DPM level marking
Replace the simple exact-match loop in emit_clk_levels with a call
to smu_v14_0_0_find_clk_level() introduced in patch 1. The helper
already handles both exact and closest-match semantics.
Build a stack-local frequency table from the DPM levels (using
reverse index for SMU_MCLK since MemPstateTable stores levels
high-to-low), then call the helper once to find the active level.
The SMU reports time-filtered average frequencies that often do not
match any DPM table entry exactly. Without closest-match fallback,
MCLK, FCLK and other clocks show DPM levels but never display the
* marker, breaking userspace tools that rely on it to identify the
active frequency.
Signed-off-by: Priya Hosur <Priya.Hosur@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
