summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
diff options
context:
space:
mode:
authorCharlene Liu <charlene.liu@amd.com>2019-02-04 22:36:13 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-03-05 23:09:32 +0300
commit2750160bccab4d7a4017197a3f0d75ee8cc4c6af (patch)
treea290f9f12ab1aa23bea8fb58f555acaeb49f46f4 /drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
parent46f81fc4af81b6523cf2a538b0d2e531ee1477b1 (diff)
downloadlinux-2750160bccab4d7a4017197a3f0d75ee8cc4c6af.tar.xz
drm/amd/display: dcn add check surface in_use
Driver need to poll the SURFACE_INUSE register to determine when to start the new task and write data to the checked surface. Implement the wait functions, and add the necessary hubbub registers. Signed-off-by: Charlene Liu <charlene.liu@amd.com> Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h b/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
index 7676f25216b1..0ede4b604b77 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
@@ -232,6 +232,8 @@ struct hw_sequencer_funcs {
void (*setup_periodic_interrupt)(struct pipe_ctx *pipe_ctx, enum vline_select vline);
void (*setup_vupdate_interrupt)(struct pipe_ctx *pipe_ctx);
+ void (*wait_surface_safe_to_update)(struct dc *dc,
+ struct pipe_ctx *pipe_ctx);
};
void color_space_to_black_color(