]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: dsc mst re-compute pbn for changes on hub
authorHersen Wu <hersenwu@amd.com>
Wed, 2 Feb 2022 21:08:45 +0000 (16:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Feb 2022 22:01:48 +0000 (17:01 -0500)
commit6f71801617573c2d50ff7534c29275f8a7a343cf
tree8d7b9a8db56ef160306d0dede94c0ef383475b22
parent873bdc608fb64294cd618db6fa5c74d75b166610
drm/amd/display: dsc mst re-compute pbn for changes on hub

[why]
when unplug 1 dp from dsc mst hub, atomic_check new request
dc_state only include info for the unplug dp. this will not
trigger re-compute pbn for displays still connected to hub.

[how] all displays connected to dsc hub are available in
dc->current_state, by comparing dc->current_state and new
request from atomic_chceck, it will provide info of
displays connected to hub and do pbn re-compute.

Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Hersen Wu <hersenwu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c