summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-04-17 17:16:00 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-11 09:04:18 -0400
commit44dcc5a53fabc68a32f16a1a3a46a2582b5b192b (patch)
tree2fc96c30769f6d1b7f43491f8cd1775a4107af0b /drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
parent4b990224df5ab7bc2fc92a66ba8e5d9bba023ca8 (diff)
gpu: nvgpu: Separate GMMU out of mm_gk20a.c
t19x version of same named patch in nvgpu. JIRA NVGPU-12 JIRA NVGPU-30 Change-Id: I0b176577c0edcdcc587f22a6908045a960f830e2 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1464111 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/subctx_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/subctx_gv11b.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
index dcf69adf..6aa58337 100644
--- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c
@@ -22,6 +22,7 @@
22 22
23#include <nvgpu/dma.h> 23#include <nvgpu/dma.h>
24#include <nvgpu/log.h> 24#include <nvgpu/log.h>
25#include <nvgpu/gmmu.h>
25 26
26#include <nvgpu/hw/gv11b/hw_ram_gv11b.h> 27#include <nvgpu/hw/gv11b/hw_ram_gv11b.h>
27#include <nvgpu/hw/gv11b/hw_ctxsw_prog_gv11b.h> 28#include <nvgpu/hw/gv11b/hw_ctxsw_prog_gv11b.h>
@@ -38,8 +39,7 @@ void gv11b_free_subctx_header(struct channel_gk20a *c)
38 gk20a_dbg_fn(""); 39 gk20a_dbg_fn("");
39 40
40 if (ctx->mem.gpu_va) { 41 if (ctx->mem.gpu_va) {
41 gk20a_gmmu_unmap(c->vm, ctx->mem.gpu_va, 42 nvgpu_gmmu_unmap(c->vm, &ctx->mem, ctx->mem.gpu_va);
42 ctx->mem.size, gk20a_mem_flag_none);
43 43
44 nvgpu_dma_free(g, &ctx->mem); 44 nvgpu_dma_free(g, &ctx->mem);
45 } 45 }
@@ -63,8 +63,8 @@ int gv11b_alloc_subctx_header(struct channel_gk20a *c)
63 nvgpu_err(g, "failed to allocate sub ctx header"); 63 nvgpu_err(g, "failed to allocate sub ctx header");
64 return ret; 64 return ret;
65 } 65 }
66 ctx->mem.gpu_va = gk20a_gmmu_map(c->vm, 66 ctx->mem.gpu_va = nvgpu_gmmu_map(c->vm,
67 &ctx->mem.priv.sgt, 67 &ctx->mem,
68 ctx->mem.size, 68 ctx->mem.size,
69 NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, 69 NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE,
70 gk20a_mem_flag_none, true, 70 gk20a_mem_flag_none, true,