From 13093eff52d0ef9071bb09cade01ea064c99468d Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Mon, 23 Oct 2017 15:52:00 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1586551 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/pmgr/pwrpolicy.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'drivers/gpu/nvgpu/pmgr/pwrpolicy.c') diff --git a/drivers/gpu/nvgpu/pmgr/pwrpolicy.c b/drivers/gpu/nvgpu/pmgr/pwrpolicy.c index 5eade2e0..420eda4f 100644 --- a/drivers/gpu/nvgpu/pmgr/pwrpolicy.c +++ b/drivers/gpu/nvgpu/pmgr/pwrpolicy.c @@ -718,8 +718,8 @@ u32 pmgr_policy_sw_setup(struct gk20a *g) u8 indx = 0; /* Construct the Super Class and override the Interfaces */ - status = boardobjgrpconstruct_e32( - &g->pmgr_pmu.pmgr_policyobjs.pwr_policies); + status = boardobjgrpconstruct_e32(g, + &g->pmgr_pmu.pmgr_policyobjs.pwr_policies); if (status) { nvgpu_err(g, "error creating boardobjgrp for pmgr policy, status - 0x%x", @@ -727,8 +727,8 @@ u32 pmgr_policy_sw_setup(struct gk20a *g) goto done; } - status = boardobjgrpconstruct_e32( - &g->pmgr_pmu.pmgr_policyobjs.pwr_policy_rels); + status = boardobjgrpconstruct_e32(g, + &g->pmgr_pmu.pmgr_policyobjs.pwr_policy_rels); if (status) { nvgpu_err(g, "error creating boardobjgrp for pmgr policy rels, status - 0x%x", @@ -736,8 +736,8 @@ u32 pmgr_policy_sw_setup(struct gk20a *g) goto done; } - status = boardobjgrpconstruct_e32( - &g->pmgr_pmu.pmgr_policyobjs.pwr_violations); + status = boardobjgrpconstruct_e32(g, + &g->pmgr_pmu.pmgr_policyobjs.pwr_violations); if (status) { nvgpu_err(g, "error creating boardobjgrp for pmgr violations, status - 0x%x", -- cgit v1.2.2