summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_huc.h
diff options
context:
space:
mode:
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>2023-11-29 04:17:18 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:45:24 +0300
commit7ce5716e13cfb37a86c02fe158403c002eb1b504 (patch)
treedb8315a7807e1b8acc5c5696ce30b747c20b9156 /drivers/gpu/drm/xe/xe_huc.h
parent2a70bbe6170fafde76cf0135c5cbee4bd4bfa0ec (diff)
downloadlinux-7ce5716e13cfb37a86c02fe158403c002eb1b504.tar.xz
drm/xe/huc: Prepare for 2-step HuC authentication
Starting on MTL, the HuC is authenticated twice, once via GuC (same as with older integrated platforms) and once via GSC; the first authentication allows the HuC to be used for clear-media workloads, while the second one unlocks support for protected content. Ahead of adding the authentication flow via GSC, this patch adds support for differentiating the 2 auth steps and checking if they're complete. 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> Reviewed-by: Vivaik Balasubrawmanian <vivaik.balasubrawmanian@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_huc.h')
-rw-r--r--drivers/gpu/drm/xe/xe_huc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_huc.h b/drivers/gpu/drm/xe/xe_huc.h
index 5802c43b6ce2..b8c387f14b8e 100644
--- a/drivers/gpu/drm/xe/xe_huc.h
+++ b/drivers/gpu/drm/xe/xe_huc.h
@@ -10,9 +10,15 @@
struct drm_printer;
+enum xe_huc_auth_types {
+ XE_HUC_AUTH_VIA_GUC = 0,
+ XE_HUC_AUTH_VIA_GSC,
+ XE_HUC_AUTH_TYPES_COUNT
+};
+
int xe_huc_init(struct xe_huc *huc);
int xe_huc_upload(struct xe_huc *huc);
-int xe_huc_auth(struct xe_huc *huc);
+int xe_huc_auth(struct xe_huc *huc, enum xe_huc_auth_types type);
void xe_huc_sanitize(struct xe_huc *huc);
void xe_huc_print_info(struct xe_huc *huc, struct drm_printer *p);