AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: fix gpu recovery disable with per queue reset
@ 2025-01-08 20:01 Jonathan Kim
  2025-01-08 20:32 ` Alex Deucher
  2025-01-09  6:14 ` Lazar, Lijo
  0 siblings, 2 replies; 12+ messages in thread
From: Jonathan Kim @ 2025-01-08 20:01 UTC (permalink / raw)
  To: amd-gfx; +Cc: Harish.Kasiviswanathan, Jonathan Kim

Per queue reset should be bypassed when gpu recovery is disabled
with module parameter.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
index cc66ebb7bae1..441568163e20 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
@@ -1131,6 +1131,9 @@ uint64_t kgd_gfx_v9_hqd_get_pq_addr(struct amdgpu_device *adev,
 	uint32_t low, high;
 	uint64_t queue_addr = 0;
 
+	if (!amdgpu_gpu_recovery)
+		return 0;
+
 	kgd_gfx_v9_acquire_queue(adev, pipe_id, queue_id, inst);
 	amdgpu_gfx_rlc_enter_safe_mode(adev, inst);
 
@@ -1179,6 +1182,9 @@ uint64_t kgd_gfx_v9_hqd_reset(struct amdgpu_device *adev,
 	uint32_t low, high, pipe_reset_data = 0;
 	uint64_t queue_addr = 0;
 
+	if (!amdgpu_gpu_recovery)
+		return 0;
+
 	kgd_gfx_v9_acquire_queue(adev, pipe_id, queue_id, inst);
 	amdgpu_gfx_rlc_enter_safe_mode(adev, inst);
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-01-15  8:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08 20:01 [PATCH] drm/amdgpu: fix gpu recovery disable with per queue reset Jonathan Kim
2025-01-08 20:32 ` Alex Deucher
2025-01-09  6:14 ` Lazar, Lijo
2025-01-09 14:57   ` Kim, Jonathan
2025-01-10  3:38     ` Lazar, Lijo
2025-01-10 16:13       ` Kim, Jonathan
2025-01-10 16:29         ` Lazar, Lijo
2025-01-10 21:23           ` Kim, Jonathan
2025-01-11  3:36             ` Lazar, Lijo
2025-01-14 17:21               ` Kim, Jonathan
2025-01-15  8:29                 ` Lazar, Lijo
2025-01-15  8:32                   ` Lazar, Lijo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox