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_e255.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_e255.c')
-rw-r--r-- | drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.c b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.c index 787f205b..a6223e9a 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.c +++ b/drivers/gpu/nvgpu/boardobj/boardobjgrp_e255.c | |||
@@ -27,7 +27,8 @@ | |||
27 | #include "boardobjgrp.h" | 27 | #include "boardobjgrp.h" |
28 | #include "boardobjgrpmask.h" | 28 | #include "boardobjgrpmask.h" |
29 | 29 | ||
30 | u32 boardobjgrpconstruct_e255(struct boardobjgrp_e255 *pboardobjgrp_e255) | 30 | u32 boardobjgrpconstruct_e255(struct gk20a *g, |
31 | struct boardobjgrp_e255 *pboardobjgrp_e255) | ||
31 | { | 32 | { |
32 | u32 status = 0; | 33 | u32 status = 0; |
33 | u8 objslots; | 34 | u8 objslots; |
@@ -44,7 +45,7 @@ u32 boardobjgrpconstruct_e255(struct boardobjgrp_e255 *pboardobjgrp_e255) | |||
44 | pboardobjgrp_e255->super.objslots = objslots; | 45 | pboardobjgrp_e255->super.objslots = objslots; |
45 | pboardobjgrp_e255->super.mask = &(pboardobjgrp_e255->mask.super); | 46 | pboardobjgrp_e255->super.mask = &(pboardobjgrp_e255->mask.super); |
46 | 47 | ||
47 | status = boardobjgrp_construct_super(&pboardobjgrp_e255->super); | 48 | status = boardobjgrp_construct_super(g, &pboardobjgrp_e255->super); |
48 | if (status) | 49 | if (status) |
49 | goto boardobjgrpconstruct_e255_exit; | 50 | goto boardobjgrpconstruct_e255_exit; |
50 | 51 | ||