Skip to contentSkip to conversation

drm/amdgpu/UAPI: rearrange header to better align related items

PATCH In review Alex Deucher 3 participants 3 messages Oct 26, 2021 – Oct 27, 2021

Subsystems (3)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu/UAPI: rearrange header to better align related items

Move the RAS query parameters to align with the INFO query where they are used. No functional change.

---
 include/uapi/drm/amdgpu_drm.h | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
include/uapi/drm/amdgpu_drm.h +6 -7
index 0cbd1540aeac..26e45fc5eb1a 100644
@@ -786,13 +786,6 @@ struct drm_amdgpu_cs_chunk_data {
 #define AMDGPU_INFO_VRAM_LOST_COUNTER		0x1F
 /* query ras mask of enabled features*/
 #define AMDGPU_INFO_RAS_ENABLED_FEATURES	0x20
-/* query video encode/decode caps */
-#define AMDGPU_INFO_VIDEO_CAPS			0x21
-	/* Subquery id: Decode */
-	#define AMDGPU_INFO_VIDEO_CAPS_DECODE		0
-	/* Subquery id: Encode */
-	#define AMDGPU_INFO_VIDEO_CAPS_ENCODE		1
-
 /* RAS MASK: UMC (VRAM) */
 #define AMDGPU_INFO_RAS_ENABLED_UMC			(1 << 0)
 /* RAS MASK: SDMA */
@@ -821,6 +814,12 @@ struct drm_amdgpu_cs_chunk_data {
 #define AMDGPU_INFO_RAS_ENABLED_MP1			(1 << 12)
 /* RAS MASK: FUSE */
 #define AMDGPU_INFO_RAS_ENABLED_FUSE			(1 << 13)
+/* query video encode/decode caps */
+#define AMDGPU_INFO_VIDEO_CAPS			0x21
+	/* Subquery id: Decode */
+	#define AMDGPU_INFO_VIDEO_CAPS_DECODE		0
+	/* Subquery id: Encode */
+	#define AMDGPU_INFO_VIDEO_CAPS_ENCODE		1
 
 #define AMDGPU_INFO_MMR_SE_INDEX_SHIFT	0
 #define AMDGPU_INFO_MMR_SE_INDEX_MASK	0xff
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 39 lines · Alex Deucher

Move the RAS query parameters to align with the INFO query where they are used. No functional change.

---
 include/uapi/drm/amdgpu_drm.h | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
include/uapi/drm/amdgpu_drm.h +6 -7
index 0cbd1540aeac..26e45fc5eb1a 100644
@@ -786,13 +786,6 @@ struct drm_amdgpu_cs_chunk_data {
 #define AMDGPU_INFO_VRAM_LOST_COUNTER		0x1F
 /* query ras mask of enabled features*/
 #define AMDGPU_INFO_RAS_ENABLED_FEATURES	0x20
-/* query video encode/decode caps */
-#define AMDGPU_INFO_VIDEO_CAPS			0x21
-	/* Subquery id: Decode */
-	#define AMDGPU_INFO_VIDEO_CAPS_DECODE		0
-	/* Subquery id: Encode */
-	#define AMDGPU_INFO_VIDEO_CAPS_ENCODE		1
-
 /* RAS MASK: UMC (VRAM) */
 #define AMDGPU_INFO_RAS_ENABLED_UMC			(1 << 0)
 /* RAS MASK: SDMA */
@@ -821,6 +814,12 @@ struct drm_amdgpu_cs_chunk_data {
 #define AMDGPU_INFO_RAS_ENABLED_MP1			(1 << 12)
 /* RAS MASK: FUSE */
 #define AMDGPU_INFO_RAS_ENABLED_FUSE			(1 << 13)
+/* query video encode/decode caps */
+#define AMDGPU_INFO_VIDEO_CAPS			0x21
+	/* Subquery id: Decode */
+	#define AMDGPU_INFO_VIDEO_CAPS_DECODE		0
+	/* Subquery id: Encode */
+	#define AMDGPU_INFO_VIDEO_CAPS_ENCODE		1
 
 #define AMDGPU_INFO_MMR_SE_INDEX_SHIFT	0
 #define AMDGPU_INFO_MMR_SE_INDEX_MASK	0xff
Reviewed-by on v1 1/1
#2 lore raw
In reply to Alex Deucher

Am 26.10.21 um 16:47 schrieb Alex Deucher:

Quoted 4 lines

Move the RAS query parameters to align with the INFO query where they are used. No functional change.

Quoted 35 lines
---
  include/uapi/drm/amdgpu_drm.h | 13 ++++++-------
  1 file changed, 6 insertions(+), 7 deletions(-)
include/uapi/drm/amdgpu_drm.h +6 -7
index 0cbd1540aeac..26e45fc5eb1a 100644
@@ -786,13 +786,6 @@ struct drm_amdgpu_cs_chunk_data {
  #define AMDGPU_INFO_VRAM_LOST_COUNTER		0x1F
  /* query ras mask of enabled features*/
  #define AMDGPU_INFO_RAS_ENABLED_FEATURES	0x20
-/* query video encode/decode caps */
-#define AMDGPU_INFO_VIDEO_CAPS			0x21
-	/* Subquery id: Decode */
-	#define AMDGPU_INFO_VIDEO_CAPS_DECODE		0
-	/* Subquery id: Encode */
-	#define AMDGPU_INFO_VIDEO_CAPS_ENCODE		1
-
  /* RAS MASK: UMC (VRAM) */
  #define AMDGPU_INFO_RAS_ENABLED_UMC			(1 << 0)
  /* RAS MASK: SDMA */
@@ -821,6 +814,12 @@ struct drm_amdgpu_cs_chunk_data {
  #define AMDGPU_INFO_RAS_ENABLED_MP1			(1 << 12)
  /* RAS MASK: FUSE */
  #define AMDGPU_INFO_RAS_ENABLED_FUSE			(1 << 13)
+/* query video encode/decode caps */
+#define AMDGPU_INFO_VIDEO_CAPS			0x21
+	/* Subquery id: Decode */
+	#define AMDGPU_INFO_VIDEO_CAPS_DECODE		0
+	/* Subquery id: Encode */
+	#define AMDGPU_INFO_VIDEO_CAPS_ENCODE		1
 
  #define AMDGPU_INFO_MMR_SE_INDEX_SHIFT	0
  #define AMDGPU_INFO_MMR_SE_INDEX_MASK	0xff