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/gr_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/gr_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index 19ab2ec0..5a987a82 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |||
@@ -391,6 +391,7 @@ struct gr_ctx_desc { | |||
391 | 391 | ||
392 | u32 graphics_preempt_mode; | 392 | u32 graphics_preempt_mode; |
393 | u32 compute_preempt_mode; | 393 | u32 compute_preempt_mode; |
394 | bool boosted_ctx; | ||
394 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC | 395 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC |
395 | struct gr_ctx_desc_t18x t18x; | 396 | struct gr_ctx_desc_t18x t18x; |
396 | #endif | 397 | #endif |