e358173fbf
With MTL onwards, creating protected contexts too early may block for a longer period. To prevent that, use the new kernel GET_PARAM:I915_PARAM_PXP_STATUS interface to get the status of PXP support immediately without blocking. Using this same interface, we can also wait for platform dependency readiness before attempting to create a protected context. Use a longer timeout when user explicitly requests for protected context as the kernel assures readiness will be achieved. 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> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23382>