From: Lijo Lazar Date: Fri, 31 May 2024 12:28:54 +0000 (+0530) Subject: drm/amdgpu: Skip coredump during resets for debug X-Git-Tag: v6.11-rc1~141^2~18^2~138 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a86fdc422c926eab7d42a8194eaacf05e1d699e;p=thirdparty%2Flinux.git drm/amdgpu: Skip coredump during resets for debug Skip scheduling coredump when gpu reset is intentionally triggered through debugfs. Signed-off-by: Lijo Lazar Reviewed-by: Asad Kamal Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c index dff7033f2026d..3f492277d7d39 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c @@ -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); }