From b07a304ba3e747c80fe3e0a16caec88c8e1e8b28 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 10 Jul 2018 09:54:10 -0700 Subject: gpu: nvgpu: Use HAL for calls from MM to FB mm_gv11b.c has several direct calls to fb_gv11b.h. Redirect them to go via a HAL. Also make sure the HALs are using parameter with correct signedness and prefix the parameter constants with NVGPU_FB_MMU_. MMU buffer table indices were also defined in fb_gv11b.h, even though the tables themselves are defined in include/nvgpu/mm.h. Move the indices to include/nvgpu/mm.h and prefix them with NVGPU_MM_MMU_. JIRA NVGPU-714 Change-Id: Ieeae7c5664b8f53f8313cfad0a771d14637caa08 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1776131 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/mm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gpu/nvgpu/include') diff --git a/drivers/gpu/nvgpu/include/nvgpu/mm.h b/drivers/gpu/nvgpu/include/nvgpu/mm.h index b06d0361..033e2548 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/mm.h +++ b/drivers/gpu/nvgpu/include/nvgpu/mm.h @@ -38,6 +38,9 @@ struct vm_gk20a; struct nvgpu_mem; struct nvgpu_pd_cache; +#define NVGPU_MM_MMU_FAULT_TYPE_OTHER_AND_NONREPLAY 0 +#define NVGPU_MM_MMU_FAULT_TYPE_REPLAY 1 + #define FAULT_TYPE_NUM 2 /* replay and nonreplay faults */ struct mmu_fault_info { -- cgit v1.2.2