]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Revert "drm/amd/display: Fix writeback_info is not removed"
authorAlex Hung <alex.hung@amd.com>
Wed, 11 Oct 2023 19:18:36 +0000 (13:18 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Oct 2023 15:11:29 +0000 (11:11 -0400)
This reverts commit 5b89d2ccc8466e0445a4994cb288fc009b565de5.

[WHY & HOW]
The writeback series cause a regression in thunderbolt display.

Signed-off-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c

index aae27330cedeb171a0d970b1a4397953287afe94..0da82fcd4cc591cbcf2539f61f28dc330f0798f1 100644 (file)
@@ -516,12 +516,11 @@ bool dc_stream_remove_writeback(struct dc *dc,
                        if (stream->writeback_info[i].dwb_pipe_inst == dwb_pipe_inst)
                                stream->writeback_info[i].wb_enabled = false;
 
-                       /* trim the array */
-                       if (j < i) {
+                       if (j < i)
+                               /* trim the array */
                                memcpy(&stream->writeback_info[j], &stream->writeback_info[i],
                                                sizeof(struct dc_writeback_info));
-                               j++;
-                       }
+                       j++;
                }
        }
        stream->num_wb_info = j;