]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Acknowledge wm_optimized_required
authorJoshua Aberback <joshua.aberback@amd.com>
Sun, 5 Apr 2020 20:41:11 +0000 (16:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Apr 2020 18:21:22 +0000 (14:21 -0400)
commit6dbebf4da3616a14f43041b81a0881a7343ce5fc
tree9b63c14ff82924ca08669f442b82216d524ad2c7
parentd243b6ffde7a3717c38b31dbc9c8c562f066d6ef
drm/amd/display: Acknowledge wm_optimized_required

[Why]
If dc->clk_mgr->funcs->are_clock_states_equal is set, then
wm_optimized_required is never checked. In that case, when going from a
higher mode to a lower mode, wm_optimized_required remains true until
the next mode change.

[How]
 - move from else-if to unconditional or

Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c