Skip to content

Commit b1f8104

Browse files
committed
drm/amdgpu/gfx11: fix wptr reset in KGQ init
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. Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Jesse Zhang <jesse.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 1f16866) Cc: stable@vger.kernel.org
1 parent cc4f433 commit b1f8104

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4201,7 +4201,7 @@ static int gfx_v11_0_kgq_init_queue(struct amdgpu_ring *ring, bool reset)
42014201
memcpy_toio(mqd, adev->gfx.me.mqd_backup[mqd_idx], sizeof(*mqd));
42024202
/* reset the ring */
42034203
ring->wptr = 0;
4204-
*ring->wptr_cpu_addr = 0;
4204+
atomic64_set((atomic64_t *)ring->wptr_cpu_addr, 0);
42054205
amdgpu_ring_clear_ring(ring);
42064206
}
42074207

0 commit comments

Comments
 (0)