Create the arbitrary session, with the fixed session id 0xf, after system boot, for the case that application allocates the protected buffer without establishing any protection session. Because the hardware requires at least one alive session for protected buffer creation. This arbitrary session will need to be re-created after teardown or power event because hardware encryption key won't be valid after such cases. The session ID is exposed as part of the uapi so it can be used as part of userspace commands. v2: use gt->uncore->rpm (Chris) v3: s/arb_is_in_play/arb_is_valid (Chris), move set-up to the new init_hw function v4: move interface defs to separate header, set arb_is valid to false on fini (Rodrigo) v5: handle async component binding
Showing the changes to include/uapi (1 of 10 files). Show all
Unified · Split
| @@ -3038,6 +3038,9 @@ struct drm_i915_gem_create_ext_memory_regions { · 3037 unmodified lines | ||
| 3038 | 3038 | __u64 regions; |
| 3039 | 3039 | }; |
| 3040 | 3040 | |
| 3041 | +/* ID of the protected content session managed by i915 when PXP is active */ | |
| 3042 | +#define I915_PROTECTED_CONTENT_DEFAULT_SESSION 0xf | |
| 3043 | + | |
| 3041 | 3044 | #if defined(__cplusplus) |
| 3042 | 3045 | } |
| 3043 | 3046 | #endif |