Skip to content

Commit 70e6599

Browse files
Lijo Lazargregkh
authored andcommitted
drm/amdkfd: Use the correct wptr size
commit cdc6705 upstream. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d50b5a7 commit 70e6599

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
@@ -123,7 +123,7 @@ static bool kq_initialize(struct kernel_queue *kq, struct kfd_node *dev,
123123

124124
memset(kq->pq_kernel_addr, 0, queue_size);
125125
memset(kq->rptr_kernel, 0, sizeof(*kq->rptr_kernel));
126-
memset(kq->wptr_kernel, 0, sizeof(*kq->wptr_kernel));
126+
memset(kq->wptr_kernel, 0, dev->kfd->device_info.doorbell_size);
127127

128128
prop.queue_size = queue_size;
129129
prop.is_interop = false;

0 commit comments

Comments
 (0)