History

drm/i915/huc: differentiate the 2 steps of the MTL HuC auth flow

Before we add the second step of the MTL HuC auth (via GSC), we need to have the ability to differentiate between them. To do so, the huc authentication check is duplicated for GuC and GSC auth, with GSC-enabled binaries being considered fully authenticated only after the GSC auth step. To report the difference between the 2 auth steps, a new case is added to the HuC getparam. This way, the clear media driver can start submitting before full auth, as partial auth is enough for those workloads. v2: fix authentication status check for DG2 v3: add a better comment at the top of the HuC file to explain the different approaches to load and auth (John) v4: update call to intel_huc_is_authenticated in the pxp code to check for GSC authentication v5: drop references to meu and esclamation mark in huc_auth print (John)

Daniele Ceraolo Spurio committed 3 years ago

Commit 98d27221 parent 6a9b6c46 files · +104 −35Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/drm/i915_drm.h+2−1
@@ -674,7 +674,8 @@ typedef struct drm_i915_irq_wait { · 673 unmodified lines
674674 * If the IOCTL is successful, the returned parameter will be set to one of the
675675 * following values:
676676 * * 0 if HuC firmware load is not complete,
677− * * 1 if HuC firmware is authenticated and running.
677+ * * 1 if HuC firmware is loaded and fully authenticated,
678+ * * 2 if HuC firmware is loaded and authenticated for clear media only
678679 */
679680 #define I915_PARAM_HUC_STATUS 42
680681

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t