summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index ebc18d5d..64e410db 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -254,6 +254,9 @@ struct gpu_ops {
254 int (*suspend_contexts)(struct gk20a *g, 254 int (*suspend_contexts)(struct gk20a *g,
255 struct dbg_session_gk20a *dbg_s, 255 struct dbg_session_gk20a *dbg_s,
256 int *ctx_resident_ch_fd); 256 int *ctx_resident_ch_fd);
257 int (*set_preemption_mode)(struct channel_gk20a *ch,
258 u32 graphics_preempt_mode,
259 u32 compute_preempt_mode);
257 } gr; 260 } gr;
258 const char *name; 261 const char *name;
259 struct { 262 struct {
@@ -1098,7 +1101,9 @@ static inline struct tsg_gk20a *tsg_gk20a_from_ch(struct channel_gk20a *ch)
1098 tsg_gk20a_from_ch(ch)->timeslice_us : ch->timeslice_us, \ 1101 tsg_gk20a_from_ch(ch)->timeslice_us : ch->timeslice_us, \
1099 ch->timeout_ms_max, \ 1102 ch->timeout_ms_max, \
1100 gk20a_fifo_interleave_level_name(ch->interleave_level), \ 1103 gk20a_fifo_interleave_level_name(ch->interleave_level), \
1101 gr_gk20a_preempt_mode_name(ch->ch_ctx.gr_ctx ? \ 1104 gr_gk20a_graphics_preempt_mode_name(ch->ch_ctx.gr_ctx ? \
1102 ch->ch_ctx.gr_ctx->preempt_mode : 0) 1105 ch->ch_ctx.gr_ctx->graphics_preempt_mode : 0), \
1106 gr_gk20a_compute_preempt_mode_name(ch->ch_ctx.gr_ctx ? \
1107 ch->ch_ctx.gr_ctx->compute_preempt_mode : 0)
1103 1108
1104#endif /* GK20A_H */ 1109#endif /* GK20A_H */