Commit 60f800b2 authored by Christian König's avatar Christian König Committed by Christian König
Browse files

drm/msm: always wait for the exclusive fence



Drivers also need to to sync to the exclusive fence when
a shared one is present.

Completely untested since the driver won't even compile on !ARM.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210702111642.17259-5-christian.koenig@amd.com


Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent ea9a897b
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -817,8 +817,6 @@ int msm_gem_sync_object(struct drm_gem_object *obj,
	struct dma_fence *fence;
	int i, ret;

	fobj = dma_resv_shared_list(obj->resv);
	if (!fobj || (fobj->shared_count == 0)) {
	fence = dma_resv_excl_fence(obj->resv);
	/* don't need to wait on our own fences, since ring is fifo */
	if (fence && (fence->context != fctx->context)) {
@@ -826,8 +824,8 @@ int msm_gem_sync_object(struct drm_gem_object *obj,
		if (ret)
			return ret;
	}
	}

	fobj = dma_resv_shared_list(obj->resv);
	if (!exclusive || !fobj)
		return 0;