From e8d51f0c32708ce5b42660bce57bf715227e37d5 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Tue, 26 Jun 2018 13:10:12 +0300 Subject: gpu: nvgpu: remove nvgpu_mem_{begin,end}() The NVGPU_DMA_NO_KERNEL_MAPPING flag is going away, and these functions are no longer used. Delete them. Change-Id: I0084d64c92783dd65306871e5cf6bd6366087caf Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1761581 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'drivers/gpu/nvgpu/include') diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h index 93fce81e..dba7c320 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h +++ b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h @@ -319,14 +319,10 @@ int nvgpu_mem_create_from_mem(struct gk20a *g, void __nvgpu_mem_free_vidmem_alloc(struct gk20a *g, struct nvgpu_mem *vidmem); /* - * Buffer accessors - wrap between begin() and end() if there is no permanent - * kernel mapping for this buffer. + * Buffer accessors. Sysmem buffers always have a CPU mapping and vidmem + * buffers are accessed via PRAMIN. */ -int nvgpu_mem_begin(struct gk20a *g, struct nvgpu_mem *mem); -/* nop for null mem, like with free() or vunmap() */ -void nvgpu_mem_end(struct gk20a *g, struct nvgpu_mem *mem); - /* word-indexed offset */ u32 nvgpu_mem_rd32(struct gk20a *g, struct nvgpu_mem *mem, u32 w); /* byte offset (32b-aligned) */ -- cgit v1.2.2