Just add the call before taking locks. Signed-off-by: Christian König <christian.koenig@xxxxxxx> --- drivers/gpu/drm/lima/lima_gem.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/lima/lima_gem.c b/drivers/gpu/drm/lima/lima_gem.c index de62966243cd..d3d68218568d 100644 --- a/drivers/gpu/drm/lima/lima_gem.c +++ b/drivers/gpu/drm/lima/lima_gem.c @@ -321,6 +321,12 @@ int lima_gem_submit(struct drm_file *file, struct lima_submit *submit) goto err_out0; } + err = dma_resv_sync_user_fence(obj->resv); + if (err) { + drm_gem_object_put(obj); + goto err_out0; + } + bo = to_lima_bo(obj); /* increase refcnt of gpu va map to prevent unmapped when executing, -- 2.25.1 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel