[Intel-xe] [PATCH v3 0/5] drm/xe: Clear-media HuC support for MTL

Daniele Ceraolo Spurio daniele.ceraolospurio at intel.com
Wed Oct 25 17:57:40 UTC 2023


MTL supports HuC on the media GT with a 2-step authentication flow:

1 - authentication via the GuC for clear-media
2 - authentication via the GSC for protected content

This series introduces support for the first step. The actual flow to
authenticate via the GuC is the same as in older platforms, but the
HuC binary now has a new manifest which we need to parse. From the
manifest we can extract the offset within the binary that we need to
provide to the GuC for loading.

The second step of the authentication will come as part of GSC support.

v2: stop using the filename to check which headers are available, split
up old code move to separate patch, add new code and docs to uc_fw files
instead of huc ones.

v3: update to parsing code to use separate loops, rework marker check.

Cc: Alan Previn <alan.previn.teres.alexis at intel.com>
Cc: John Harrison <John.C.Harrison at Intel.com>
Cc: Lucas De Marchi <lucas.demarchi at intel.com>

Daniele Ceraolo Spurio (5):
  drm/xe/uc: Prepare for parsing of different header types
  drm/xe/huc: Extract version and binary offset from new HuC headers
  drm/xe/huc: HuC is not supported on GTs that don't have video engines
  drm/xe/huc: Don't re-auth HuC if it's already authenticated
  drm/xe/huc: Define HuC for MTL

 Documentation/gpu/xe/xe_firmware.rst |   5 +-
 drivers/gpu/drm/xe/xe_huc.c          |  17 +-
 drivers/gpu/drm/xe/xe_uc_fw.c        | 248 ++++++++++++++++++++-------
 drivers/gpu/drm/xe/xe_uc_fw.h        |   2 +-
 drivers/gpu/drm/xe/xe_uc_fw_abi.h    | 127 +++++++++++++-
 drivers/gpu/drm/xe/xe_uc_fw_types.h  |   2 +
 6 files changed, 338 insertions(+), 63 deletions(-)

-- 
2.41.0



More information about the Intel-xe mailing list