diff options
author | Karol Wachowski <karol.wachowski@intel.com> | 2024-10-17 16:58:13 +0200 |
---|---|---|
committer | Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> | 2024-10-30 10:22:08 +0100 |
commit | 76ad741ec7349bb1112f3a0ff27adf1ca75cf025 (patch) | |
tree | 88745c392a5657237017912539affc4a4010ede7 /drivers/accel/ivpu/ivpu_job.h | |
parent | accel/ivpu: Use xa_alloc_cyclic() instead of custom function (diff) | |
download | linux-76ad741ec7349bb1112f3a0ff27adf1ca75cf025.tar.xz linux-76ad741ec7349bb1112f3a0ff27adf1ca75cf025.zip |
accel/ivpu: Make command queue ID allocated on XArray
Use XArray for dynamic command queue ID allocations instead of fixed
ones. This is required by upcoming changes to UAPI that will allow to
manage command queues by user space instead of having predefined number
of queues in a context.
Signed-off-by: Karol Wachowski <karol.wachowski@intel.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241017145817.121590-8-jacek.lawrynowicz@linux.intel.com
Diffstat (limited to 'drivers/accel/ivpu/ivpu_job.h')
-rw-r--r-- | drivers/accel/ivpu/ivpu_job.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/accel/ivpu/ivpu_job.h b/drivers/accel/ivpu/ivpu_job.h index 6accb94028c7..8b19e3f8b4cf 100644 --- a/drivers/accel/ivpu/ivpu_job.h +++ b/drivers/accel/ivpu/ivpu_job.h @@ -28,8 +28,10 @@ struct ivpu_cmdq { struct ivpu_bo *secondary_preempt_buf; struct ivpu_bo *mem; u32 entry_count; + u32 id; u32 db_id; bool db_registered; + u8 priority; }; /** |