diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-18 17:16:40 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-18 22:36:15 +0100 |
commit | 600f436801deae65e48404847b61c89b4944e355 (patch) | |
tree | 558baaeb37fde387521809b19778b751d9b407a5 /drivers/char/agp | |
parent | 43aa7e87507f519b0b2497b6fac1e894554eaef2 (diff) | |
download | op-kernel-dev-600f436801deae65e48404847b61c89b4944e355.zip op-kernel-dev-600f436801deae65e48404847b61c89b4944e355.tar.gz |
drm/i915: Unconditionally flush any chipset buffers before execbuf
If userspace is asynchronously streaming into the batch or other
execobjects, we may not flush those writes along with a change in cache
domain (as there is no change). Therefore those writes may end up in
internal chipset buffers and not visible to the GPU upon execution. We
must issue a flush command or otherwise we encounter incoherency in the
batchbuffers and the GPU executing invalid commands (i.e. hanging) quite
regularly.
v2: Throw a paranoid wmb() into the general flush so that we remain
consistent with before.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90841
Fixes: 1816f9236303 ("drm/i915: Support creation of unbound wc user...")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Akash Goel <akash.goel@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Tested-by: Matti Hämäläinen <ccr@tnsp.org>
Cc: stable@vger.kernel.org
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160818161718.27187-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/char/agp')
0 files changed, 0 insertions, 0 deletions