summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArvind M <am@nvidia.com>2020-08-25 07:34:27 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2021-01-05 05:26:12 -0500
commite8530a7c63dfb4a46eec51295b17fba60de8f5c7 (patch)
treeb527f516c6f8b002b789b8943e1840b338cd05d1 /include
parenta47b24973e9d7c5dcb75cd4ded39dd109274b791 (diff)
nvdla: kmd: handle {RELEASE,ALLOC}_QUEUE ioctls
[1] This commit separates the allocation and deallocation of mission critical resources away from open() and close() [2] It is achieved through introduction of NVDLA_IOCTL_{ALLOC,RELEASE} IOCTLs. [3] nvdla_buffer_* APIs introduced to facilitate easier split. Jira DLA-4175 Bug 3200422 Bug 200628173 Change-Id: I3fb07ecaff69c62ec5eb9e5bea39b07ae1624240 Signed-off-by: Arvind M <am@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2403689 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2412585 GVS: Gerrit_Virtual_Submit Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Mitch Harwell <mharwell@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nvhost_nvdla_ioctl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/uapi/linux/nvhost_nvdla_ioctl.h b/include/uapi/linux/nvhost_nvdla_ioctl.h
index 3bb1a8183..b203fda63 100644
--- a/include/uapi/linux/nvhost_nvdla_ioctl.h
+++ b/include/uapi/linux/nvhost_nvdla_ioctl.h
@@ -254,8 +254,12 @@ struct nvdla_status_notify {
254 _IOWR(NVHOST_NVDLA_IOCTL_MAGIC, 7, struct nvdla_get_q_status_args) 254 _IOWR(NVHOST_NVDLA_IOCTL_MAGIC, 7, struct nvdla_get_q_status_args)
255#define NVDLA_IOCTL_EMU_TASK_SUBMIT \ 255#define NVDLA_IOCTL_EMU_TASK_SUBMIT \
256 _IOWR(NVHOST_NVDLA_IOCTL_MAGIC, 8, struct nvdla_submit_args) 256 _IOWR(NVHOST_NVDLA_IOCTL_MAGIC, 8, struct nvdla_submit_args)
257#define NVDLA_IOCTL_ALLOC_QUEUE \
258 _IO(NVHOST_NVDLA_IOCTL_MAGIC, 9)
259#define NVDLA_IOCTL_RELEASE_QUEUE \
260 _IO(NVHOST_NVDLA_IOCTL_MAGIC, 10)
257#define NVDLA_IOCTL_LAST \ 261#define NVDLA_IOCTL_LAST \
258 _IOC_NR(NVDLA_IOCTL_EMU_TASK_SUBMIT) 262 _IOC_NR(NVDLA_IOCTL_RELEASE_QUEUE)
259 263
260#define NVDLA_IOCTL_MAX_ARG_SIZE \ 264#define NVDLA_IOCTL_MAX_ARG_SIZE \
261 sizeof(struct nvdla_pin_unpin_args) 265 sizeof(struct nvdla_pin_unpin_args)