]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/huc: Prepare for GSC-loaded HuC
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 4 May 2022 20:48:15 +0000 (13:48 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 5 May 2022 22:47:51 +0000 (15:47 -0700)
commitdff9649a179dec6c79bee935930aabe57610ed18
treec70c1251d46b9c14022e2aafb7c5298d0e15aa93
parent7c1264496cc71ed2caff06e4cc8f0685958ac0d7
drm/i915/huc: Prepare for GSC-loaded HuC

HuC loading via GSC is performed via a PXP command sent through the mei
modules, so we need both MEI_GSC and MEI_PXP to be available. Given that
the GSC will do both the transfer and the authentication, the legacy HuC
loading paths can be safely skipped.
Also note that the GSC-loaded HuC survives GT reset.

v2: move the huc_is_authenticated() function to this patch.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220504204816.2082588-4-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_reg.h
drivers/gpu/drm/i915/gt/uc/intel_huc.c
drivers/gpu/drm/i915/gt/uc/intel_huc.h
drivers/gpu/drm/i915/gt/uc/intel_huc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_uc.c