[PATCH 07/12] drm/lima: add DMA-buf user fence support
Christian König
ckoenig.leichtzumerken at gmail.com
Tue May 4 13:27:24 UTC 2021
Just add the call before taking locks.
Signed-off-by: Christian König <christian.koenig at amd.com>
---
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
More information about the dri-devel
mailing list