https://github.com/torvalds/linux
Revision 498e720b96379d8ee9c294950a01534a73defcf3 authored by Daniel J Blueman on 17 June 2011, 18:32:19 UTC, committed by Dave Airlie on 17 June 2011, 22:25:16 UTC
The failure appeared in dmesg as:

[drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... blt
ring idle [waiting on 35064155, at 35064155], missed IRQ?

This works around that problem on by making the blitter command
streamer write interrupt state to the Hardware Status Page when a
MI_USER_INTERRUPT command is decoded, which appears to force the seqno
out to memory before the interrupt happens.

v1->v2: Moved to prior interrupt handler installation and RMW flags as
per feedback.
v2->v3: Removed RMW of flags (by anholt)

Cc: stable@kernel.org
Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Tested-by: Chris Wilson <chris@chris-wilson.co.uk> [v1]
Tested-by: Eric Anholt <eric@anholt.net> [v1,v3]
	   (incidence of the bug with a testcase went from avg 2/1000 to
	   0/12651 in the latest test run (plus more for v1))
Tested-by: Kenneth Graunke <kenneth@whitecape.org> [v1]
Tested-by: Robert Hooker <robert.hooker@canonical.com> [v1]
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33394
Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 95d17b7
History
Tip revision: 498e720b96379d8ee9c294950a01534a73defcf3 authored by Daniel J Blueman on 17 June 2011, 18:32:19 UTC
drm/i915: Fix gen6 (SNB) missed BLT ring interrupts.
Tip revision: 498e720
File Mode Size
9p
adfs
affs
afs
autofs4
befs
bfs
btrfs
cachefiles
ceph
cifs
coda
configfs
cramfs
debugfs
devpts
dlm
ecryptfs
efs
exofs
exportfs
ext2
ext3
ext4
fat
freevxfs
fscache
fuse
gfs2
hfs
hfsplus
hostfs
hpfs
hppfs
hugetlbfs
isofs
jbd
jbd2
jffs2
jfs
lockd
logfs
minix
ncpfs
nfs
nfs_common
nfsd
nilfs2
nls
notify
ntfs
ocfs2
omfs
openpromfs
partitions
proc
pstore
qnx4
quota
ramfs
reiserfs
romfs
squashfs
sysfs
sysv
ubifs
udf
ufs
xfs
Kconfig -rw-r--r-- 5.8 KB
Kconfig.binfmt -rw-r--r-- 6.4 KB
Makefile -rw-r--r-- 4.0 KB
aio.c -rw-r--r-- 45.9 KB
anon_inodes.c -rw-r--r-- 6.3 KB
attr.c -rw-r--r-- 6.8 KB
bad_inode.c -rw-r--r-- 7.8 KB
binfmt_aout.c -rw-r--r-- 12.4 KB
binfmt_elf.c -rw-r--r-- 53.7 KB
binfmt_elf_fdpic.c -rw-r--r-- 48.7 KB
binfmt_em86.c -rw-r--r-- 2.8 KB
binfmt_flat.c -rw-r--r-- 27.0 KB
binfmt_misc.c -rw-r--r-- 15.2 KB
binfmt_script.c -rw-r--r-- 2.8 KB
binfmt_som.c -rw-r--r-- 7.4 KB
bio-integrity.c -rw-r--r-- 21.2 KB
bio.c -rw-r--r-- 39.5 KB
block_dev.c -rw-r--r-- 40.0 KB
buffer.c -rw-r--r-- 87.4 KB
char_dev.c -rw-r--r-- 13.8 KB
compat.c -rw-r--r-- 51.1 KB
compat_binfmt_elf.c -rw-r--r-- 3.5 KB
compat_ioctl.c -rw-r--r-- 45.8 KB
dcache.c -rw-r--r-- 77.5 KB
dcookies.c -rw-r--r-- 6.8 KB
direct-io.c -rw-r--r-- 35.1 KB
drop_caches.c -rw-r--r-- 1.5 KB
eventfd.c -rw-r--r-- 11.0 KB
eventpoll.c -rw-r--r-- 43.8 KB
exec.c -rw-r--r-- 51.1 KB
fcntl.c -rw-r--r-- 18.7 KB
fhandle.c -rw-r--r-- 6.5 KB
fifo.c -rw-r--r-- 3.2 KB
file.c -rw-r--r-- 12.0 KB
file_table.c -rw-r--r-- 13.2 KB
filesystems.c -rw-r--r-- 6.4 KB
fs-writeback.c -rw-r--r-- 35.3 KB
fs_struct.c -rw-r--r-- 3.9 KB
generic_acl.c -rw-r--r-- 4.7 KB
inode.c -rw-r--r-- 43.1 KB
internal.h -rw-r--r-- 3.4 KB
ioctl.c -rw-r--r-- 15.7 KB
ioprio.c -rw-r--r-- 5.0 KB
libfs.c -rw-r--r-- 25.3 KB
locks.c -rw-r--r-- 58.3 KB
mbcache.c -rw-r--r-- 16.4 KB
mpage.c -rw-r--r-- 20.0 KB
namei.c -rw-r--r-- 81.4 KB
namespace.c -rw-r--r-- 65.0 KB
nfsctl.c -rw-r--r-- 2.1 KB
no-block.c -rw-r--r-- 688 bytes
open.c -rw-r--r-- 26.7 KB
pipe.c -rw-r--r-- 28.4 KB
pnode.c -rw-r--r-- 9.3 KB
pnode.h -rw-r--r-- 1.1 KB
posix_acl.c -rw-r--r-- 8.6 KB
read_write.c -rw-r--r-- 20.8 KB
read_write.h -rw-r--r-- 542 bytes
readdir.c -rw-r--r-- 6.9 KB
select.c -rw-r--r-- 24.2 KB
seq_file.c -rw-r--r-- 17.8 KB
signalfd.c -rw-r--r-- 7.5 KB
splice.c -rw-r--r-- 46.3 KB
stack.c -rw-r--r-- 2.7 KB
stat.c -rw-r--r-- 10.6 KB
statfs.c -rw-r--r-- 5.0 KB
super.c -rw-r--r-- 24.3 KB
sync.c -rw-r--r-- 10.2 KB
timerfd.c -rw-r--r-- 8.4 KB
utimes.c -rw-r--r-- 5.7 KB
xattr.c -rw-r--r-- 15.8 KB
xattr_acl.c -rw-r--r-- 2.3 KB

back to top