summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
authorPeter Boonstoppel <pboonstoppel@nvidia.com>2017-01-10 13:22:54 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-02-14 17:54:46 -0500
commit907adfd785e3a3582b2649c48bf4c32f41745e3f (patch)
tree5ffa4118738135d4b33e9b6d1de035b87ef8b351 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c
parent4fb3161ba3bb1c8481b1ca426a44aa4ee3ad744e (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/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 0e1c88a4..170bfc7f 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -2109,6 +2109,9 @@ int gr_gk20a_load_golden_ctx_image(struct gk20a *g,
2109 if (g->ops.gr.update_ctxsw_preemption_mode) 2109 if (g->ops.gr.update_ctxsw_preemption_mode)
2110 g->ops.gr.update_ctxsw_preemption_mode(g, ch_ctx, mem); 2110 g->ops.gr.update_ctxsw_preemption_mode(g, ch_ctx, mem);
2111 2111
2112 if (g->ops.gr.update_boosted_ctx)
2113 g->ops.gr.update_boosted_ctx(g, mem, ch_ctx->gr_ctx);
2114
2112 virt_addr_lo = u64_lo32(ch_ctx->patch_ctx.mem.gpu_va); 2115 virt_addr_lo = u64_lo32(ch_ctx->patch_ctx.mem.gpu_va);
2113 virt_addr_hi = u64_hi32(ch_ctx->patch_ctx.mem.gpu_va); 2116 virt_addr_hi = u64_hi32(ch_ctx->patch_ctx.mem.gpu_va);
2114 2117