]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Change function decide_dp_link_settings to avoid infinite looping
authorBing Guo <bing.guo@amd.com>
Mon, 4 Jan 2021 19:09:41 +0000 (14:09 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Jan 2021 21:38:20 +0000 (16:38 -0500)
commit6261f1e6943de256476cb35433e6c421a5984fc0
tree9329749b63ae3be510a7181725f1459d4e2b7594
parent4906c645e843a49695c30f58b6e27596f681b537
drm/amd/display: Change function decide_dp_link_settings to avoid infinite looping

Why:
Function decide_dp_link_settings() loops infinitely when required bandwidth
can't be supported.

How:
Check the required bandwidth against verified_link_cap before trying to
find a link setting for it.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Bing Guo <bing.guo@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <anson.jacob@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c