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

drm/amdkfd: Use the correct wptr size

Write pointer could be 32-bit or 64-bit. Use the correct size during
initialization.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org

authored by

Lijo Lazar and committed by
Alex Deucher
cdc6705f 4217ef9a

+1 -1
+1 -1
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
··· 125 125 126 126 memset(kq->pq_kernel_addr, 0, queue_size); 127 127 memset(kq->rptr_kernel, 0, sizeof(*kq->rptr_kernel)); 128 - memset(kq->wptr_kernel, 0, sizeof(*kq->wptr_kernel)); 128 + memset(kq->wptr_kernel, 0, dev->kfd->device_info.doorbell_size); 129 129 130 130 prop.queue_size = queue_size; 131 131 prop.is_interop = false;