Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

accel/ivpu: Remove skip of dma unmap for imported buffers

Rework of imported buffers introduced in the commit
e0c0891cd63b ("accel/ivpu: Rework bind/unbind of imported buffers")
switched the logic of imported buffers by dma mapping/unmapping
them just as the regular buffers.

The commit didn't include removal of skipping dma unmap of imported
buffers which results in them being mapped without unmapping.

Fixes: e0c0891cd63b ("accel/ivpu: Rework bind/unbind of imported buffers")
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Reviewed-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Signed-off-by: Maciej Falkowski <maciej.falkowski@linux.intel.com>
Link: https://patch.msgid.link/20251027150933.2384538-1-maciej.falkowski@linux.intel.com

-3
-3
drivers/accel/ivpu/ivpu_gem.c
··· 158 158 bo->ctx = NULL; 159 159 } 160 160 161 - if (drm_gem_is_imported(&bo->base.base)) 162 - return; 163 - 164 161 if (bo->base.sgt) { 165 162 if (bo->base.base.import_attach) { 166 163 dma_buf_unmap_attachment(bo->base.base.import_attach,