drm/xe/huc: HuC authentication via GSC
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 29 Nov 2023 01:17:19 +0000 (17:17 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:24 +0000 (11:45 -0500)
commitd8b1571312b7f77aeae2b2a7a138bb8edaa4f725
tree95f158cb758f236681f19f8bb69020a0ea71f156
parent7ce5716e13cfb37a86c02fe158403c002eb1b504
drm/xe/huc: HuC authentication via GSC

HuC authentication via GSC is performed by submitting the appropriate
PXP packet to the GSC FW. This packet can trigger a "pending" reply from
the FW, so we need to handle that and resubmit. Note that the auth via
GSC can only be performed if the HuC has already been authenticated by
the GuC.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Vivaik Balasubrawmanian <vivaik.balasubrawmanian@intel.com>
Reviewed-by: Vivaik Balasubrawmanian <vivaik.balasubrawmanian@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/abi/gsc_pxp_commands_abi.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gsc.c
drivers/gpu/drm/xe/xe_huc.c
drivers/gpu/drm/xe/xe_huc.h
drivers/gpu/drm/xe/xe_huc_types.h
drivers/gpu/drm/xe/xe_uc_fw.c
drivers/gpu/drm/xe/xe_uc_fw_types.h