Commit e90c2b21 authored by Luben Tuikov's avatar Luben Tuikov Committed by Alex Deucher

drm/amdgpu: add UAPI to create secure commands (v3)

Add a flag to the command submission IOCTL
structure which when present indicates that this
command submission should be treated as
secure. The kernel driver uses this flag to
determine whether the engine should be
transitioned to secure or unsecure, or the work
can be submitted to a secure queue depending on
the IP.

v3: the flag is now at command submission IOCTL
Signed-off-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 35ce0060
...@@ -205,6 +205,9 @@ union drm_amdgpu_bo_list { ...@@ -205,6 +205,9 @@ union drm_amdgpu_bo_list {
#define AMDGPU_CTX_OP_QUERY_STATE 3 #define AMDGPU_CTX_OP_QUERY_STATE 3
#define AMDGPU_CTX_OP_QUERY_STATE2 4 #define AMDGPU_CTX_OP_QUERY_STATE2 4
/* Flag the command submission as secure */
#define AMDGPU_CS_FLAGS_SECURE (1 << 0)
/* GPU reset status */ /* GPU reset status */
#define AMDGPU_CTX_NO_RESET 0 #define AMDGPU_CTX_NO_RESET 0
/* this the context caused it */ /* this the context caused it */
...@@ -564,7 +567,7 @@ struct drm_amdgpu_cs_in { ...@@ -564,7 +567,7 @@ struct drm_amdgpu_cs_in {
/** Handle of resource list associated with CS */ /** Handle of resource list associated with CS */
__u32 bo_list_handle; __u32 bo_list_handle;
__u32 num_chunks; __u32 num_chunks;
__u32 _pad; __u32 flags;
/** this points to __u64 * which point to cs chunks */ /** this points to __u64 * which point to cs chunks */
__u64 chunks; __u64 chunks;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment