Skip to content

Commit 2a8f746

Browse files
amd-sukhatrialexdeucher
authored andcommitted
drm/amdgpu: skip ip dump if devcoredump flag is set
Do not dump the ip registers during driver reload in passthrough environment. Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent e362b7c commit 2a8f746

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5368,14 +5368,15 @@ int amdgpu_do_asic_reset(struct list_head *device_list_handle,
53685368
tmp_adev = list_first_entry(device_list_handle, struct amdgpu_device,
53695369
reset_list);
53705370

5371-
if (!test_bit(AMDGPU_SKIP_COREDUMP, &reset_context->flags))
5371+
if (!test_bit(AMDGPU_SKIP_COREDUMP, &reset_context->flags)) {
53725372
amdgpu_reset_reg_dumps(tmp_adev);
53735373

5374-
/* Trigger ip dump before we reset the asic */
5375-
for (i = 0; i < tmp_adev->num_ip_blocks; i++)
5376-
if (tmp_adev->ip_blocks[i].version->funcs->dump_ip_state)
5377-
tmp_adev->ip_blocks[i].version->funcs->dump_ip_state(
5378-
(void *)tmp_adev);
5374+
/* Trigger ip dump before we reset the asic */
5375+
for (i = 0; i < tmp_adev->num_ip_blocks; i++)
5376+
if (tmp_adev->ip_blocks[i].version->funcs->dump_ip_state)
5377+
tmp_adev->ip_blocks[i].version->funcs
5378+
->dump_ip_state((void *)tmp_adev);
5379+
}
53795380

53805381
reset_context->reset_device_list = device_list_handle;
53815382
r = amdgpu_reset_perform_reset(tmp_adev, reset_context);

0 commit comments

Comments
 (0)