]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19ba8bcc0625d49d2fda1950813195108863a991
tree3217725649114c83dd4e15f8fa0c5b71d02623c5
parentfde998560c0a91817fc52af56afc5155237bcae2
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