diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2016-03-23 12:43:43 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-04-08 15:34:50 -0400 |
commit | 6eeabfbdd08e48f924885952c80ff41aa2b534b7 (patch) | |
tree | 5cdba48865faa0b76e20d0994fa9de9e4c12deed /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | e8bac374c0ed24f05bf389e1e8b5aca47f61bd3a (diff) |
gpu: nvgpu: vgpu: virtualized SMPC/HWPM ctx switch
Add support for SMPC and HWPM context switching when virtualized
Bug 1648200
JIRASW EVLR-219
JIRASW EVLR-253
Change-Id: I80a1613eaad87d8510f00d9aef001400d642ecdf
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/1122034
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 9d8dc5f7..d9cc3d4f 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -172,6 +172,12 @@ struct gpu_ops { | |||
172 | void (*update_ctxsw_preemption_mode)(struct gk20a *g, | 172 | void (*update_ctxsw_preemption_mode)(struct gk20a *g, |
173 | struct channel_ctx_gk20a *ch_ctx, | 173 | struct channel_ctx_gk20a *ch_ctx, |
174 | void *ctx_ptr); | 174 | void *ctx_ptr); |
175 | int (*update_smpc_ctxsw_mode)(struct gk20a *g, | ||
176 | struct channel_gk20a *c, | ||
177 | bool enable); | ||
178 | int (*update_hwpm_ctxsw_mode)(struct gk20a *g, | ||
179 | struct channel_gk20a *c, | ||
180 | bool enable); | ||
175 | int (*dump_gr_regs)(struct gk20a *g, | 181 | int (*dump_gr_regs)(struct gk20a *g, |
176 | struct gk20a_debug_output *o); | 182 | struct gk20a_debug_output *o); |
177 | int (*update_pc_sampling)(struct channel_gk20a *ch, | 183 | int (*update_pc_sampling)(struct channel_gk20a *ch, |