]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/huc: Add fetch support for gsc-loaded HuC binary
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 4 May 2022 20:48:14 +0000 (13:48 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 5 May 2022 22:47:51 +0000 (15:47 -0700)
commit8dc73a38898788abfd3c2fb8c5b35b27457d5f6f
treed26d0b4f51d0ae2e325f0411c4aa25afa07006b1
parent5638cd0263df1df2d1c9b6f4dba7ae1d97febf41
drm/i915/huc: Add fetch support for gsc-loaded HuC binary

On newer platforms (starting DG2 G10 B-step and G11 A-step), ownership of
HuC loading has been moved from the GuC to the GSC. As part of the
change, the header format of the HuC binary has been updated and does not
match the GuC anymore. The GSC will perform all the required checks on
the binary size, so we only need to check that the version matches.

Note that since we still haven't added any gsc-loaded FWs, the
loaded_via_gsc variable will always be kept to its initialization value
of zero.

v2: Add a note about loaded_via_gsc being zero (Alan)

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-3-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h
drivers/gpu/drm/i915/gt/uc/intel_uc_fw_abi.h