Skip to content

Commit ed52a9b

Browse files
committed
Merge tag 'amd-drm-fixes-5.7-2020-05-27' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
amd-drm-fixes-5.7-2020-05-27: amdgpu: - Display atomic test fix - Fix soft hang in display vupdate code Signed-off-by: Dave Airlie <[email protected]> From: Alex Deucher <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 9cb1fd0 + 4e51832 commit ed52a9b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7880,13 +7880,6 @@ static int dm_update_plane_state(struct dc *dc,
78807880
return -EINVAL;
78817881
}
78827882

7883-
if (new_plane_state->crtc_x <= -new_acrtc->max_cursor_width ||
7884-
new_plane_state->crtc_y <= -new_acrtc->max_cursor_height) {
7885-
DRM_DEBUG_ATOMIC("Bad cursor position %d, %d\n",
7886-
new_plane_state->crtc_x, new_plane_state->crtc_y);
7887-
return -EINVAL;
7888-
}
7889-
78907883
return 0;
78917884
}
78927885

drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,6 +1684,8 @@ static void delay_cursor_until_vupdate(struct dc *dc, struct pipe_ctx *pipe_ctx)
16841684
return;
16851685

16861686
/* Stall out until the cursor update completes. */
1687+
if (vupdate_end < vupdate_start)
1688+
vupdate_end += stream->timing.v_total;
16871689
us_vupdate = (vupdate_end - vupdate_start + 1) * us_per_line;
16881690
udelay(us_to_vupdate + us_vupdate);
16891691
}

0 commit comments

Comments
 (0)