diff options
author | Wenjing Liu <Wenjing.Liu@amd.com> | 2019-06-11 18:18:36 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-07-18 14:17:19 -0500 |
commit | dd5d9348da02dd83dbb235e55aa0acb3f48ccc95 (patch) | |
tree | 832fafb2a9f8118669e32d342ff09cdb801a7c0d /drivers | |
parent | 7f6964c5a05e6593bda3a4bcb5581d0b72fc71cb (diff) | |
download | linux-stable-dd5d9348da02dd83dbb235e55aa0acb3f48ccc95.tar.gz linux-stable-dd5d9348da02dd83dbb235e55aa0acb3f48ccc95.tar.bz2 linux-stable-dd5d9348da02dd83dbb235e55aa0acb3f48ccc95.zip |
drm/amd/display: wait for the whole frame after global unlock
[why]
The current code will not wait for the entire frame
after global unlock.
This causes dsc dynamic target bpp update corruption when
there is a surface update immediately happens after this.
[how]
Wait for the entire whole frame after unlock before continuing
the rest of stream and surface update.
Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c index 710727e5d0f8..e5e78aa930a6 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c @@ -1242,6 +1242,8 @@ void dcn20_pipe_control_lock_global( CRTC_STATE_VACTIVE); pipe->stream_res.tg->funcs->wait_for_state(pipe->stream_res.tg, CRTC_STATE_VBLANK); + pipe->stream_res.tg->funcs->wait_for_state(pipe->stream_res.tg, + CRTC_STATE_VACTIVE); pipe->stream_res.tg->funcs->lock_doublebuffer_disable( pipe->stream_res.tg); } |