]> Pileus Git - ~andy/linux/commit
drm/i915: add batch bo to i915_add_request()
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Wed, 12 Jun 2013 12:01:39 +0000 (15:01 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 13 Jun 2013 15:42:16 +0000 (17:42 +0200)
commit7d736f4f0b405b1421d280632ef077eb8135e5c6
tree04cf2d83ac8f424626be5d470bbec694ad8b869d
parent0025c0772de7451c2302fa628f038b213a0783bf
drm/i915: add batch bo to i915_add_request()

In order to track down a batch buffer and context which
caused the ring to hang, store reference to bo into the request struct.
Request can also cause gpu to hang after the batch in the flush section
in the ring. To detect this add start of the flush portion offset into the
request.

v2: Included comment about request vs batch_obj lifetimes (Chris Wilson)

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c