accel/ivpu: Improve stability of ivpu_submit_ioctl()
authorJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Mon, 22 Jan 2024 12:09:44 +0000 (13:09 +0100)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Thu, 25 Jan 2024 09:17:07 +0000 (10:17 +0100)
commit264b271d12d0af794f3d1dc3793e6589fae8c66c
tree1b05d38d126db449fe12b23bda518b1d3bf3d456
parentf1cc6aceecd04964304786530eaa4ad87d90b972
accel/ivpu: Improve stability of ivpu_submit_ioctl()

- Wake up the device as late as possible
- Remove job reference counting in order to simplify the code
- Don't put jobs that are not fully submitted on submitted_jobs_xa in
  order to avoid potential races with reset/recovery

Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Wachowski, Karol <karol.wachowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240122120945.1150728-3-jacek.lawrynowicz@linux.intel.com
drivers/accel/ivpu/ivpu_job.c
drivers/accel/ivpu/ivpu_job.h