Skip to content

Commit 018892b

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/gfx11: fix wptr reset in KGQ init
commit b1f8104 upstream. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 75ebd42 commit 018892b

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
@@ -4199,7 +4199,7 @@ static int gfx_v11_0_kgq_init_queue(struct amdgpu_ring *ring, bool reset)
41994199
memcpy_toio(mqd, adev->gfx.me.mqd_backup[mqd_idx], sizeof(*mqd));
42004200
/* reset the ring */
42014201
ring->wptr = 0;
4202-
*ring->wptr_cpu_addr = 0;
4202+
atomic64_set((atomic64_t *)ring->wptr_cpu_addr, 0);
42034203
amdgpu_ring_clear_ring(ring);
42044204
}
42054205

0 commit comments

Comments
 (0)