Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bc23aad authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Fix regression in ba3d8d74



I pulled the wrong version of the patch from Daniel Vetter which was
missing the read barriers -- and the one that was causing all the trouble
was from i915_gem_object_put_fence_reg(), leading to GPU hangs on gen3.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 7213342d
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -2430,7 +2430,11 @@ i915_gem_object_put_fence_reg(struct drm_gem_object *obj)
		int ret;

		ret = i915_gem_object_flush_gpu_write_domain(obj, false);
		if (ret != 0)
		if (ret)
			return ret;

		ret = i915_gem_object_wait_rendering(obj);
		if (ret)
			return ret;
	}