Просмотр исходного кода

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 <[email protected]>
Samantha Tran 3 лет назад
Родитель
Сommit
8c62ff4082
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      msm/msm_gem.c

+ 1 - 0
msm/msm_gem.c

@@ -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;
 			}
 		}