Skip to contentSkip to conversation

drm/amdkfd: fix gfx11 restrictions on debugging cooperative launch

PATCH In review Jonathan Kim 2 participants 3 messages Dec 17, 2025 – Jan 12

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

PATCH 1/1 drm/amdkfd: fix gfx11 restrictions on debugging cooperative launch

Restrictions on debugging cooperative launch for GFX11 devices should align to CWSR work around requirements.
i.e. devices without the need for the work around should not be subject to such restrictions.

---
 drivers/gpu/drm/amd/amdkfd/kfd_debug.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_debug.h +1 -2
index 27aa1a5b120f..fbb751821c69 100644
@@ -120,8 +120,7 @@ static inline bool kfd_dbg_has_gws_support(struct kfd_node *dev)
 			&& dev->kfd->mec2_fw_version < 0x1b6) ||
 		(KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 1)
 			&& dev->kfd->mec2_fw_version < 0x30) ||
-		(KFD_GC_VERSION(dev) >= IP_VERSION(11, 0, 0) &&
-			KFD_GC_VERSION(dev) < IP_VERSION(12, 0, 0)))
+		kfd_dbg_has_cwsr_workaround(dev))
 		return false;
 
 	/* Assume debugging and cooperative launch supported otherwise. */
Signature · 1 line
2.34.1
#1 lore raw

[Public]

Ping for review.

Jon

Quoted 36 lines

-----Original Message-----
From: Kim, Jonathan <[email protected]>
Sent: Wednesday, December 17, 2025 11:10 AM
To: [email protected]
Cc: Kim, Jonathan <[email protected]>
Subject: [PATCH] drm/amdkfd: fix gfx11 restrictions on debugging cooperative launch

Restrictions on debugging cooperative launch for GFX11 devices should align to CWSR work around requirements.
i.e. devices without the need for the work around should not be subject to such restrictions.

---
 drivers/gpu/drm/amd/amdkfd/kfd_debug.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_debug.h +1 -2
index 27aa1a5b120f..fbb751821c69 100644
@@ -120,8 +120,7 @@ static inline bool kfd_dbg_has_gws_support(struct
 kfd_node *dev)
                      && dev->kfd->mec2_fw_version < 0x1b6) ||
              (KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 1)
                      && dev->kfd->mec2_fw_version < 0x30) ||
-             (KFD_GC_VERSION(dev) >= IP_VERSION(11, 0, 0) &&
-                     KFD_GC_VERSION(dev) < IP_VERSION(12, 0, 0)))
+             kfd_dbg_has_cwsr_workaround(dev))
              return false;
 
      /* Assume debugging and cooperative launch supported otherwise. */

--
2.34.1

#2 lore raw
ThispatchisReviewed-by JamesZhu<[email protected]>
Quoted 42 lines · Jonathan

[Public]

Ping for review.

Jon

Quoted 36 lines

-----Original Message-----
From: Kim, Jonathan<[email protected]>
Sent: Wednesday, December 17, 2025 11:10 AM To:[email protected]
Cc: Kim, Jonathan<[email protected]>
Subject: [PATCH] drm/amdkfd: fix gfx11 restrictions on debugging cooperative launch

Restrictions on debugging cooperative launch for GFX11 devices should align to CWSR work around requirements.
i.e. devices without the need for the work around should not be subject to such restrictions.

---
  drivers/gpu/drm/amd/amdkfd/kfd_debug.h | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_debug.h +1 -2
index 27aa1a5b120f..fbb751821c69 100644
@@ -120,8 +120,7 @@ static inline bool kfd_dbg_has_gws_support(struct
 kfd_node *dev)
                       && dev->kfd->mec2_fw_version < 0x1b6) ||
               (KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 1)
                       && dev->kfd->mec2_fw_version < 0x30) ||
-             (KFD_GC_VERSION(dev) >= IP_VERSION(11, 0, 0) &&
-                     KFD_GC_VERSION(dev) < IP_VERSION(12, 0, 0)))
+             kfd_dbg_has_cwsr_workaround(dev))
               return false;
 
       /* Assume debugging and cooperative launch supported otherwise. */

--
2.34.1