Skip to content
/ linux Public

Commit 068dee7

Browse files
Wayne LinSasha Levin
authored andcommitted
drm/amd/display: Avoid updating surface with the same surface under MPO
[ Upstream commit 1a38ded ] [Why & How] Although it's dummy updates of surface update for committing stream updates, we should not have dummy_updates[j].surface all indicating to the same surface under multiple surfaces case. Otherwise, copy_surface_update_to_plane() in update_planes_and_stream_state() will update to the same surface only. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Wayne Lin <Wayne.Lin@amd.com> Signed-off-by: Tom Chung <chiahsuan.chung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 1a7f111 commit 068dee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8934,7 +8934,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)
89348934
*/
89358935
dummy_updates = kzalloc(sizeof(struct dc_surface_update) * MAX_SURFACES, GFP_ATOMIC);
89368936
for (j = 0; j < status->plane_count; j++)
8937-
dummy_updates[j].surface = status->plane_states[0];
8937+
dummy_updates[j].surface = status->plane_states[j];
89388938

89398939

89408940
mutex_lock(&dm->dc_lock);

0 commit comments

Comments
 (0)