drm/amdgpu/display/mst: limit payload to be updated one by one
authorWayne Lin <Wayne.Lin@amd.com>
Fri, 9 Dec 2022 11:05:33 +0000 (19:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 25 Jan 2023 18:54:05 +0000 (13:54 -0500)
commitcb1e0b015f56b8f3c7f5ce33ff4b782ee5674512
treeb2b4de332e965f755cf9ebad4356c2567160656f
parent1119e1f9636b76aef14068c7fd0b4d55132b86b8
drm/amdgpu/display/mst: limit payload to be updated one by one

[Why]
amdgpu expects to update payload table for one stream one time
by calling dm_helpers_dp_mst_write_payload_allocation_table().
Currently, it get modified to try to update HW payload table
at once by referring mst_state.

[How]
This is just a quick workaround. Should find way to remove the
temporary struct dc_dp_mst_stream_allocation_table later if set
struct link_mst_stream_allocatio directly is possible.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2171
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Fixes: 4d07b0bc4034 ("drm/display/dp_mst: Move all payload info into the atomic state")
Cc: stable@vger.kernel.org # 6.1
Acked-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Tested-by: Didier Raboud <odyx@debian.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c