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_e32.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/boardobj/boardobjgrp_e32.c')
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.c b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.c index 0a34d563..53380e95 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.c +++ b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e32.c | |||
@@ -28,7 +28,8 @@ | |||
28 | #include "boardobjgrpmask.h" | 28 | #include "boardobjgrpmask.h" |
29 | 29 | ||
30 | 30 | ||
31 | u32 boardobjgrpconstruct_e32(struct boardobjgrp_e32 *pboardobjgrp_e32) | 31 | u32 boardobjgrpconstruct_e32(struct gk20a *g, |
32 | struct boardobjgrp_e32 *pboardobjgrp_e32) | ||
32 | { | 33 | { |
33 | u32 status; | 34 | u32 status; |
34 | u8 objslots; | 35 | u8 objslots; |
@@ -45,7 +46,7 @@ u32 boardobjgrpconstruct_e32(struct boardobjgrp_e32 *pboardobjgrp_e32) | |||
45 | pboardobjgrp_e32->super.objslots = objslots; | 46 | pboardobjgrp_e32->super.objslots = objslots; |
46 | pboardobjgrp_e32->super.mask = &(pboardobjgrp_e32->mask.super); | 47 | pboardobjgrp_e32->super.mask = &(pboardobjgrp_e32->mask.super); |
47 | 48 | ||
48 | status = boardobjgrp_construct_super(&pboardobjgrp_e32->super); | 49 | status = boardobjgrp_construct_super(g, &pboardobjgrp_e32->super); |
49 | if (status) | 50 | if (status) |
50 | goto boardobjgrpconstruct_e32_exit; | 51 | goto boardobjgrpconstruct_e32_exit; |
51 | 52 | ||