]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/uc: Move uC early functions inside the GT ones
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 1 Aug 2019 00:57:08 +0000 (17:57 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 1 Aug 2019 16:58:52 +0000 (17:58 +0100)
commit2931996902b82915e56b7c8fc4bf99ad897c2239
tree2396084e1bdf1bce43a55e191a2b336a3ff51f37
parente572290e083eff78db4a3eb9e87eba592f8e1b52
drm/i915/uc: Move uC early functions inside the GT ones

uC is a subcomponent of GT, so initialize/clean it as part of it. The
wopcm_init_early doesn't have to be happen before the uC one, but since
in other parts of the code we consider WOPCM first do the same for
consistency.

v2: s/cleanup_early/late_release to match the caller
v3: s/late_release/driver_late_release/ (Chris)

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com> #v1
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/20190801005709.34092-2-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/gt/uc/intel_uc.c
drivers/gpu/drm/i915/gt/uc/intel_uc.h
drivers/gpu/drm/i915/i915_drv.c