OSDN Git Service

drm/amd/display: Allow DSC on supported MST branch devices
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 12 Nov 2021 20:27:32 +0000 (15:27 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 21:05:05 +0000 (16:05 -0500)
commit6421f7c750e92c35ceb239ccbd03ceeae2c65ff8
tree2c3466ff8357d10d6642df5f7b09eb97f9b8f04e
parentebe5ffd8e271e328f33c4bc5cb8cea2b4cf8e058
drm/amd/display: Allow DSC on supported MST branch devices

[Why]
When trying to lightup two 4k60 non-DSC displays behind a branch device
that supports DSC we can't lightup both at once due to bandwidth
limitations - each requires 48 VCPI slots but we only have 63.

[How]
The workaround already exists in the code but is guarded by a CONFIG
that cannot be set by the user and shouldn't need to be.

Check for specific branch device IDs to device whether to enable
the workaround for multiple display scenarios.

Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@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