]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: init engine directly in GuC submission mode
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 13 Jan 2021 02:12:35 +0000 (18:12 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 13 Jan 2021 11:21:51 +0000 (11:21 +0000)
commitb0d142527b4bd81fa743a94a47fcd5eac79627ea
treeab06668e39d3677b5e38405671d143165b33c4d4
parentb5d6268ca0c0527822e11ada8dd171a5df95c199
drm/i915/guc: init engine directly in GuC submission mode

Instead of starting the engine in execlists submission mode and then
switching to GuC, start directly in GuC submission mode. The initial
setup functions have been copied over from the execlists code
and simplified by removing the execlists submission-specific parts.

v2: remove unneeded unexpected starting state check (Chris)

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: John Harrison <john.c.harrison@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20210113021236.8164-4-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h