Skip to content

Commit d9790cf

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/gfx12: fix wptr reset in KGQ init
commit 9077d32 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 a2918f9) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4867b51 commit d9790cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3078,7 +3078,7 @@ static int gfx_v12_0_kgq_init_queue(struct amdgpu_ring *ring, bool reset)
30783078
memcpy_toio(mqd, adev->gfx.me.mqd_backup[mqd_idx], sizeof(*mqd));
30793079
/* reset the ring */
30803080
ring->wptr = 0;
3081-
*ring->wptr_cpu_addr = 0;
3081+
atomic64_set((atomic64_t *)ring->wptr_cpu_addr, 0);
30823082
amdgpu_ring_clear_ring(ring);
30833083
}
30843084

0 commit comments

Comments
 (0)