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/fecs_trace_gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index d8fa7505..96b94ea7 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c @@ -400,7 +400,7 @@ static int gk20a_fecs_trace_alloc_ring(struct gk20a *g) { struct gk20a_fecs_trace *trace = g->fecs_trace; - return gk20a_gmmu_alloc_sys(g, GK20A_FECS_TRACE_NUM_RECORDS + return nvgpu_dma_alloc_sys(g, GK20A_FECS_TRACE_NUM_RECORDS * ctxsw_prog_record_timestamp_record_size_in_bytes_v(), &trace->trace_buf); } @@ -409,7 +409,7 @@ static void gk20a_fecs_trace_free_ring(struct gk20a *g) { struct gk20a_fecs_trace *trace = g->fecs_trace; - gk20a_gmmu_free(g, &trace->trace_buf); + nvgpu_dma_free(g, &trace->trace_buf); } #ifdef CONFIG_DEBUG_FS -- cgit v1.2.2