Revision e7b526bb852cdd67b24e174da6850222f8da41b1 authored by Chris Wilson on 02 June 2010, 07:30:48 UTC, committed by Linus Torvalds on 06 June 2010, 03:37:37 UTC
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>
1 parent 78b3655
History
File Mode Size
Kconfig -rw-r--r-- 497 bytes
Makefile -rw-r--r-- 343 bytes
ast.c -rw-r--r-- 4.7 KB
ast.h -rw-r--r-- 874 bytes
config.c -rw-r--r-- 25.3 KB
config.h -rw-r--r-- 1.5 KB
debug_fs.c -rw-r--r-- 16.3 KB
dir.c -rw-r--r-- 10.0 KB
dir.h -rw-r--r-- 1.2 KB
dlm_internal.h -rw-r--r-- 16.5 KB
lock.c -rw-r--r-- 120.7 KB
lock.h -rw-r--r-- 2.5 KB
lockspace.c -rw-r--r-- 18.6 KB
lockspace.h -rw-r--r-- 1.0 KB
lowcomms.c -rw-r--r-- 37.3 KB
lowcomms.h -rw-r--r-- 1014 bytes
lvb_table.h -rw-r--r-- 687 bytes
main.c -rw-r--r-- 2.0 KB
member.c -rw-r--r-- 9.0 KB
member.h -rw-r--r-- 1.0 KB
memory.c -rw-r--r-- 2.0 KB
memory.h -rw-r--r-- 1.0 KB
midcomms.c -rw-r--r-- 3.7 KB
midcomms.h -rw-r--r-- 864 bytes
netlink.c -rw-r--r-- 3.0 KB
plock.c -rw-r--r-- 9.8 KB
rcom.c -rw-r--r-- 13.0 KB
rcom.h -rw-r--r-- 1.1 KB
recover.c -rw-r--r-- 18.9 KB
recover.h -rw-r--r-- 1.5 KB
recoverd.c -rw-r--r-- 7.3 KB
recoverd.h -rw-r--r-- 970 bytes
requestqueue.c -rw-r--r-- 5.3 KB
requestqueue.h -rw-r--r-- 882 bytes
user.c -rw-r--r-- 25.6 KB
user.h -rw-r--r-- 514 bytes
util.c -rw-r--r-- 4.5 KB
util.h -rw-r--r-- 805 bytes

back to top