Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/gfx10: 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 e80b1d1aa1073230b6c25a1a72e88f37e425ccda)
Cc: stable@vger.kernel.org

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
··· 6879 6879 memcpy_toio(mqd, adev->gfx.me.mqd_backup[mqd_idx], sizeof(*mqd)); 6880 6880 /* reset the ring */ 6881 6881 ring->wptr = 0; 6882 - *ring->wptr_cpu_addr = 0; 6882 + atomic64_set((atomic64_t *)ring->wptr_cpu_addr, 0); 6883 6883 amdgpu_ring_clear_ring(ring); 6884 6884 } 6885 6885