AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Timur Kristóf" <timur.kristof@gmail.com>
To: amd-gfx@lists.freedesktop.org
Cc: Alex Deucher <alexander.deucher@amd.com>,
	Alex Deucher <alexander.deucher@amd.com>
Subject: Re: [PATCH 1/3] drm/amdgpu/gfx10: fix wptr reset in KGQ init
Date: Thu, 29 Jan 2026 10:41:55 +0100	[thread overview]
Message-ID: <3572729.LZWGnKmheA@timur-hyperion> (raw)
In-Reply-To: <20260129043446.33377-1-alexander.deucher@amd.com>

On Thursday, January 29, 2026 5:34:44 AM Central European Standard Time Alex 
Deucher wrote:
> 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>

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
for the series.

I notice that the code base already does this for gfx9, but is rather 
inconsistent on gfx6-8. If you think that's useful, I could submit some 
patches to do the same on older GPUs. What do you think?

> ---
>  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);
>  	}





  parent reply	other threads:[~2026-01-29  9:42 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 ` [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 ` Timur Kristóf [this message]
2026-01-29 14:09   ` [PATCH 1/3] drm/amdgpu/gfx10: " 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=3572729.LZWGnKmheA@timur-hyperion \
    --to=timur.kristof@gmail.com \
    --cc=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