Skip to content

Commit 94a62b0

Browse files
committed
drm/amdgpu/userq: add UAPI for setting up secure queues
If the queues needs to access TMZ surfaces, it must be set up as secure. Reviewed-by: Sunil Khatri <[email protected]> Reviewed-by: Jesse.Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d30f610 commit 94a62b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/uapi/drm/amdgpu_drm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ union drm_amdgpu_ctx {
337337
#define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_LOW 1
338338
#define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_NORMAL_HIGH 2
339339
#define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_HIGH 3 /* admin only */
340+
/* for queues that need access to protected content */
341+
#define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_SECURE (1 << 2)
340342

341343
/*
342344
* This structure is a container to pass input configuration

0 commit comments

Comments
 (0)