diff options
author | Peter Boonstoppel <pboonstoppel@nvidia.com> | 2017-01-10 13:22:54 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-02-14 17:54:46 -0500 |
commit | 907adfd785e3a3582b2649c48bf4c32f41745e3f (patch) | |
tree | 5ffa4118738135d4b33e9b6d1de035b87ef8b351 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 4fb3161ba3bb1c8481b1ca426a44aa4ee3ad744e (diff) |
gpu: nvgpu: Add NVGPU_IOCTL_CHANNEL_SET_BOOSTED_CTX
This ioctl can be used on gp10b to set a flag in the context header
indicating this context should be run at elevated clock
frequency. FECS ctxsw ucode will read this flag as part of the context
switch and will request higher GPU clock frequencies from BPMP for the
duration of the context execution.
Bug 1819874
Change-Id: I84bf580923d95585095716d49cea24e58c9440ed
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/1292746
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 8d6d36fc..7f2383d9 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -319,6 +319,10 @@ struct gpu_ops { | |||
319 | struct vm_gk20a *vm, u32 class, | 319 | struct vm_gk20a *vm, u32 class, |
320 | u32 graphics_preempt_mode, | 320 | u32 graphics_preempt_mode, |
321 | u32 compute_preempt_mode); | 321 | u32 compute_preempt_mode); |
322 | int (*set_boosted_ctx)(struct channel_gk20a *ch, bool boost); | ||
323 | void (*update_boosted_ctx)(struct gk20a *g, | ||
324 | struct mem_desc *mem, | ||
325 | struct gr_ctx_desc *gr_ctx); | ||
322 | int (*fuse_override)(struct gk20a *g); | 326 | int (*fuse_override)(struct gk20a *g); |
323 | void (*init_sm_id_table)(struct gk20a *g); | 327 | void (*init_sm_id_table)(struct gk20a *g); |
324 | int (*load_smid_config)(struct gk20a *g); | 328 | int (*load_smid_config)(struct gk20a *g); |