summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/pstate
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2017-10-23 18:52:00 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-06 16:40:59 -0500
commit13093eff52d0ef9071bb09cade01ea064c99468d (patch)
tree3fb71377826a4280fbfdee74957fbae06417bcf9 /drivers/gpu/nvgpu/pstate
parent8bdce5337ee5f4d1e1f6d4c7b2dc0abe4a532893 (diff)
gpu: nvgpu: add g cross reference in boardobjgrp
Added a pointer to GPU context in boardobjgrp, and updated constructors. It will be useful to free allocated DMA resources. JIRA EVLR-1959 Bug 200352099 Change-Id: I006e4f970c9a2525dabdfd6ad417be64e36b7b68 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1586551 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pstate')
-rw-r--r--drivers/gpu/nvgpu/pstate/pstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/pstate/pstate.c b/drivers/gpu/nvgpu/pstate/pstate.c
index 937756d3..e164cc83 100644
--- a/drivers/gpu/nvgpu/pstate/pstate.c
+++ b/drivers/gpu/nvgpu/pstate/pstate.c
@@ -363,7 +363,7 @@ static int pstate_sw_setup(struct gk20a *g)
363 if (err) 363 if (err)
364 return err; 364 return err;
365 365
366 err = boardobjgrpconstruct_e32(&g->perf_pmu.pstatesobjs.super); 366 err = boardobjgrpconstruct_e32(g, &g->perf_pmu.pstatesobjs.super);
367 if (err) { 367 if (err) {
368 nvgpu_err(g, 368 nvgpu_err(g,
369 "error creating boardobjgrp for pstates, err=%d", 369 "error creating boardobjgrp for pstates, err=%d",