drm/i915: check gtfifodbg after possibly failed writes
authorBen Widawsky <ben@bwidawsk.net>
Thu, 9 Feb 2012 09:15:20 +0000 (10:15 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 11 Feb 2012 23:21:41 +0000 (00:21 +0100)
commit67a3744f7515edda9888df5b226ec3b358908b42
treeaa99eaa3436544fbbcc98afba18507707cff1da1
parentee64cbdbf617067988168a4a49fcaabdd2743da6
drm/i915: check gtfifodbg after possibly failed writes

If we don't have a sufficient number of free entries in the FIFO, we
proceed to do a write anyway. With this check we should have a clue if
that write actually failed or not.

After some discussion with Daniel Vetter regarding his original
complaint, we agreed upon this.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h