]> git.openfabrics.org - ~emulex/infiniband.git/commit
drm/i915: catch gtfifo errors on forcewake_put
authorBen Widawsky <ben@bwidawsk.net>
Thu, 9 Feb 2012 09:15:19 +0000 (10:15 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 11 Feb 2012 23:21:34 +0000 (00:21 +0100)
commitee64cbdbf617067988168a4a49fcaabdd2743da6
tree7f2a84c6382c2d55832f19a5a8c1203e3ecf6a7c
parentdd202c6dd612beecf87b8b85c2f09b23f77364a2
drm/i915: catch gtfifo errors on forcewake_put

This is similar to a patch I wrote several months ago. It's been updated
for the new FORCEWAKE_MT. As recommended by Chris Wilson, use WARN()
instead of DRM_ERROR, so we can get a backtrace.

This shouldn't impact performance too much as the extra register read
can replace the POSTING_READ we had previously.

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