Skip to content

Commit

Permalink
drm/i915: Don't kick-off hangcheck after a DRI interrupt
Browse files Browse the repository at this point in the history
Hangcheck and error recovery is only used by GEM.

Reported-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Jan 20, 2011
1 parent f7ab9b4 commit 475553d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/gpu/drm/i915/i915_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,12 @@ static void notify_ring(struct drm_device *dev,
struct intel_ring_buffer *ring)
{
struct drm_i915_private *dev_priv = dev->dev_private;
u32 seqno = ring->get_seqno(ring);
u32 seqno;

if (ring->obj == NULL)
return;

seqno = ring->get_seqno(ring);
trace_i915_gem_request_complete(dev, seqno);

ring->irq_seqno = seqno;
Expand Down

0 comments on commit 475553d

Please sign in to comment.