summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
diff options
context:
space:
mode:
authorDeepak Goyal <dgoyal@nvidia.com>2018-07-16 01:40:23 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-24 02:52:39 -0400
commitd3b8415948de8c9ffe2f2fa66340dd7e71a894e6 (patch)
tree328970819ace31fae3bf3bc27376121330064db9 /drivers/gpu/nvgpu/gv11b/hal_gv11b.c
parent2df33e32e40eb2c8e025f8d27396d9b5cdb3ac11 (diff)
gpu: nvgpu: tpc powergating through sysfs
- adds static tpc-powergating through sysfs. - active tpc count will remain till the GPU/systems is not booted again. - tpc_pg_mask can be written only after GPU probe finishes and GPU boot is triggered. Note: To be able to use this feature, we need to change boot/init scripts of the OS(used with nvgpu driver) to write to sysfs nodes before posting discover image size query to FECS. Bug 200406784 Change-Id: Id749c7a617422c625f77d0c1a9aada2eb960c4d0 Signed-off-by: Deepak Goyal <dgoyal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1742422 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hal_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/hal_gv11b.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
index d479fef8..08c3097e 100644
--- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
@@ -294,6 +294,7 @@ static const struct gpu_ops gv11b_ops = {
294 .init_ctx_state = gr_gp10b_init_ctx_state, 294 .init_ctx_state = gr_gp10b_init_ctx_state,
295 .alloc_gr_ctx = gr_gp10b_alloc_gr_ctx, 295 .alloc_gr_ctx = gr_gp10b_alloc_gr_ctx,
296 .free_gr_ctx = gr_gk20a_free_gr_ctx, 296 .free_gr_ctx = gr_gk20a_free_gr_ctx,
297 .powergate_tpc = gr_gv11b_powergate_tpc,
297 .update_ctxsw_preemption_mode = 298 .update_ctxsw_preemption_mode =
298 gr_gv11b_update_ctxsw_preemption_mode, 299 gr_gv11b_update_ctxsw_preemption_mode,
299 .dump_gr_regs = gr_gv11b_dump_gr_status_regs, 300 .dump_gr_regs = gr_gv11b_dump_gr_status_regs,