]> git.baikalelectronics.ru Git - kernel.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)
commitbccd527aa9d9259ba0db762041e5e19e47f6d598
tree7f2a84c6382c2d55832f19a5a8c1203e3ecf6a7c
parenta4fa2dd55c60c1d045d3687caf8ed495672381df
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