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/boardobj/boardobjgrp.h | |
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/boardobj/boardobjgrp.h')
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobjgrp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/boardobj/boardobjgrp.h b/drivers/gpu/nvgpu/boardobj/boardobjgrp.h index c7840e02..14d7c1bb 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobjgrp.h +++ b/drivers/gpu/nvgpu/boardobj/boardobjgrp.h | |||
@@ -153,7 +153,8 @@ typedef u32 boardobjgrp_pmucmd_construct(struct gk20a *g, | |||
153 | /* | 153 | /* |
154 | * Destroys BOARDOBJGRP PMU SW state. CMD. | 154 | * Destroys BOARDOBJGRP PMU SW state. CMD. |
155 | */ | 155 | */ |
156 | typedef u32 boardobjgrp_pmucmd_destroy(struct boardobjgrp_pmu_cmd *cmd); | 156 | typedef u32 boardobjgrp_pmucmd_destroy(struct gk20a *g, |
157 | struct boardobjgrp_pmu_cmd *cmd); | ||
157 | 158 | ||
158 | /* | 159 | /* |
159 | * init handler for the BOARDOBJGRP PMU CMD. Allocates and maps the | 160 | * init handler for the BOARDOBJGRP PMU CMD. Allocates and maps the |
@@ -171,6 +172,7 @@ typedef u32 boardobjgrp_pmucmd_pmuinithandle(struct gk20a *g, | |||
171 | * device group or device-type. | 172 | * device group or device-type. |
172 | */ | 173 | */ |
173 | struct boardobjgrp { | 174 | struct boardobjgrp { |
175 | struct gk20a *g; | ||
174 | u32 objmask; | 176 | u32 objmask; |
175 | bool bconstructed; | 177 | bool bconstructed; |
176 | u8 type; | 178 | u8 type; |
@@ -336,7 +338,7 @@ do { \ | |||
336 | 338 | ||
337 | /* ------------------------ Function Prototypes ----------------------------- */ | 339 | /* ------------------------ Function Prototypes ----------------------------- */ |
338 | /* Constructor and destructor */ | 340 | /* Constructor and destructor */ |
339 | u32 boardobjgrp_construct_super(struct boardobjgrp *pboardobjgrp); | 341 | u32 boardobjgrp_construct_super(struct gk20a *g, struct boardobjgrp *pboardobjgrp); |
340 | boardobjgrp_destruct boardobjgrp_destruct_impl; | 342 | boardobjgrp_destruct boardobjgrp_destruct_impl; |
341 | boardobjgrp_destruct boardobjgrp_destruct_super; | 343 | boardobjgrp_destruct boardobjgrp_destruct_super; |
342 | 344 | ||