accel/ivpu: Reserve all non-command bo's using DMA_RESV_USAGE_BOOKKEEP
authorStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Thu, 13 Apr 2023 06:38:10 +0000 (08:38 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Tue, 6 Jun 2023 12:43:41 +0000 (14:43 +0200)
commit411360257c1f4fccaa20143098b6d3fcc9d4e4dc
tree840809d4a34ecd20ebb7d4646d0da188bc514079
parent50d30040eb856ff6b0382b4d9dc332dc15597729
accel/ivpu: Reserve all non-command bo's using DMA_RESV_USAGE_BOOKKEEP

Use DMA_RESV_USAGE_BOOKKEEP reservation for buffer objects, except for
command buffers for which we use DMA_RESV_USAGE_WRITE (since VPU can
write to command buffer context save area).

Fixes: 0ec8671837a6 ("accel/ivpu: Fix S3 system suspend when not idle")
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230413063810.3167511-1-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_job.c