XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
drm_xe_query_pxp_status Struct Reference

#include <xe_drm.h>

Public Attributes

__u32 status
 
__u32 supported_session_types
 

Detailed Description

struct drm_xe_query_pxp_status - query if PXP is ready

If PXP is enabled and no fatal error has occurred, the status will be set to one of the following values: 0: PXP init still in progress 1: PXP init complete

If PXP is not enabled or something has gone wrong, the query will be failed with one of the following error codes: -ENODEV: PXP not supported or disabled; -EIO: fatal error occurred during init, so PXP will never be enabled; -EINVAL: incorrect value provided as part of the query; -EFAULT: error copying the memory between kernel and userspace.

The status can only be 0 in the first few seconds after driver load. If everything works as expected, the status will transition to init complete in less than 1 second, while in case of errors the driver might take longer to start returning an error code, but it should still take less than 10 seconds.

The supported session type bitmask is based on the values in enum drm_xe_pxp_session_type. TYPE_NONE is always supported and therefore is not reported in the bitmask.

Member Data Documentation

◆ status

__u32 drm_xe_query_pxp_status::status

@status: current PXP status

◆ supported_session_types

__u32 drm_xe_query_pxp_status::supported_session_types

@supported_session_types: bitmask of supported PXP session types


The documentation for this struct was generated from the following file: