summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Falkowski <maciej.falkowski@linux.intel.com>2025-10-27 16:09:32 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-18 13:59:28 +0100
commit45a8d2541df41d3170b5bee017ec4790e2829beb (patch)
treea08eef7f94b5b455271510665e2b92dfba5f8d02
parent8c5a7213333066aa45016c54d3761ac06817e271 (diff)
accel/ivpu: Remove skip of dma unmap for imported buffers
[ Upstream commit c063c1bbee67391f12956d2ffdd5da00eb87ff79 ] 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 Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/accel/ivpu/ivpu_gem.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/accel/ivpu/ivpu_gem.c b/drivers/accel/ivpu/ivpu_gem.c
index 1fca969df19d..a38e41f9c712 100644
--- a/drivers/accel/ivpu/ivpu_gem.c
+++ b/drivers/accel/ivpu/ivpu_gem.c
@@ -157,9 +157,6 @@ static void ivpu_bo_unbind_locked(struct ivpu_bo *bo)
bo->ctx = NULL;
}
- if (drm_gem_is_imported(&bo->base.base))
- return;
-
if (bo->base.sgt) {
if (bo->base.base.import_attach) {
dma_buf_unmap_attachment(bo->base.base.import_attach,