drm/amdgpu: Log the creation of a coredump file
authorAndré Almeida <andrealmeid@igalia.com>
Thu, 20 Feb 2025 16:27:48 +0000 (13:27 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2025 16:44:00 +0000 (11:44 -0500)
After a GPU reset happens, the driver creates a coredump file. However,
the user might not be aware of it. Log the file creation the user can
find more information about the device and add the file to bug reports.
This is similar to what the xe driver does.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c

index 824f9da5b6cea9c95f46e4268cb914589ea3b088..7b50741dc097c43bd732322cf96a6ee434f79d79 100644 (file)
@@ -364,5 +364,9 @@ void amdgpu_coredump(struct amdgpu_device *adev, bool skip_vram_check,
 
        dev_coredumpm(dev->dev, THIS_MODULE, coredump, 0, GFP_NOWAIT,
                      amdgpu_devcoredump_read, amdgpu_devcoredump_free);
+
+       drm_info(dev, "AMDGPU device coredump file has been created\n");
+       drm_info(dev, "Check your /sys/class/drm/card%d/device/devcoredump/data\n",
+                dev->primary->index);
 }
 #endif