drm/i915/uc: Fetch GuC/HuC firmwares from guc/huc specific init
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 28 Jun 2018 14:15:21 +0000 (14:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Jun 2018 21:51:33 +0000 (22:51 +0100)
commitf7dc0157e4b5f23780559c6b71d3f7282f6c7f1b
tree0dffacb4d5b5e490cf5049470ad0743f6f60df41
parentc39d2e7e35f6f357e59c7313dab8e90f7d1ff93e
drm/i915/uc: Fetch GuC/HuC firmwares from guc/huc specific init

We're fetching GuC/HuC firmwares directly from uc level during
init_early stage but this breaks guc/huc struct isolation and
also strict SW-only initialization rule for init_early. Move fw
fetching to init phase and do it separately per guc/huc struct.

v2: don't forget to move wopcm_init - Michele
v3: fetch in init_misc phase - Michal

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com> #2
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180628141522.62788-2-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_guc.c
drivers/gpu/drm/i915/intel_huc.c
drivers/gpu/drm/i915/intel_huc.h
drivers/gpu/drm/i915/intel_uc.c