drm/i915/uc: HuC firmware can't be supported without GuC
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 7 Aug 2019 17:00:29 +0000 (17:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Aug 2019 19:53:15 +0000 (20:53 +0100)
commit2399ab52da5fe1c03c556e08d5e964afdf571e1b
tree5e8a9e0b1f8d47042e506946405910f60f332982
parent12be4a4c75a2a41ba32b4b1368e9f40e43bfda0a
drm/i915/uc: HuC firmware can't be supported without GuC

There is no point in selecting HuC firmware if GuC is unsupported
or it was already disabled, as we need GuC to authenticate HuC.

While around, make uc_fw_init_early work without direct access
to whole i915, pass only needed platform/rev info.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
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/20190807170034.8440-3-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_huc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h