Skip to contentSkip to conversation

drm/amd/include : MES v11 and v12 API header update

PATCH In review Shaoyun Liu 3 participants 3 messages Feb 5, 2025 – Feb 6, 2025

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

PATCH 1/1 drm/amd/include : MES v11 and v12 API header update

MES requires driver set cleaner_shader_fence_mc_addr for cleaner shader support.

---
 drivers/gpu/drm/amd/include/mes_v11_api_def.h | 3 ++-
 drivers/gpu/drm/amd/include/mes_v12_api_def.h | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/include/mes_v11_api_def.h +2 -1
index eb46cb10c24d..6b5cd347dfb5 100644
@@ -266,7 +266,8 @@ union MESAPI_SET_HW_RESOURCES_1 {
 		};
 		uint64_t							mes_info_ctx_mc_addr;
 		uint32_t							mes_info_ctx_size;
-		uint32_t							mes_kiq_unmap_timeout; // unit is 100ms
+		uint64_t							reserved;
+		uint64_t							cleaner_shader_fence_mc_addr;
 	};
 
 	uint32_t max_dwords_in_api[API_FRAME_SIZE_IN_DWORDS];
drivers/gpu/drm/amd/include/mes_v12_api_def.h +2 -0
index c9b2ca5cf75f..1938150a1943 100644
@@ -278,6 +278,8 @@ union MESAPI_SET_HW_RESOURCES_1 {
 		uint32_t                            mes_debug_ctx_size;
 		/* unit is 100ms */
 		uint32_t                            mes_kiq_unmap_timeout;
+		uint64_t                            reserved;
+		uint64_t                            cleaner_shader_fence_mc_addr;
 	};
 
 	uint32_t max_dwords_in_api[API_FRAME_SIZE_IN_DWORDS];
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
Quoted 40 lines · Shaoyun Liu

MES requires driver set cleaner_shader_fence_mc_addr for cleaner shader support.

---
 drivers/gpu/drm/amd/include/mes_v11_api_def.h | 3 ++-
 drivers/gpu/drm/amd/include/mes_v12_api_def.h | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/include/mes_v11_api_def.h +2 -1
index eb46cb10c24d..6b5cd347dfb5 100644
@@ -266,7 +266,8 @@ union MESAPI_SET_HW_RESOURCES_1 {
                };
                uint64_t                                                        mes_info_ctx_mc_addr;
                uint32_t                                                        mes_info_ctx_size;
-               uint32_t                                                        mes_kiq_unmap_timeout; // unit is 100ms
+               uint64_t                                                        reserved;
+               uint64_t                                                        cleaner_shader_fence_mc_addr;
        };
 
        uint32_t max_dwords_in_api[API_FRAME_SIZE_IN_DWORDS];
drivers/gpu/drm/amd/include/mes_v12_api_def.h +2 -1
index c9b2ca5cf75f..1938150a1943 100644
@@ -278,6 +278,8 @@ union MESAPI_SET_HW_RESOURCES_1 {
                uint32_t                            mes_debug_ctx_size;
                /* unit is 100ms */
                uint32_t                            mes_kiq_unmap_timeout;
+               uint64_t                            reserved;
+               uint64_t                            cleaner_shader_fence_mc_addr;
        };
 
        uint32_t max_dwords_in_api[API_FRAME_SIZE_IN_DWORDS];
--

2.34.1

Acked-by Acked-by Alex Deucher
#2 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Thursday, February 6, 2025 12:44 AM
To: Liu, Shaoyun <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH] drm/amd/include : MES v11 and v12 API header update

Quoted 42 lines · Shaoyun Liu

MES requires driver set cleaner_shader_fence_mc_addr for cleaner shader support.

---
 drivers/gpu/drm/amd/include/mes_v11_api_def.h | 3 ++-
drivers/gpu/drm/amd/include/mes_v12_api_def.h | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/include/mes_v11_api_def.h +2 -1
index eb46cb10c24d..6b5cd347dfb5 100644
@@ -266,7 +266,8 @@ union MESAPI_SET_HW_RESOURCES_1 {
                };
                uint64_t                                                        mes_info_ctx_mc_addr;
                uint32_t                                                        mes_info_ctx_size;
-               uint32_t                                                        mes_kiq_unmap_timeout; // unit is 100ms
+               uint64_t                                                        reserved;
+               uint64_t                                                        cleaner_shader_fence_mc_addr;
        };
 
        uint32_t max_dwords_in_api[API_FRAME_SIZE_IN_DWORDS];
drivers/gpu/drm/amd/include/mes_v12_api_def.h +2 -1
index c9b2ca5cf75f..1938150a1943 100644
@@ -278,6 +278,8 @@ union MESAPI_SET_HW_RESOURCES_1 {
                uint32_t                            mes_debug_ctx_size;
                /* unit is 100ms */
                uint32_t                            mes_kiq_unmap_timeout;
+               uint64_t                            reserved;
+               uint64_t                            cleaner_shader_fence_mc_addr;
        };
 
        uint32_t max_dwords_in_api[API_FRAME_SIZE_IN_DWORDS];
--

2.34.1