From: Alex Deucher <alexander.deucher@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Alex Deucher <alexander.deucher@amd.com>
Subject: [PATCH 2/3] drm/amdgpu/gfx11: fix wptr reset in KGQ init
Date: Wed, 28 Jan 2026 23:34:45 -0500 [thread overview]
Message-ID: <20260129043446.33377-2-alexander.deucher@amd.com> (raw)
In-Reply-To: <20260129043446.33377-1-alexander.deucher@amd.com>
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_v11_0.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index 6145cfc0334b2..b5a2d09fc3469 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@ -4224,7 +4224,7 @@ static int gfx_v11_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
next prev parent reply other threads:[~2026-01-29 4:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-29 4:34 [PATCH 1/3] drm/amdgpu/gfx10: fix wptr reset in KGQ init Alex Deucher
2026-01-29 4:34 ` Alex Deucher [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260129043446.33377-2-alexander.deucher@amd.com \
--to=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox