]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdkfd: Enable SDMA queue reset on gfx v12.1
authorAmber Lin <Amber.Lin@amd.com>
Mon, 23 Mar 2026 18:30:23 +0000 (14:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 May 2026 22:13:46 +0000 (18:13 -0400)
After suspend/resume sdma_gang is supported on MES 12.1, SDMA queue reset
is supported too.

Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Reviewed-by: Michael Chen<michael.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_topology.c

index 46db0d65d2427b4dd60592c1542947590334d01d..630f46091dc75239c75b46ac6bacb453a42946b8 100644 (file)
@@ -514,7 +514,8 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr,
                        dev->node_props.capability |=
                                        HSA_CAP_AQL_QUEUE_DOUBLE_MAP;
 
-               if (KFD_GC_VERSION(dev->gpu) < IP_VERSION(10, 0, 0) &&
+               if ((KFD_GC_VERSION(dev->gpu) < IP_VERSION(10, 0, 0) ||
+                       KFD_GC_VERSION(dev->gpu) == IP_VERSION(12, 1, 0)) &&
                        (dev->gpu->adev->sdma.supported_reset & AMDGPU_RESET_TYPE_PER_QUEUE))
                                dev->node_props.capability2 |= HSA_CAP2_PER_SDMA_QUEUE_RESET_SUPPORTED;