diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2017-10-23 18:52:00 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-06 16:40:59 -0500 |
commit | 13093eff52d0ef9071bb09cade01ea064c99468d (patch) | |
tree | 3fb71377826a4280fbfdee74957fbae06417bcf9 /drivers/gpu/nvgpu/pmgr/pwrmonitor.c | |
parent | 8bdce5337ee5f4d1e1f6d4c7b2dc0abe4a532893 (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/pmgr/pwrmonitor.c')
-rw-r--r-- | drivers/gpu/nvgpu/pmgr/pwrmonitor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/pmgr/pwrmonitor.c b/drivers/gpu/nvgpu/pmgr/pwrmonitor.c index 211766eb..00c930a6 100644 --- a/drivers/gpu/nvgpu/pmgr/pwrmonitor.c +++ b/drivers/gpu/nvgpu/pmgr/pwrmonitor.c | |||
@@ -305,8 +305,8 @@ u32 pmgr_monitor_sw_setup(struct gk20a *g) | |||
305 | u8 indx = 0; | 305 | u8 indx = 0; |
306 | 306 | ||
307 | /* Construct the Super Class and override the Interfaces */ | 307 | /* Construct the Super Class and override the Interfaces */ |
308 | status = boardobjgrpconstruct_e32( | 308 | status = boardobjgrpconstruct_e32(g, |
309 | &g->pmgr_pmu.pmgr_monitorobjs.pwr_channels); | 309 | &g->pmgr_pmu.pmgr_monitorobjs.pwr_channels); |
310 | if (status) { | 310 | if (status) { |
311 | nvgpu_err(g, | 311 | nvgpu_err(g, |
312 | "error creating boardobjgrp for pmgr channel, status - 0x%x", | 312 | "error creating boardobjgrp for pmgr channel, status - 0x%x", |
@@ -320,7 +320,7 @@ u32 pmgr_monitor_sw_setup(struct gk20a *g) | |||
320 | pboardobjgrp->pmudatainstget = _pwr_channel_pmudata_instget; | 320 | pboardobjgrp->pmudatainstget = _pwr_channel_pmudata_instget; |
321 | 321 | ||
322 | /* Construct the Super Class and override the Interfaces */ | 322 | /* Construct the Super Class and override the Interfaces */ |
323 | status = boardobjgrpconstruct_e32( | 323 | status = boardobjgrpconstruct_e32(g, |
324 | &g->pmgr_pmu.pmgr_monitorobjs.pwr_ch_rels); | 324 | &g->pmgr_pmu.pmgr_monitorobjs.pwr_ch_rels); |
325 | if (status) { | 325 | if (status) { |
326 | nvgpu_err(g, | 326 | nvgpu_err(g, |