Skip to contentSkip to conversation

drm/amd/include : Update MES v12 API header - SUSPEND

PATCH In review Shaoyun Liu 2 participants 2 messages Jan 22

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

PATCH 1/1 drm/amd/include : Update MES v12 API header - SUSPEND

Update SUSPEND API to support sdma queues

---
 drivers/gpu/drm/amd/include/mes_v12_api_def.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/include/mes_v12_api_def.h +4 -2
index 83e4f0142324..e541a43714a1 100644
@@ -492,8 +492,10 @@ union MESAPI__SUSPEND {
 		union MES_API_HEADER	header;
 		/* false - suspend all gangs; true - specific gang */
 		struct {
-			uint32_t	suspend_all_gangs : 1;
-			uint32_t	reserved : 31;
+			uint32_t      suspend_all_gangs : 1; // suspend all compute gangs (can be set together with suspend_all_sdma_gangs)
+			uint32_t      query_status : 1;
+			uint32_t      suspend_all_sdma_gangs : 1; // suspend all sdma gangs (can be set together with suspend_all_gangs)
+			uint32_t      reserved : 29;
 		};
 		/* gang_context_addr is valid only if suspend_all = false */
 
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Shaoyun Liu

Update SUSPEND API to support sdma queues

It would be good to note the minimum firmware version which supports this. With that fixed:

Quoted 26 lines
---
 drivers/gpu/drm/amd/include/mes_v12_api_def.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/include/mes_v12_api_def.h +4 -3
index 83e4f0142324..e541a43714a1 100644
@@ -492,8 +492,10 @@ union MESAPI__SUSPEND {
                union MES_API_HEADER    header;
                /* false - suspend all gangs; true - specific gang */
                struct {
-                       uint32_t        suspend_all_gangs : 1;
-                       uint32_t        reserved : 31;
+                       uint32_t      suspend_all_gangs : 1; // suspend all compute gangs (can be set together with suspend_all_sdma_gangs)
+                       uint32_t      query_status : 1;
+                       uint32_t      suspend_all_sdma_gangs : 1; // suspend all sdma gangs (can be set together with suspend_all_gangs)
+                       uint32_t      reserved : 29;
                };
                /* gang_context_addr is valid only if suspend_all = false */
 
--

2.34.1