drm/i915: Move non-phys cursors into the GTT
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Jun 2010 07:30:48 +0000 (08:30 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 6 Jun 2010 03:37:37 +0000 (20:37 -0700)
commite7b526bb852cdd67b24e174da6850222f8da41b1
treed0a1c95cfc2b6a8f8f4c705355a7b70994468cc3
parent78b36558b7061430fe16ce49f83f1bc3a0b7d4b8
drm/i915: Move non-phys cursors into the GTT

Cursors need to be in the GTT domain when being accessed by the GPU.
Previously this was a fortuitous byproduct of userspace using pwrite()
to upload the image data into the cursor. The redundant clflush was
removed in commit 9b8c4a and so the image was no longer being flushed
out of the caches into main memory. One could also devise a scenario
where the cursor was rendered by the GPU, prior to being attached as the
cursor, resulting in similar corruption due to the missing MI_FLUSH.

Fixes:

  Bug 28335 - Cursor corruption caused by commit 9b8c4a0b21
  https://bugs.freedesktop.org/show_bug.cgi?id=28335

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reported-and-tested-by: Jeff Chua <jeff.chua.linux@gmail.com>
Tested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reported-by: Andy Isaacson <adi@hexapodia.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/i915/intel_display.c