]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: Skip coredump during resets for debug
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 31 May 2024 12:28:54 +0000 (17:58 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:17:12 +0000 (16:17 -0400)
Skip scheduling coredump when gpu reset is intentionally triggered
through debugfs.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c

index dff7033f2026db87b93b57473d9c74fbe7396965..3f492277d7d39a4c4bd441f8264704a830f2af36 100644 (file)
@@ -982,6 +982,7 @@ static void amdgpu_debugfs_reset_work(struct work_struct *work)
        reset_context.reset_req_dev = adev;
        reset_context.src = AMDGPU_RESET_SRC_USER;
        set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags);
+       set_bit(AMDGPU_SKIP_COREDUMP, &reset_context.flags);
 
        amdgpu_device_gpu_recover(adev, NULL, &reset_context);
 }