[PATCH v5 6/7] accel/ivpu: Add command buffer submission logic

Jeffrey Hugo quic_jhugo at quicinc.com
Thu Jan 12 18:32:22 UTC 2023


On 1/9/2023 5:23 AM, Jacek Lawrynowicz wrote:
> Each of the user contexts has two command queues, one for compute engine
> and one for the copy engine. Command queues are allocated and registered
> in the device when the first job (command buffer) is submitted from
> the user space to the VPU device. The userspace provides a list of
> GEM buffer object handles to submit to the VPU, the driver resolves
> buffer handles, pins physical memory if needed, increments ref count
> for each buffer and stores pointers to buffer objects in
> the ivpu_job objects that track jobs submitted to the device.
> The VPU signals job completion with an asynchronous message that
> contains the job id passed to firmware when the job was submitted.
> 
> Currently, the driver supports simple scheduling logic
> where jobs submitted from user space are immediately pushed
> to the VPU device command queues. In the future, it will be
> extended to use hardware base scheduling and/or drm_sched.
> 
> Co-developed-by: Andrzej Kacprowski <andrzej.kacprowski at linux.intel.com>
> Signed-off-by: Andrzej Kacprowski <andrzej.kacprowski at linux.intel.com>
> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz at linux.intel.com>

Reviewed-by: Jeffrey Hugo <quic_jhugo at quicinc.com>


More information about the dri-devel mailing list