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>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
This commit is contained in:
Samantha Tran 2021-09-16 14:09:16 -07:00 • committed by Alexander Winkowski
commit f7386b4ad7
No known key found for this signature in database
GPG key ID: 72762A66704CDE44

View file

@ -476,6 +476,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;
}
}