accel/ivpu: Use whole user and shave ranges for preemption buffers
authorKarol Wachowski <karol.wachowski@intel.com>
Mon, 30 Sep 2024 19:53:17 +0000 (21:53 +0200)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Fri, 11 Oct 2024 10:44:39 +0000 (12:44 +0200)
commit755fb86789165dca776e69631a4ed332f0341e29
tree86f1f3e794e4288134fa8e786711e19fb67d8ee3
parent08eb99ce911d3ea202f79b42b96cd6e8498f7f69
accel/ivpu: Use whole user and shave ranges for preemption buffers

Do not restrict range for preemption buffers allocation just to the end
of user and shave ranges, use them whole instead to avoid situation
where end of range might be already allocated causing preemption buffers
allocation to fail.

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>
Link: https://patchwork.freedesktop.org/patch/msgid/20240930195322.461209-27-jacek.lawrynowicz@linux.intel.com
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
drivers/accel/ivpu/ivpu_job.c