]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Fix phy id mapping issue for secure display
authorWayne Lin <Wayne.Lin@amd.com>
Thu, 25 Jul 2024 07:29:44 +0000 (15:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:31:36 +0000 (10:31 -0500)
commit34b6c4b1306d6bce72663ae7863356e29351f237
tree08db9ebe5fcff904a3a566c77870bc5daf091802
parent37a8f9b0c97178f72fdea83aa99e03579673a2e3
drm/amd/display: Fix phy id mapping issue for secure display

[Why]
Under mst scenario, mst streams are from the same link_enc_hw_inst.
As the result, can't utilize that as the phy index for distinguising
different stream sinks.

[How]
Sort the connectors by:
link_enc_hw_instance->mst tree depth->mst RAD

After sorting the phy index assignment, store connector's relevant info
into dm mapping array. Once need the index, just look up the static
array.

Reviewed-by: HaoPing Liu <haoping.liu@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@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.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h