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>
Tue, 24 Jan 2023 18:25:22 +0000 (13:25 -0500)
commitea38dd57b0a65a7d434a7d9528c7b0445a5ea3ed
tree20e239a0b489e2810bcb8051c93a4a62326f01ba
parentc689e1e362ea29d10fbd9a5e94b17be991d0e231
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