]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdkfd: fix gfx11 restrictions on debugging cooperative launch
authorJonathan Kim <jonathan.kim@amd.com>
Wed, 17 Dec 2025 16:03:12 +0000 (11:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Jan 2026 02:50:12 +0000 (21:50 -0500)
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.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: James Zhu <james.zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 230ef3977d6ffdd498ffa9baa6f5a061786189bf)

drivers/gpu/drm/amd/amdkfd/kfd_debug.h

index 27aa1a5b120ff7f3261190a395b528ce903c1219..fbb751821c6926fac15d34c8ebc7eadafd841380 100644 (file)
@@ -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. */