From 63714e7cc158d0574947c2171a81988ffece2a2a Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 23 Jun 2015 15:28:00 -0700 Subject: gpu: nvgpu: Implement priv pages Implement support for privileged pages. Use them for kernel allocated buffers. Change-Id: I720fc441008077b8e2ed218a7a685b8aab2258f0 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/761919 --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 ee99c821..3af35b26 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h @@ -221,7 +221,7 @@ struct gk20a_mmu_level { u64 *iova, u32 kind_v, u32 *ctag, bool cacheable, bool unmapped_pte, - int rw_flag, bool sparse, u32 flags); + int rw_flag, bool sparse, bool priv); size_t entry_size; }; @@ -441,7 +441,8 @@ u64 gk20a_gmmu_map(struct vm_gk20a *vm, struct sg_table **sgt, u64 size, u32 flags, - int rw_flag); + int rw_flag, + bool priv); int gk20a_gmmu_alloc_map(struct vm_gk20a *vm, size_t size, @@ -498,6 +499,7 @@ u64 gk20a_locked_gmmu_map(struct vm_gk20a *vm, int rw_flag, bool clear_ctags, bool sparse, + bool priv, struct vm_gk20a_mapping_batch *batch); void gk20a_gmmu_unmap(struct vm_gk20a *vm, -- cgit v1.2.2