bianbu-linux-6.6/drivers/gpu/drm/amd/display/dc/clk_mgr
Rodrigo Siqueira 2f8be0e516 drm/amd/display: Avoid set zero in the requested clk
[Why]
Sometimes CRTCs can be disabled due to display unplugging or temporarily
transition in the userspace; in these circumstances, DCE tries to set
the minimum clock threshold. When we have this situation, the function
bw_calcs is invoked with number_of_displays set to zero, making DCE set
dispclk_khz and sclk_khz to zero. For these reasons, we have seen some
ATOM bios errors that look like:

[drm:atom_op_jump [amdgpu]] *ERROR* atombios stuck in loop for more than
5secs aborting
[drm:amdgpu_atom_execute_table_locked [amdgpu]] *ERROR* atombios stuck
executing EA8A (len 761, WS 0, PS 0) @ 0xEABA

[How]
This error happens due to an attempt to optimize the bandwidth using the
sclk, and the dispclk clock set to zero. Technically we handle this in
the function dce112_set_clock, but we are not considering the case that
this value is set to zero. This commit fixes this issue by ensuring that
we never set a minimum value below the minimum clock threshold.

Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-10-05 15:13:36 -04:00
..
dce60 drm/amd/display: dc/clk_mgr: make function static 2020-09-17 21:21:40 -04:00
dce100 drm/amd/display: remove redundant assignment to variable dp_ref_clk_khz 2020-04-22 18:11:45 -04:00
dce110 drm/amdgpu/display: fix 64 bit divide 2019-10-03 09:11:00 -05:00
dce112 drm/amd/display: Avoid set zero in the requested clk 2020-10-05 15:13:36 -04:00
dce120 drm/amd/display: Copy max_clks_by_state after dce_clk_mgr_construct 2019-07-18 14:18:09 -05:00
dcn10 drm/amd/display: dchubbub p-state warning during surface planes switch 2020-07-30 14:13:27 -04:00
dcn20 drm/amd/display: Request PHYCLK adjustment on PHY enable/disable 2020-07-08 09:02:24 -04:00
dcn21 drm/amd/display: remove duplicate call to rn_vbios_smu_get_smu_version() 2020-09-29 16:12:36 -04:00
dcn30 drm/amd/display: Don't compare dppclk before updating DTO 2020-07-27 16:23:34 -04:00
clk_mgr.c drm/amd/display: dc/clk_mgr: add support for SI parts (v2) 2020-07-27 16:46:07 -04:00
Makefile drm/amd/display: add DCN support for aarch64 2020-08-10 17:26:53 -04:00