diff options
| author | Shridhar Rasal <srasal@nvidia.com> | 2016-12-20 06:39:24 -0500 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-12-26 12:46:48 -0500 |
| commit | a4ccef286a37ddfcc16b9bb5a11b7fd6bbe3cd10 (patch) | |
| tree | ad161aa114f99490e40b0b8de982d486b239eea3 /include/linux | |
| parent | 42e54e4d131c69c2cc8dbe2e44f1ad2b2b2f6de5 (diff) | |
video: tegra: host: dla: add semaphore support for prefences
- this adds semaphore/memsignal support in prefences
- while updating task descriptor, does pinning of UMD semaphore
handle and received dma_addr added as preaction
Jira DLA-161
Change-Id: If3695b0cca29d485c04b93a83848d50ad81dd9fd
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/1274302
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nvhost_nvdla_ioctl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/nvhost_nvdla_ioctl.h b/include/linux/nvhost_nvdla_ioctl.h index 5e9d82bd1..e5eef1554 100644 --- a/include/linux/nvhost_nvdla_ioctl.h +++ b/include/linux/nvhost_nvdla_ioctl.h | |||
| @@ -132,9 +132,13 @@ struct nvdla_fence { | |||
| 132 | __u32 type; | 132 | __u32 type; |
| 133 | #define NVDLA_FENCE_TYPE_SYNCPT 0 | 133 | #define NVDLA_FENCE_TYPE_SYNCPT 0 |
| 134 | #define NVDLA_FENCE_TYPE_SYNC_FD 1 | 134 | #define NVDLA_FENCE_TYPE_SYNC_FD 1 |
| 135 | #define NVDLA_FENCE_TYPE_SEMAPHORE 2 | ||
| 135 | __u32 syncpoint_index; | 136 | __u32 syncpoint_index; |
| 136 | __u32 syncpoint_value; | 137 | __u32 syncpoint_value; |
| 137 | __u32 sync_fd; | 138 | __u32 sync_fd; |
| 139 | __u32 sem_handle; | ||
| 140 | __u32 sem_offset; | ||
| 141 | __u32 sem_val; | ||
| 138 | }; | 142 | }; |
| 139 | 143 | ||
| 140 | #define NVHOST_NVDLA_IOCTL_MAGIC 'D' | 144 | #define NVHOST_NVDLA_IOCTL_MAGIC 'D' |
