diff options
| author | Krishna Reddy <vdumpa@nvidia.com> | 2016-03-31 18:07:16 -0400 |
|---|---|---|
| committer | Krishna Reddy <vdumpa@nvidia.com> | 2016-04-06 19:26:47 -0400 |
| commit | 1903898433cc9ffdad09eb304a78d7a602f410ed (patch) | |
| tree | 468f6e37d78e888c1738c62463474d81df1e9854 /include/linux/nvmap.h | |
| parent | b42ab9f0bfea31a60bf52373afb829fd76b01c96 (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/nvmap.h')
| -rw-r--r-- | include/linux/nvmap.h | 8 |
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 | ||
| 145 | struct 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 | |||
| 145 | struct nvmap_alloc_handle { | 151 | struct 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) |
