linux/drivers/gpu/drm/amd
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
..
acp
amdgpu drm/amdgpu: align frag_end to covered address space 2020-10-05 15:13:28 -04:00
amdkfd drm/amd/amdkfd: Surface files in Sysfs to allow users to get number of 2020-09-30 15:26:27 -04:00
display drm/amd/display: Avoid set zero in the requested clk 2020-10-05 15:13:36 -04:00
include drm/amd/amdgpu: Define and implement a function that collects number of 2020-09-30 15:26:27 -04:00
pm drm/amdgpu/swsmu: add interrupt work handler for smu11 parts 2020-10-01 10:43:28 -04:00