drm/i915: Work around gen7 BLT ring synchronization issues.
authorEric Anholt <eric@anholt.net>
Thu, 22 Dec 2011 22:55:00 +0000 (14:55 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 3 Jan 2012 17:31:15 +0000 (09:31 -0800)
commit42ff6572e5a4a7414330a4ca91f0335da67deca9
treedc8937a9bd595065cd73cd51a4baab365a96813b
parent7ea29b13e5e3e1e61e612349eb0366efdb6457f3
drm/i915: Work around gen7 BLT ring synchronization issues.

Previous to this commit, testing easily reproduced a failure where the
seqno would apparently arrive after the IRQ associated with it, with test programs as simple as:

for (;;) {
    glCopyPixels(0, 0, 1, 1);
    glFinish();
}

Various workarounds we've seen for previous generations didn't work to
fix this issue, so until new information comes in, replace the IRQ
waits on the BLT ring with polling.

Signed-off-by: Eric Anholt <eric@anholt.net>
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_ringbuffer.c