]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdkfd: Queue reset support in KFD topology
authorAmber Lin <Amber.Lin@amd.com>
Mon, 23 Mar 2026 21:12:43 +0000 (17:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2026 18:46:05 +0000 (14:46 -0400)
User mode compute queue/pipe reset was originally only supported in GC 9.
It is now also supported in GC 12.1. Report it in KFD topology.

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

index 29dee26261ab1fd387707e72da41e6a5e83e1b9d..46db0d65d2427b4dd60592c1542947590334d01d 100644 (file)
@@ -2027,6 +2027,7 @@ static void kfd_topology_set_capabilities(struct kfd_topology_device *dev)
                if (KFD_GC_VERSION(dev->gpu) >= IP_VERSION(12, 1, 0)) {
                        dev->node_props.capability |=
                                HSA_CAP_TRAP_DEBUG_PRECISE_MEMORY_OPERATIONS_SUPPORTED;
+                       dev->node_props.capability |= HSA_CAP_PER_QUEUE_RESET_SUPPORTED;
                        dev->node_props.capability2 |=
                                HSA_CAP2_TRAP_DEBUG_LDS_OUT_OF_ADDR_RANGE_SUPPORTED;
                }