diff options
author | Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> | 2025-02-03 17:49:58 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-02-19 23:14:19 +0300 |
commit | 72d7a7fa1f2404fd31c84a8f808b1b37021a3a9e (patch) | |
tree | 49e0e3a6d1029e22e0b8fad606b6dc33a3cf2bc1 /rust/helpers/build_bug.c | |
parent | 07bc2dcbcf403d47d6f305ef7f0d3d489491c5fb (diff) | |
download | linux-72d7a7fa1f2404fd31c84a8f808b1b37021a3a9e.tar.xz |
drm/amd/display: Guard against setting dispclk low when active
[Why]
We should never apply a minimum dispclk value while in prepare_bandwidth
or while displays are active. This is always an optimization for when
all displays are disabled.
[How]
Defer dispclk optimization until safe_to_lower = true and display_count
reaches 0.
Since 0 has a special value in this logic (ie. no dispclk required)
we also need adjust the logic that clamps it for the actual request
to PMFW.
Reviewed-by: Gabe Teeger <gabe.teeger@amd.com>
Reviewed-by: Leo Chen <leo.chen@amd.com>
Reviewed-by: Syed Hassan <syed.hassan@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions