drm/i915: use gem_set_seqno() on hardware init
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 22 Jan 2013 12:12:17 +0000 (14:12 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Jan 2013 12:52:26 +0000 (13:52 +0100)
commit99433931950f33039d9e1a52b4ed9af3f1b58e84
treeca18c2cbe0f14120fd298a7320cfaad95fc455a4
parent5559ecadad5a73b27f863e92f4b4f369501dce6f
drm/i915: use gem_set_seqno() on hardware init

When machine was rebooted or module was reloaded,
gem_hw_init() set last_seqno to be identical to next_seqno.
This lead to situation that waits for first ever request
always passed immediately regardless if it was actually
executed.

Use gem_set_seqno() to be consistent how hw is
initialized on init, wrap and on resume.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_ringbuffer.c