Skip to content

Commit

Permalink
drm/i915: Reset engine->last_submitted_seqno
Browse files Browse the repository at this point in the history
When we change the current seqno, we also need to remember to reset the
last_submitted_seqno for the engine.

Testcase: igt/gem_exec_whisper
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460010558-10705-7-git-send-email-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Apr 8, 2016
1 parent a058d93 commit 0134712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2578,6 +2578,7 @@ void intel_ring_init_seqno(struct intel_engine_cs *engine, u32 seqno)
sizeof(engine->semaphore.sync_seqno));

engine->set_seqno(engine, seqno);
engine->last_submitted_seqno = seqno;

engine->hangcheck.seqno = seqno;
}
Expand Down

0 comments on commit 0134712

Please sign in to comment.