drm/intel
Chris Wilson 4f0f871730 intel: Handle resetting of input params after EINTR during SET_TILING
The SET_TILING is pernicious in that it overwrites the input arguments
following an error in order to report the current tiling state of the
buffer. This caught us by surprise as we then fed those arguments back
into to the ioctl unmodified following an EINTR and so the kernel then
reported success for the no-op. We interpreted this success as meaning
that the tiling on the buffer had changed so updated our state and
started using the buffer incorrectly in the new tiled/untiled manner.
This lead to all sorts of random corruption and GPU hangs, even though
the batch buffers would look sane (when the GPU had not wandered off
into forbidden territory).

References:

  Bug 25475 - [i915] Xorg crash / Execbuf while wedged
  http://bugs.freedesktop.org/show_bug.cgi?id=25475

  Bug 25554 - i830_uxa_prepare_access: gtt bo map failed: Input/output error
  http://bugs.freedesktop.org/show_bug.cgi?id=25554

(And probably every other weird bug in the last few months.)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-02-10 09:52:36 +00:00
..
Makefile.am Move libdrm/ up one level 2009-11-17 11:15:06 -05:00
intel_atomic.h Add support for Solaris libc atomic operations 2010-01-16 19:37:06 -08:00
intel_bufmgr.c Merge remote branch 'origin/master' into libdrm 2009-11-20 17:09:03 -05:00
intel_bufmgr.h Merge remote branch 'origin/master' into libdrm 2009-11-20 17:09:03 -05:00
intel_bufmgr_fake.c Support gcc's __FUNCTION__ for people using other compilers 2010-01-16 19:37:06 -08:00
intel_bufmgr_gem.c intel: Handle resetting of input params after EINTR during SET_TILING 2010-02-10 09:52:36 +00:00
intel_bufmgr_priv.h Merge remote branch 'origin/master' into libdrm 2009-11-20 17:09:03 -05:00
intel_chipset.h Move libdrm/ up one level 2009-11-17 11:15:06 -05:00
libdrm_intel.pc.in intel: Add pkg-config dependency on libdrm.so using 'Requires' 2010-01-20 10:42:46 +00:00
mm.c Move libdrm/ up one level 2009-11-17 11:15:06 -05:00
mm.h Move libdrm/ up one level 2009-11-17 11:15:06 -05:00