]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: get and restore link res map
authorWenjing Liu <wenjing.liu@amd.com>
Fri, 10 Dec 2021 19:22:19 +0000 (14:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Dec 2021 13:54:45 +0000 (08:54 -0500)
commita6400343841d41fad2964d5a391bb9d01fba21b7
tree6b78dc318dc0473d65d705b50f87c77970bbcf24
parenta59a2ee8314cdbf6622941dae21a825ac0cac52b
drm/amd/display: get and restore link res map

[why]
When reboot the link res map should be persisted.  So during boot up,
driver will look at the map to determine which link should take priority
to use certain link res.  This is to ensure that link res remains
unshuffled after a reboot.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_link.h
drivers/gpu/drm/amd/display/dc/inc/core_types.h