Skip to content

Commit 75ebd42

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/gfx10: fix wptr reset in KGQ init
commit cc4f433 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 e80b1d1) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9a6d87f commit 75ebd42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6878,7 +6878,7 @@ static int gfx_v10_0_kgq_init_queue(struct amdgpu_ring *ring, bool reset)
68786878
memcpy_toio(mqd, adev->gfx.me.mqd_backup[mqd_idx], sizeof(*mqd));
68796879
/* reset the ring */
68806880
ring->wptr = 0;
6881-
*ring->wptr_cpu_addr = 0;
6881+
atomic64_set((atomic64_t *)ring->wptr_cpu_addr, 0);
68826882
amdgpu_ring_clear_ring(ring);
68836883
}
68846884

0 commit comments

Comments
 (0)