]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move idle checks before intel_engine_init_global_seqno()
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jul 2017 12:32:26 +0000 (13:32 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 27 Jul 2017 07:38:46 +0000 (09:38 +0200)
commit3a7d82924d4ad13fd33c7f45906a93dd14058865
tree33654adf6f7539b03a536d955d9ff0f3aa9e2f0c
parent4518675e498b1fc7ee5a8558afa1ccbef662c725
drm/i915: Move idle checks before intel_engine_init_global_seqno()

intel_engine_init_globa_seqno() may be called from an uncontrolled
set-wedged path where we have given up waiting for broken hw and declare
it defunct. Along that path, any sanity checks that the hw is idle
before we adjust its state will expectedly fail, so we simply cannot.
Instead of asserting inside init_global_seqno, we move them to the
normal caller reset_all_global_seqno() as it handles runtime seqno
wraparound.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170721123238.16428-8-chris@chris-wilson.co.uk
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_request.c
drivers/gpu/drm/i915/intel_engine_cs.c