Skip to content

Commit cdc6705

Browse files
Lijo Lazaralexdeucher
authored andcommitted
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 <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 4217ef9 commit cdc6705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static bool kq_initialize(struct kernel_queue *kq, struct kfd_node *dev,
125125

126126
memset(kq->pq_kernel_addr, 0, queue_size);
127127
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);
129129

130130
prop.queue_size = queue_size;
131131
prop.is_interop = false;

0 commit comments

Comments
 (0)