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)
commit6f76098fe0f3f0b519b2ad528b4319195d6d0f73
tree2396084e1bdf1bce43a55e191a2b336a3ff51f37
parent6cf72db68d20230380a7a37dae31943c4d1d6e07
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