From 75beb4db9b420bbc287d27911151086e448bc177 Mon Sep 17 00:00:00 2001 From: Anup Mahindre Date: Thu, 17 Jun 2021 11:41:08 +0530 Subject: nvdla: kmd: Expose full set of limits for task parameters - Certain task parameter limits were not exposed to UMD / Users - Expose these limits and rename to provide consistent KMD interface across linux / qnx Jira DLA-4467 JIRA DLA-4908 Bug 3352716 Change-Id: Ibcf1de5f4d442d9b1f3fefaf71195bc6e58fff5c Signed-off-by: Anup Mahindre Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2558254 (cherry picked from commit ccb23fdbb6da2908893cfebcdcd0d219f9b255e0) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2572193 Tested-by: Bharat Nihalani Tested-by: mobile promotions Reviewed-by: Bharat Nihalani Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit --- include/uapi/linux/nvhost_nvdla_ioctl.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/uapi/linux/nvhost_nvdla_ioctl.h b/include/uapi/linux/nvhost_nvdla_ioctl.h index 447be9cc0..8ef536de5 100644 --- a/include/uapi/linux/nvhost_nvdla_ioctl.h +++ b/include/uapi/linux/nvhost_nvdla_ioctl.h @@ -28,6 +28,17 @@ #define __user #endif +/** + * Limits exposed to userspace + */ +#define MAX_NVDLA_PREFENCES_PER_TASK 32 +#define MAX_NVDLA_POSTFENCES_PER_TASK 32 +#define MAX_NVDLA_EMU_PREFENCES_PER_TASK 16 +#define MAX_NVDLA_EMU_POSTFENCES_PER_TASK 16 +#define MAX_NVDLA_IN_STATUS_PER_TASK MAX_NVDLA_PREFENCES_PER_TASK +#define MAX_NVDLA_OUT_STATUS_PER_TASK MAX_NVDLA_POSTFENCES_PER_TASK +#define MAX_NVDLA_OUT_TIMESTAMPS_PER_TASK 32 + /** * struct nvdla_queue_stat_args strcture * @@ -94,7 +105,7 @@ struct nvdla_pin_unpin_args { struct nvdla_submit_args { __u64 tasks; __u16 num_tasks; -#define MAX_TASKS_PER_SUBMIT 16 +#define MAX_NVDLA_TASKS_PER_SUBMIT 16 #define NVDLA_SUBMIT_FLAGS_ATOMIC (1 << 0) #define NVDLA_SUBMIT_FLAGS_BYPASS_EXEC (1 << 1) __u16 flags; -- cgit v1.2.2