summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 2d87911d..bd5f44a4 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -3126,6 +3126,7 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c,
3126 struct nvgpu_alloc_obj_ctx_args *args) 3126 struct nvgpu_alloc_obj_ctx_args *args)
3127{ 3127{
3128 struct gk20a *g = c->g; 3128 struct gk20a *g = c->g;
3129 struct gk20a_platform *platform = dev_get_drvdata(g->dev);
3129 struct fifo_gk20a *f = &g->fifo; 3130 struct fifo_gk20a *f = &g->fifo;
3130 struct channel_ctx_gk20a *ch_ctx = &c->ch_ctx; 3131 struct channel_ctx_gk20a *ch_ctx = &c->ch_ctx;
3131 struct tsg_gk20a *tsg = NULL; 3132 struct tsg_gk20a *tsg = NULL;
@@ -3280,7 +3281,7 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c,
3280 3281
3281 args->flags |= NVGPU_ALLOC_OBJ_FLAGS_LOCKBOOST_ZERO; 3282 args->flags |= NVGPU_ALLOC_OBJ_FLAGS_LOCKBOOST_ZERO;
3282 3283
3283 if (g->support_pmu) 3284 if (g->support_pmu && platform->can_elpg)
3284 gk20a_pmu_enable_elpg(g); 3285 gk20a_pmu_enable_elpg(g);
3285 } 3286 }
3286 3287