From 50667e097b2be567e3d2f95e23b046243bca2bf6 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Tue, 21 Mar 2017 15:34:50 -0700 Subject: gpu: nvgpu: Rename nvgpu DMA APIs Rename the nvgpu DMA APIs from gk20a_gmmu_alloc* to nvgpu_dma_alloc*. This better reflects the purpose of the APIs (to allocate DMA suitable memory) and avoids confusion with GMMU related code. JIRA NVGPU-12 Change-Id: I673d607db56dd6e44f02008dc7b5293209ef67bf Signed-off-by: Alex Waterman Reviewed-on: http://git-master/r/1325548 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c index 738e8c1c..e5910e7f 100644 --- a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c @@ -143,7 +143,7 @@ static int css_hw_enable_snapshot(struct channel_gk20a *ch, if (snapshot_size < CSS_MIN_HW_SNAPSHOT_SIZE) snapshot_size = CSS_MIN_HW_SNAPSHOT_SIZE; - ret = gk20a_gmmu_alloc_map_sys(&g->mm.pmu.vm, snapshot_size, + ret = nvgpu_dma_alloc_map_sys(&g->mm.pmu.vm, snapshot_size, &data->hw_memdesc); if (ret) return ret; @@ -192,7 +192,7 @@ static int css_hw_enable_snapshot(struct channel_gk20a *ch, failed_allocation: if (data->hw_memdesc.size) { - gk20a_gmmu_unmap_free(&g->mm.pmu.vm, &data->hw_memdesc); + nvgpu_dma_unmap_free(&g->mm.pmu.vm, &data->hw_memdesc); memset(&data->hw_memdesc, 0, sizeof(data->hw_memdesc)); } data->hw_snapshot = NULL; @@ -220,7 +220,7 @@ static void css_hw_disable_snapshot(struct gr_gk20a *gr) perf_pmasys_mem_block_valid_false_f() | perf_pmasys_mem_block_target_f(0)); - gk20a_gmmu_unmap_free(&g->mm.pmu.vm, &data->hw_memdesc); + nvgpu_dma_unmap_free(&g->mm.pmu.vm, &data->hw_memdesc); memset(&data->hw_memdesc, 0, sizeof(data->hw_memdesc)); data->hw_snapshot = NULL; -- cgit v1.2.2