aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorWenjing Liu <[email protected]>2024-01-02 16:06:35 -0500
committerAlex Deucher <[email protected]>2024-01-15 18:35:38 -0500
commit3fc394111ea7f52ba1baf6f78717c42f71099df4 (patch)
treef41747d9e6efb2ee3d2eaef6ac7b6837f1c97668 /tools/perf/scripts/python/task-analyzer.py
parent6c605f44086af24d7ac1867245aa10bb3360c5bf (diff)
drm/amd/display: Floor to mhz when requesting dpp disp clock changes to SMU
[Why] SMU uses discrete dpp and disp clock levels. When we submit SMU request for clock changes in Mhz we need to floor the requested value from Khz so SMU will choose the next higher clock level in Khz to set. If we ceil to Mhz, SMU will have to choose the next higher clock level after the ceil, which could result in unnecessarily jumpping to the next level. For example, we request 1911,111Khz which is exactly one of the SMU preset level. If we pass 1912Mhz, SMU will choose 2150,000 khz. If we pass 1911Mhz, SMU will choose 1911,111kHz, which is the expected value. Reviewed-by: Alvin Lee <[email protected]> Acked-by: Alex Hung <[email protected]> Signed-off-by: Wenjing Liu <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions