drm/i915: Setup the RCS ring prior to execution
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Apr 2019 13:27:20 +0000 (14:27 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Apr 2019 16:33:49 +0000 (17:33 +0100)
commit26ddc068de47e2a7cbbd06c915dca7a0dc22c499
tree5c1e38bd3fd2f80ca43844f5e0e71e865695df9e
parentdfe2c8ed23d7524dd363e1941039da63e3982e98
drm/i915: Setup the RCS ring prior to execution

We need to set the various ring registers prior to restarting the
engine, or else we may restart it after reset/resume in an ill-defined
state.

Reported-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190418132720.3716-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c