summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h
index 3f44b27a..da8cb251 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h
@@ -86,6 +86,13 @@ struct gk20a_channel_sync {
86 /* Reset the channel syncpoint/semaphore. */ 86 /* Reset the channel syncpoint/semaphore. */
87 void (*set_min_eq_max)(struct gk20a_channel_sync *s); 87 void (*set_min_eq_max)(struct gk20a_channel_sync *s);
88 88
89 /*
90 * Set the channel syncpoint/semaphore to safe state
91 * This should be used to reset User managed syncpoint since we don't
92 * track threshold values for those syncpoints
93 */
94 void (*set_safe_state)(struct gk20a_channel_sync *s);
95
89 /* Signals the sync timeline (if owned by the gk20a_channel_sync layer). 96 /* Signals the sync timeline (if owned by the gk20a_channel_sync layer).
90 * This should be called when we notice that a gk20a_fence is 97 * This should be called when we notice that a gk20a_fence is
91 * expired. */ 98 * expired. */
@@ -101,7 +108,8 @@ struct gk20a_channel_sync {
101 void (*destroy)(struct gk20a_channel_sync *s); 108 void (*destroy)(struct gk20a_channel_sync *s);
102}; 109};
103 110
104void gk20a_channel_sync_destroy(struct gk20a_channel_sync *sync); 111void gk20a_channel_sync_destroy(struct gk20a_channel_sync *sync,
112 bool set_safe_state);
105struct gk20a_channel_sync *gk20a_channel_sync_create(struct channel_gk20a *c, 113struct gk20a_channel_sync *gk20a_channel_sync_create(struct channel_gk20a *c,
106 bool user_managed); 114 bool user_managed);
107bool gk20a_channel_sync_needs_sync_framework(struct gk20a *g); 115bool gk20a_channel_sync_needs_sync_framework(struct gk20a *g);