From c53b94f1dd45384c2234e8c3f712df10395d0601 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Tue, 10 Oct 2017 12:13:25 -0700 Subject: gpu: nvgpu: Remove phys_addr_t from common code Remove phys_addr_t from common code and replace it with u64. This faciliates QNX compiling the common code since phys_addr_t is a Linux specific type. JIRA NVGPU-30 JIRA NVGPU-226 Change-Id: I15fe2078f9cd0b07c7e90ad6e359c493afa56714 Signed-off-by: Alex Waterman Reviewed-on: https://git-master.nvidia.com/r/1576432 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 7029e0e0..3a8fea45 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h @@ -344,21 +344,6 @@ bool gk20a_mm_mmu_debug_mode_enabled(struct gk20a *g); int gk20a_mm_mmu_vpr_info_fetch(struct gk20a *g); -static inline phys_addr_t gk20a_mem_phys(struct nvgpu_mem *mem) -{ - /* FIXME: the sgt/sgl may get null if this is accessed e.g. in an isr - * during channel deletion - attempt to fix at least null derefs */ - struct sg_table *sgt = mem->priv.sgt; - - if (sgt) { - struct scatterlist *sgl = sgt->sgl; - if (sgl) - return sg_phys(sgl); - } - - return 0; -} - u64 gk20a_locked_gmmu_map(struct vm_gk20a *vm, u64 map_offset, struct nvgpu_sgt *sgt, -- cgit v1.2.2