From 9f22ad4687068089696bf61e5e900361e2b62502 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Fri, 20 Mar 2015 13:34:59 +0530 Subject: gpu: nvgpu: add get_iova_addr() for gp10b Add platform specific gp10b_mm_iova_addr() to get iova/phys address for gp10b If SMMU is not enabled and IO coherence flag is set, set 34th bit in the physical address and return the physical address If SMMU is enabled, return the iova address Bug 1605653 Change-Id: I5c91a8c8d85d8a8e422406e3c91fc1dda3cb0870 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/713106 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gp10b/mm_gp10b.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gpu/nvgpu/gp10b/mm_gp10b.h') diff --git a/drivers/gpu/nvgpu/gp10b/mm_gp10b.h b/drivers/gpu/nvgpu/gp10b/mm_gp10b.h index 38ca93a4..034944e0 100644 --- a/drivers/gpu/nvgpu/gp10b/mm_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/mm_gp10b.h @@ -13,6 +13,9 @@ #ifndef MM_GP10B_H #define MM_GP10B_H + +#define NVGPU_MM_GET_IO_COHERENCE_BIT 35 + struct gpu_ops; void gp10b_init_mm(struct gpu_ops *gops); -- cgit v1.2.2