drm/i915/gt: Move engine setup out of set_default_submission
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 May 2021 18:32:13 +0000 (11:32 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 May 2021 13:14:14 +0000 (15:14 +0200)
commit0db3633f615944a8106f48a4945aa0770a71304d
tree3217725649114c83dd4e15f8fa0c5b71d02623c5
parent50c3ffb49c953a203b5a16d4e4d55b03c57e8883
drm/i915/gt: Move engine setup out of set_default_submission

Now that we no longer switch back and forth between guc and execlists,
we no longer need to restore the backend's vfunc and can leave them set
after initialisation. The only catch is that we lose the submission on
wedging and still need to reset the submit_request vfunc on unwedging.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210521183215.65451-2-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
drivers/gpu/drm/i915/gt/intel_ring_submission.c
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c