Skip to content

Commit 8e80d48

Browse files
Paul Hsiehalexdeucher
authored andcommitted
drm/amd/display: Fix DFPstate hang due to view port changed
[Why] Place the cursor in the center of screen between two pipes then adjusting the viewport but cursour doesn't update cause DFPstate hang. [How] If viewport changed, update cursor as well. Cc: [email protected] Signed-off-by: Paul Hsieh <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 42f8c41 commit 8e80d48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,8 +1457,8 @@ static void dcn20_update_dchubp_dpp(
14571457

14581458
/* Any updates are handled in dc interface, just need to apply existing for plane enable */
14591459
if ((pipe_ctx->update_flags.bits.enable || pipe_ctx->update_flags.bits.opp_changed ||
1460-
pipe_ctx->update_flags.bits.scaler || pipe_ctx->update_flags.bits.viewport)
1461-
&& pipe_ctx->stream->cursor_attributes.address.quad_part != 0) {
1460+
pipe_ctx->update_flags.bits.scaler || viewport_changed == true) &&
1461+
pipe_ctx->stream->cursor_attributes.address.quad_part != 0) {
14621462
dc->hwss.set_cursor_position(pipe_ctx);
14631463
dc->hwss.set_cursor_attribute(pipe_ctx);
14641464

0 commit comments

Comments
 (0)