mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-28 21:46:02 -04:00
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
This commit is contained in:
@@ -125,7 +125,7 @@ static bool kq_initialize(struct kernel_queue *kq, struct kfd_node *dev,
|
||||
|
||||
memset(kq->pq_kernel_addr, 0, queue_size);
|
||||
memset(kq->rptr_kernel, 0, sizeof(*kq->rptr_kernel));
|
||||
memset(kq->wptr_kernel, 0, sizeof(*kq->wptr_kernel));
|
||||
memset(kq->wptr_kernel, 0, dev->kfd->device_info.doorbell_size);
|
||||
|
||||
prop.queue_size = queue_size;
|
||||
prop.is_interop = false;
|
||||
|
||||
Reference in New Issue
Block a user