From 1903898433cc9ffdad09eb304a78d7a602f410ed Mon Sep 17 00:00:00 2001 From: Krishna Reddy Date: Thu, 31 Mar 2016 15:07:16 -0700 Subject: video: tegra: nvmap: allow gup test on nvmap handle Allow gup test on NvMap handle. Bug 1749717 Change-Id: I4a370266635307a55b68de616ca4a0515523ca69 Signed-off-by: Krishna Reddy Reviewed-on: http://git-master/r/1118600 --- include/linux/nvmap.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/linux') diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index 90358a6ad..6bc647493 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h @@ -142,6 +142,12 @@ struct nvmap_create_handle_from_va { __u32 handle; /* returns nvmap handle */ }; +struct nvmap_gup_test { + __u64 va; /* FromVA*/ + __u32 handle; /* returns nvmap handle */ + __u32 result; /* result=1 for pass, result=-err for failure */ +}; + struct nvmap_alloc_handle { __u32 handle; /* nvmap handle */ __u32 heap_mask; /* heaps to allocate from */ @@ -354,6 +360,8 @@ struct nvmap_debugfs_handles_entry { /* Create a new memory handle from VA passed */ #define NVMAP_IOC_FROM_VA _IOWR(NVMAP_IOC_MAGIC, 22, struct nvmap_create_handle_from_va) +#define NVMAP_IOC_GUP_TEST _IOWR(NVMAP_IOC_MAGIC, 23, struct nvmap_gup_test) + /* START of T124 IOCTLS */ /* Actually allocates memory for the specified handle, with kind */ #define NVMAP_IOC_ALLOC_KIND _IOW(NVMAP_IOC_MAGIC, 100, struct nvmap_alloc_kind_handle) -- cgit v1.2.2