]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amdgpu: Log reset source during recovery
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 23 Jul 2025 05:13:00 +0000 (10:43 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Aug 2025 18:21:05 +0000 (14:21 -0400)
To get more context, add reset source to identify the source of gpu
recovery - job timeout, RAS, HWS hang etc.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 1055f5cda53c4be44b322211884a2888a0a65ff0..fe087328f6fd5bf5775a196964deded00818f3c7 100644 (file)
@@ -6438,8 +6438,9 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
                emergency_restart();
        }
 
-       dev_info(adev->dev, "GPU %s begin!\n",
-               need_emergency_restart ? "jobs stop":"reset");
+       dev_info(adev->dev, "GPU %s begin!. Source:  %d\n",
+                need_emergency_restart ? "jobs stop" : "reset",
+                reset_context->src);
 
        if (!amdgpu_sriov_vf(adev))
                hive = amdgpu_get_xgmi_hive(adev);