Skip to contentSkip to conversation

drm/amdgpu: move CS secure flag next the structs where it's used

PATCH In review Alex Deucher 3 participants 3 messages Nov 27, 2019 – Nov 28, 2019 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: move CS secure flag next the structs where it's used

So it's not mixed up with the CTX stuff.

---
 include/uapi/drm/amdgpu_drm.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/uapi/drm/amdgpu_drm.h +3 -3
index f75c6957064d..918ac3548cd3 100644
@@ -207,9 +207,6 @@ union drm_amdgpu_bo_list {
 #define AMDGPU_CTX_OP_QUERY_STATE	3
 #define AMDGPU_CTX_OP_QUERY_STATE2	4
 
-/* Flag the command submission as secure */
-#define AMDGPU_CS_FLAGS_SECURE          (1 << 0)
-
 /* GPU reset status */
 #define AMDGPU_CTX_NO_RESET		0
 /* this the context caused it */
@@ -559,6 +556,9 @@ struct drm_amdgpu_cs_chunk {
 	__u64		chunk_data;
 };
 
+/* Flag the command submission as secure */
+#define AMDGPU_CS_FLAGS_SECURE          (1 << 0)
+
 struct drm_amdgpu_cs_in {
 	/** Rendering context id */
 	__u32		ctx_id;
Signature · 6 lines
2.23.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20191127205646.953566-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org

Reviewed-by Zhan Liu
#2 lore raw
Quoted 11 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: 2019/November/27, Wednesday 3:57 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu: move CS secure flag next the structs where it's used

Quoted 3 lines

So it's not mixed up with the CTX stuff.

Quoted 32 lines
---
 include/uapi/drm/amdgpu_drm.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/include/uapi/drm/amdgpu_drm.h index f75c6957064d..918ac3548cd3 100644

include/uapi/drm/amdgpu_drm.h +3 -4
@@ -207,9 +207,6 @@ union drm_amdgpu_bo_list {
 #define AMDGPU_CTX_OP_QUERY_STATE	3
 #define AMDGPU_CTX_OP_QUERY_STATE2	4
 
-/* Flag the command submission as secure */
-#define AMDGPU_CS_FLAGS_SECURE          (1 << 0)
-
 /* GPU reset status */
 #define AMDGPU_CTX_NO_RESET		0
 /* this the context caused it */
@@ -559,6 +556,9 @@ struct drm_amdgpu_cs_chunk {
 	__u64		chunk_data;
 };
 
+/* Flag the command submission as secure */
+#define AMDGPU_CS_FLAGS_SECURE          (1 << 0)
+
 struct drm_amdgpu_cs_in {
 	/** Rendering context id */
 	__u32		ctx_id;
--

2.23.0

Quoted 9 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.fre
edesktop.org%2Fmailman%2Flistinfo%2Famd- gfx&amp;data=02%7C01%7Czhan.liu%40amd.com%7C8c7b0eddf0c34548540 a08d7737c57b2%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C6 37104850267345545&amp;sdata=3Q3%2BLLpiH7ekvDFgp1zmrpGwvXQj1RD 2aKe6yap56Uw%3D&amp;reserved=0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reviewed-by
#3 lore raw
In reply to a message not in the archive

Am 27.11.19 um 21:56 schrieb Alex Deucher:

Quoted 3 lines

So it's not mixed up with the CTX stuff.

Quoted 19 lines
---
  include/uapi/drm/amdgpu_drm.h | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
include/uapi/drm/amdgpu_drm.h +0 -3
index f75c6957064d..918ac3548cd3 100644
@@ -207,9 +207,6 @@ union drm_amdgpu_bo_list {
  #define AMDGPU_CTX_OP_QUERY_STATE	3
  #define AMDGPU_CTX_OP_QUERY_STATE2	4
 
-/* Flag the command submission as secure */
-#define AMDGPU_CS_FLAGS_SECURE          (1 << 0)
-
  /* GPU reset status */
  #define AMDGPU_CTX_NO_RESET		0
  /* this the context caused it */

include/uapi/drm/amdgpu_drm.h struct drm_amdgpu_cs_chunk { · line 564

Quoted 9 lines
include/uapi/drm/amdgpu_drm.h +3 -0
@@ -559,6 +556,9 @@ struct drm_amdgpu_cs_chunk {
  	__u64		chunk_data;
  };
 
+/* Flag the command submission as secure */
+#define AMDGPU_CS_FLAGS_SECURE          (1 << 0)
+
  struct drm_amdgpu_cs_in {
  	/** Rendering context id */
  	__u32		ctx_id;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx