Commit cc4f433b authored by Alex Deucher's avatar Alex Deucher
Browse files

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: default avatarTimur Kristóf <timur.kristof@gmail.com>
Reviewed-by: default avatarJesse Zhang <jesse.zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit e80b1d1a)
Cc: stable@vger.kernel.org
parent b1defcdc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6879,7 +6879,7 @@ static int gfx_v10_0_kgq_init_queue(struct amdgpu_ring *ring, bool reset)
			memcpy_toio(mqd, adev->gfx.me.mqd_backup[mqd_idx], sizeof(*mqd));
		/* reset the ring */
		ring->wptr = 0;
		*ring->wptr_cpu_addr = 0;
		atomic64_set((atomic64_t *)ring->wptr_cpu_addr, 0);
		amdgpu_ring_clear_ring(ring);
	}