Skip to contentSkip to conversation

drm/amdgpu: Skip coredump during resets for debug

PATCH In review Lijo Lazar 3 participants 3 messages May 31, 2024 – Jun 3, 2024

Subsystems (2)
lore
Share & tools
lore

Lijo Lazar

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Skip coredump during resets for debug

Skip scheduling coredump when gpu reset is intentionally triggered through debugfs.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +1 -0
index 10832b470448..1a9fda1d20fb 100644
@@ -981,6 +981,7 @@ static void amdgpu_debugfs_reset_work(struct work_struct *work)
 	reset_context.method = AMD_RESET_METHOD_NONE;
 	reset_context.reset_req_dev = adev;
 	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);
 }
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Thanks & Regards
Asad

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Lijo Lazar
Sent: Friday, May 31, 2024 6:04 PM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Khatri, Sunil <[email protected]>
Subject: [PATCH] drm/amdgpu: Skip coredump during resets for debug

Skip scheduling coredump when gpu reset is intentionally triggered through debugfs.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +1 -1
index 10832b470448..1a9fda1d20fb 100644
@@ -981,6 +981,7 @@ static void amdgpu_debugfs_reset_work(struct work_struct *work)
        reset_context.method = AMD_RESET_METHOD_NONE;
        reset_context.reset_req_dev = adev;
        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);  }
--

2.25.1

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Lijo Lazar

Am 31.05.24 um 14:34 schrieb Lijo Lazar:

Quoted 4 lines

Skip scheduling coredump when gpu reset is intentionally triggered through debugfs.

Quoted 16 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +1 -0
index 10832b470448..1a9fda1d20fb 100644
@@ -981,6 +981,7 @@ static void amdgpu_debugfs_reset_work(struct work_struct *work)
  	reset_context.method = AMD_RESET_METHOD_NONE;
  	reset_context.reset_req_dev = adev;
  	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);
  }