]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/i915: extract some common olr+wedge code
authorBen Widawsky <ben@bwidawsk.net>
Thu, 26 Apr 2012 03:50:12 +0000 (20:50 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 09:18:32 +0000 (11:18 +0200)
commitb4aca0106c466b5a0329318203f65bac2d91b682
treec2babdee7cce61eefe1909650f188c0ab7f99db2
parentc921aba84ae5bf74b5386b4d2e01a5706ae4b878
drm/i915: extract some common olr+wedge code

The new wait_rendering ioctl also needs to check for an oustanding
lazy request, and we already duplicate that logic at three places. So
extract it.

While at it, also extract the code to check the gpu wedging state to
improve code flow.

v2: Don't use seqno as an outparam (Chris)

v3 by danvet: Kill stale comment and pimp commit message

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c