diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-03-21 18:34:50 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-06 21:15:04 -0400 |
commit | 50667e097b2be567e3d2f95e23b046243bca2bf6 (patch) | |
tree | e8fc42261868c6d69844f2e92fce33f6169434d4 /drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |
parent | 8f2d4a3f4a0acc81bae6725d30506e92651a42b5 (diff) |
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 <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1325548
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
400 | { | 400 | { |
401 | struct gk20a_fecs_trace *trace = g->fecs_trace; | 401 | struct gk20a_fecs_trace *trace = g->fecs_trace; |
402 | 402 | ||
403 | return gk20a_gmmu_alloc_sys(g, GK20A_FECS_TRACE_NUM_RECORDS | 403 | return nvgpu_dma_alloc_sys(g, GK20A_FECS_TRACE_NUM_RECORDS |
404 | * ctxsw_prog_record_timestamp_record_size_in_bytes_v(), | 404 | * ctxsw_prog_record_timestamp_record_size_in_bytes_v(), |
405 | &trace->trace_buf); | 405 | &trace->trace_buf); |
406 | } | 406 | } |
@@ -409,7 +409,7 @@ static void gk20a_fecs_trace_free_ring(struct gk20a *g) | |||
409 | { | 409 | { |
410 | struct gk20a_fecs_trace *trace = g->fecs_trace; | 410 | struct gk20a_fecs_trace *trace = g->fecs_trace; |
411 | 411 | ||
412 | gk20a_gmmu_free(g, &trace->trace_buf); | 412 | nvgpu_dma_free(g, &trace->trace_buf); |
413 | } | 413 | } |
414 | 414 | ||
415 | #ifdef CONFIG_DEBUG_FS | 415 | #ifdef CONFIG_DEBUG_FS |