]> git.ipfire.org Git - thirdparty/kernel/linux.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)
commitc5365554514178840400b801787bedb567811064
tree8d7b9a8db56ef160306d0dede94c0ef383475b22
parented7208706448953c6f15009cf139135776c15713
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