drm/amdgpu: add prints in IP State dump
authorSunil Khatri <sunil.khatri@amd.com>
Thu, 9 May 2024 11:08:38 +0000 (16:38 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 May 2024 19:13:20 +0000 (15:13 -0400)
add prints before and after ip state is dumped.
It avoids user to think of system being
stuck/hung as dump could take some time after a
gpu hang.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index e747896910704e9f1bbdbc2807c97cacff578677..bf1a6593dc5e907ccb097841cdae4dc947233e1c 100644 (file)
@@ -5373,11 +5373,13 @@ int amdgpu_do_asic_reset(struct list_head *device_list_handle,
        if (!test_bit(AMDGPU_SKIP_COREDUMP, &reset_context->flags)) {
                amdgpu_reset_reg_dumps(tmp_adev);
 
+               dev_info(tmp_adev->dev, "Dumping IP State\n");
                /* Trigger ip dump before we reset the asic */
                for (i = 0; i < tmp_adev->num_ip_blocks; i++)
                        if (tmp_adev->ip_blocks[i].version->funcs->dump_ip_state)
                                tmp_adev->ip_blocks[i].version->funcs
                                ->dump_ip_state((void *)tmp_adev);
+               dev_info(tmp_adev->dev, "Dumping IP State Completed\n");
        }
 
        reset_context->reset_device_list = device_list_handle;