Skip to content

i915: Add GET_PARAM for protected context capability support

This MR adds the use of the new GET_PARAM for protected context capability support that has been added on the kernel side MTL onwards.

With MTL onwards, creating protected contexts too early may block for a longer period. To prevent that, a GET_PARAM for I915_PARAM_PXP_STATUS has been added on the kernel side to get the capability for PXP support immediately without blocking.

This patch uses this new capability if the kernel supports

Using this same interface, we can also wait for platform dependency readiness before attempting to create a protected context. When user explicitly requests for protected context support, we can wait for a longer timeout period because we are sure the kernel supports it and readiness will be achieved.

Accordingly, we also update i915's drm-uapi section on GEM's protected context creation which also underwent backward compatible documentation updates.

Reference to kernel change: https://patchwork.freedesktop.org/patch/533241/?series=112647&rev=8

Signed-off-by: Alan Previn alan.previn.teres.alexis@intel.com

Merge request reports

Loading