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/perf/vfe_equ.c | 2 +- drivers/gpu/nvgpu/perf/vfe_var.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/perf') diff --git a/drivers/gpu/nvgpu/perf/vfe_equ.c b/drivers/gpu/nvgpu/perf/vfe_equ.c index c712c0aa..2493061e 100644 --- a/drivers/gpu/nvgpu/perf/vfe_equ.c +++ b/drivers/gpu/nvgpu/perf/vfe_equ.c @@ -79,7 +79,7 @@ u32 vfe_equ_sw_setup(struct gk20a *g) gk20a_dbg_info(""); - status = boardobjgrpconstruct_e255(&g->perf_pmu.vfe_equobjs.super); + status = boardobjgrpconstruct_e255(g, &g->perf_pmu.vfe_equobjs.super); if (status) { nvgpu_err(g, "error creating boardobjgrp for clk domain, status - 0x%x", diff --git a/drivers/gpu/nvgpu/perf/vfe_var.c b/drivers/gpu/nvgpu/perf/vfe_var.c index a8275331..c46747c9 100644 --- a/drivers/gpu/nvgpu/perf/vfe_var.c +++ b/drivers/gpu/nvgpu/perf/vfe_var.c @@ -106,7 +106,7 @@ u32 vfe_var_sw_setup(struct gk20a *g) gk20a_dbg_info(""); - status = boardobjgrpconstruct_e32(&g->perf_pmu.vfe_varobjs.super); + status = boardobjgrpconstruct_e32(g, &g->perf_pmu.vfe_varobjs.super); if (status) { nvgpu_err(g, "error creating boardobjgrp for clk domain, status - 0x%x", -- cgit v1.2.2