disp: msm: retry dma buf attach on msm_gem_delayed_import error

In the event when msm_gem_delayed_import returns an error, reset
the obj_dirty property to true to allow the buffer to detach and
attach again.

Change-Id: Ib8da8f237c5a4ab696675cbcf66f1a3dfae02639
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
Samantha Tran
2021-09-16 14:09:16 -07:00
parent 00d92ec8d6
commit 8c62ff4082

View File

@@ -481,6 +481,7 @@ static int msm_gem_get_iova_locked(struct drm_gem_object *obj,
if (ret) {
DRM_ERROR("delayed dma-buf import failed %d\n",
ret);
msm_obj->obj_dirty = true;
return ret;
}
}