drm/i915/gt: Replace open-coded intel_engine_stop_cs()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 13 Jan 2021 20:47:09 +0000 (20:47 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 13 Jan 2021 22:35:58 +0000 (22:35 +0000)
commit64362bc6a90dbec8648a71d582f9e5e3d9f3b73e
tree0660340c182fab94420635aa9f437429247b130e
parent81746b74c1e7cb1c4b77465e0a7434f2c33464d2
drm/i915/gt: Replace open-coded intel_engine_stop_cs()

In the legacy ringbuffer submission, we still had an open-coded version
of intel_engine_stop_cs() with one additional verification step. Transfer
that verification to intel_engine_stop_cs() itself, and call it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210113204709.15020-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_ring_submission.c