summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2016-03-31 18:07:16 -0400
committerKrishna Reddy <vdumpa@nvidia.com>2016-04-06 19:26:47 -0400
commit1903898433cc9ffdad09eb304a78d7a602f410ed (patch)
tree468f6e37d78e888c1738c62463474d81df1e9854 /include/linux
parentb42ab9f0bfea31a60bf52373afb829fd76b01c96 (diff)
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 <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/1118600
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvmap.h8
1 files changed, 8 insertions, 0 deletions
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 {
142 __u32 handle; /* returns nvmap handle */ 142 __u32 handle; /* returns nvmap handle */
143}; 143};
144 144
145struct nvmap_gup_test {
146 __u64 va; /* FromVA*/
147 __u32 handle; /* returns nvmap handle */
148 __u32 result; /* result=1 for pass, result=-err for failure */
149};
150
145struct nvmap_alloc_handle { 151struct nvmap_alloc_handle {
146 __u32 handle; /* nvmap handle */ 152 __u32 handle; /* nvmap handle */
147 __u32 heap_mask; /* heaps to allocate from */ 153 __u32 heap_mask; /* heaps to allocate from */
@@ -354,6 +360,8 @@ struct nvmap_debugfs_handles_entry {
354/* Create a new memory handle from VA passed */ 360/* Create a new memory handle from VA passed */
355#define NVMAP_IOC_FROM_VA _IOWR(NVMAP_IOC_MAGIC, 22, struct nvmap_create_handle_from_va) 361#define NVMAP_IOC_FROM_VA _IOWR(NVMAP_IOC_MAGIC, 22, struct nvmap_create_handle_from_va)
356 362
363#define NVMAP_IOC_GUP_TEST _IOWR(NVMAP_IOC_MAGIC, 23, struct nvmap_gup_test)
364
357/* START of T124 IOCTLS */ 365/* START of T124 IOCTLS */
358/* Actually allocates memory for the specified handle, with kind */ 366/* Actually allocates memory for the specified handle, with kind */
359#define NVMAP_IOC_ALLOC_KIND _IOW(NVMAP_IOC_MAGIC, 100, struct nvmap_alloc_kind_handle) 367#define NVMAP_IOC_ALLOC_KIND _IOW(NVMAP_IOC_MAGIC, 100, struct nvmap_alloc_kind_handle)