AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amdgpu/gfx10: fix wptr reset in KGQ init
@ 2026-01-29  4:34 Alex Deucher
  2026-01-29  4:34 ` [PATCH 2/3] drm/amdgpu/gfx11: " Alex Deucher
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Alex Deucher @ 2026-01-29  4:34 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

wptr is a 64 bit value and we need to update the
full value, not just 32 bits. Align with what we
already do for KCQs.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
index e9254ec3b6417..ef7d91a4437ec 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
@@ -6883,7 +6883,7 @@ static int gfx_v10_0_kgq_init_queue(struct amdgpu_ring *ring, bool reset)
 			memcpy_toio(mqd, adev->gfx.me.mqd_backup[mqd_idx], sizeof(*mqd));
 		/* reset the ring */
 		ring->wptr = 0;
-		*ring->wptr_cpu_addr = 0;
+		atomic64_set((atomic64_t *)ring->wptr_cpu_addr, 0);
 		amdgpu_ring_clear_ring(ring);
 	}
 
-- 
2.52.0


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

end of thread, other threads:[~2026-01-30 14:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-29  4:34 [PATCH 1/3] drm/amdgpu/gfx10: fix wptr reset in KGQ init Alex Deucher
2026-01-29  4:34 ` [PATCH 2/3] drm/amdgpu/gfx11: " Alex Deucher
2026-01-29  4:34 ` [PATCH 3/3] drm/amdgpu/gfx12: " Alex Deucher
2026-01-29  8:55   ` Zhang, Jesse(Jie)
2026-01-29  9:41 ` [PATCH 1/3] drm/amdgpu/gfx10: " Timur Kristóf
2026-01-29 14:09   ` Alex Deucher
2026-01-29 15:31 ` Tvrtko Ursulin
2026-01-29 16:39   ` Alex Deucher
2026-01-30 10:27     ` Tvrtko Ursulin
2026-01-30 14:31       ` Alex Deucher

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