diff options
| author | Anup Mahindre <amahindre@nvidia.com> | 2021-06-17 02:11:08 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2021-08-16 23:32:13 -0400 |
| commit | 75beb4db9b420bbc287d27911151086e448bc177 (patch) | |
| tree | 1ec406e25d4c084da24a3990de564931b9873c87 /include | |
| parent | 1d1311156a6ae588060580166db77a4ab23e6115 (diff) | |
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 <amahindre@nvidia.com>
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 <bnihalani@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include')
| -rw-r--r-- | include/uapi/linux/nvhost_nvdla_ioctl.h | 13 |
1 files changed, 12 insertions, 1 deletions
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 | |||
| @@ -29,6 +29,17 @@ | |||
| 29 | #endif | 29 | #endif |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * Limits exposed to userspace | ||
| 33 | */ | ||
| 34 | #define MAX_NVDLA_PREFENCES_PER_TASK 32 | ||
| 35 | #define MAX_NVDLA_POSTFENCES_PER_TASK 32 | ||
| 36 | #define MAX_NVDLA_EMU_PREFENCES_PER_TASK 16 | ||
| 37 | #define MAX_NVDLA_EMU_POSTFENCES_PER_TASK 16 | ||
| 38 | #define MAX_NVDLA_IN_STATUS_PER_TASK MAX_NVDLA_PREFENCES_PER_TASK | ||
| 39 | #define MAX_NVDLA_OUT_STATUS_PER_TASK MAX_NVDLA_POSTFENCES_PER_TASK | ||
| 40 | #define MAX_NVDLA_OUT_TIMESTAMPS_PER_TASK 32 | ||
| 41 | |||
| 42 | /** | ||
| 32 | * struct nvdla_queue_stat_args strcture | 43 | * struct nvdla_queue_stat_args strcture |
| 33 | * | 44 | * |
| 34 | * @status queue status flags | 45 | * @status queue status flags |
| @@ -94,7 +105,7 @@ struct nvdla_pin_unpin_args { | |||
| 94 | struct nvdla_submit_args { | 105 | struct nvdla_submit_args { |
| 95 | __u64 tasks; | 106 | __u64 tasks; |
| 96 | __u16 num_tasks; | 107 | __u16 num_tasks; |
| 97 | #define MAX_TASKS_PER_SUBMIT 16 | 108 | #define MAX_NVDLA_TASKS_PER_SUBMIT 16 |
| 98 | #define NVDLA_SUBMIT_FLAGS_ATOMIC (1 << 0) | 109 | #define NVDLA_SUBMIT_FLAGS_ATOMIC (1 << 0) |
| 99 | #define NVDLA_SUBMIT_FLAGS_BYPASS_EXEC (1 << 1) | 110 | #define NVDLA_SUBMIT_FLAGS_BYPASS_EXEC (1 << 1) |
| 100 | __u16 flags; | 111 | __u16 flags; |
