drm/amd/display: add global master update lock interfaces
authorWenjing Liu <Wenjing.Liu@amd.com>
Wed, 6 Mar 2019 00:28:10 +0000 (19:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Mar 2019 04:39:48 +0000 (23:39 -0500)
Add these interfacese for future use
setup_global_lock()
lock_global()
pipe_control_lock_global()

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h

index c25f7df7b5e3f65251058f39751410f0e13c5074..067d53caf28ac49e1b217183007b2859d186be6a 100644 (file)
@@ -187,8 +187,10 @@ struct timing_generator_funcs {
        bool (*did_triggered_reset_occur)(struct timing_generator *tg);
        void (*setup_global_swap_lock)(struct timing_generator *tg,
                                                        const struct dcp_gsl_params *gsl_params);
+       void (*setup_global_lock)(struct timing_generator *tg);
        void (*unlock)(struct timing_generator *tg);
        void (*lock)(struct timing_generator *tg);
+       void (*lock_global)(struct timing_generator *tg);
        void (*enable_reset_trigger)(struct timing_generator *tg,
                                     int source_tg_inst);
        void (*enable_crtc_reset)(struct timing_generator *tg,
index 7676f25216b191c22b1616e1622e8582e899a4dd..33905468e2b9f8ba06b7d27d8dbe3fa196b987fb 100644 (file)
@@ -176,6 +176,10 @@ struct hw_sequencer_funcs {
                                struct dc *dc,
                                struct pipe_ctx *pipe,
                                bool lock);
+       void (*pipe_control_lock_global)(
+                               struct dc *dc,
+                               struct pipe_ctx *pipe,
+                               bool lock);
        void (*blank_pixel_data)(
                        struct dc *dc,
                        struct pipe_ctx *pipe_ctx,