[PATCH 08/13] drm/amdgpu/userq: add UAPI for setting up secure queues

Khatri, Sunil sukhatri at amd.com
Fri Apr 11 17:13:38 UTC 2025


Reviewed-by: Sunil Khatri <sunil.khatri at amd.com>

On 4/11/2025 12:23 AM, Alex Deucher wrote:
> If the queues needs to access TMZ surfaces, it must
> be set up as secure.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
>   include/uapi/drm/amdgpu_drm.h | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
> index 8719754c777b4..0ca4b3b961eb3 100644
> --- a/include/uapi/drm/amdgpu_drm.h
> +++ b/include/uapi/drm/amdgpu_drm.h
> @@ -336,6 +336,8 @@ union drm_amdgpu_ctx {
>   #define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_LOW 1
>   #define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_NORMAL_HIGH 2
>   #define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_HIGH 3 /* admin only */
> +/* for queues that need access to protected content */
> +#define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_SECURE  (1 << 2)
>   
>   /*
>    * This structure is a container to pass input configuration


More information about the amd-gfx mailing list