mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
drm/amd/display: Refactor Per-DPM Derate Logic
[Why/How] 1. DPMM also needs to consider the per-DPM derate when calculating the clocks that will be used by mode programming. Otherwise DPMM calculations can result in rounding up to the next DPM anyways. clk index value used by mode support is not reliable when trying to determine the actual per-dpm derate. 2. Also update how per-dpm derates are stored so each derate applies until an upper bound. Upperbound of 0 signifies this derate is used for the remaining DPMs. To simplify logic, all derates for all clocks should have the same number of entries and the last entry should have an upperbound of 0. 3. Deprecate system_active_average derates from the derate table and move them to the per-DPM structure The remaining derates (urgent, dcn_mall, system idle) are unchanged Reviewed-by: Dillon Varone <dillon.varone@amd.com> Signed-off-by: Austin Zheng <Austin.Zheng@amd.com> Signed-off-by: James Lin <pinglei.lin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
d2c70bbf58
commit
fb481611d0
7 changed files with 181 additions and 64 deletions
Loading…
Add table
Add a link
Reference in a new issue