drm/i915/execlists: Reorder execlists register enabling
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jan 2017 15:30:21 +0000 (15:30 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jan 2017 15:34:42 +0000 (15:34 +0000)
commitf3b8f9126a9f3312636780fe83b923f3f63137fb
tree07355ec211c6ab312a90db556f5893656b890c50
parent56f6e0a7e7b09adb553339f9075696e918b96587
drm/i915/execlists: Reorder execlists register enabling

Empirically we restart following a GPU reset more successfully if we call
lrc_init_hws() (which contains a posting read) last. (The failure mode
that was observed was that breadcrumb writes into the HWS from the
recovered requests went astray leading to the context-switch maintaining
forward progress, but the requests not being retired/completed.)

For clarity, lrc_init_hws() is inlined (and the unused function then
removed).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170105153023.30575-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c