mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: pmu: add check before enabling elpg.
Do not enable/disable elpg if platform->can_elpg is false. Bug 1870556 Change-Id: I82d1fc4efdccc518827a6150fd3c17f6112e2f4a Signed-off-by: Deepak Goyal <dgoyal@nvidia.com> Reviewed-on: http://git-master/r/1465816 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
d0955cad82
commit
5a4926f291
@@ -3126,6 +3126,7 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c,
|
||||
struct nvgpu_alloc_obj_ctx_args *args)
|
||||
{
|
||||
struct gk20a *g = c->g;
|
||||
struct gk20a_platform *platform = dev_get_drvdata(g->dev);
|
||||
struct fifo_gk20a *f = &g->fifo;
|
||||
struct channel_ctx_gk20a *ch_ctx = &c->ch_ctx;
|
||||
struct tsg_gk20a *tsg = NULL;
|
||||
@@ -3280,7 +3281,7 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c,
|
||||
|
||||
args->flags |= NVGPU_ALLOC_OBJ_FLAGS_LOCKBOOST_ZERO;
|
||||
|
||||
if (g->support_pmu)
|
||||
if (g->support_pmu && platform->can_elpg)
|
||||
gk20a_pmu_enable_elpg(g);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user