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

Change-Id: Ibcf1de5f4d442d9b1f3fefaf71195bc6e58fff5c
Signed-off-by: Anup Mahindre <amahindre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2546453
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2558254
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Anup Mahindre
2021-06-17 11:41:08 +05:30
committed by Laxman Dewangan
parent 584f8bd83d
commit 911977d5dd
4 changed files with 60 additions and 59 deletions

View File

@@ -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;