]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only clear write-domains after a successful wait-seqno
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Jun 2013 15:54:08 +0000 (16:54 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 1 Jul 2013 09:15:00 +0000 (11:15 +0200)
commit22cc761e45ed81e8c17adefa91ac2ee11593dbc2
treef49a5d05ebfc99b4930b9b35af69d34cd4727bb3
parent2961dab33963410f0f82758814a74c9c363b6e18
drm/i915: Only clear write-domains after a successful wait-seqno

In the introduction of the non-blocking wait, I cut'n'pasted the wait
completion code from normal locked path. Unfortunately, this neglected
that the normal path returned early if the wait returned early. The
result is that read-only waits may return whilst the GPU is still
writing to the bo.

Fixes regression from
commit fb3e04fce4f929592422b7db11f1538c12b1f231 [v3.7]
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Aug 24 09:35:09 2012 +0100

    drm/i915: Use a non-blocking wait for set-to-domain ioctl

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66163
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c