drm/amdkfd: Avoid queue reset if disabled

If ring reset is disabled, skip resetting queues. Instead, fall back to
device based reset.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Lijo Lazar
2025-06-30 10:07:14 +05:30
committed by Alex Deucher
parent 9888f73679
commit 91134e8008

View File

@@ -2339,9 +2339,18 @@ reset_fail:
static int reset_queues_on_hws_hang(struct device_queue_manager *dqm, bool is_sdma)
{
struct amdgpu_device *adev = dqm->dev->adev;
while (halt_if_hws_hang)
schedule();
if (adev->debug_disable_gpu_ring_reset) {
dev_info_once(adev->dev,
"%s queue hung, but ring reset disabled",
is_sdma ? "sdma" : "compute");
return -EPERM;
}
if (!amdgpu_gpu_recovery)
return -ENOTRECOVERABLE;