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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdkfd: Update queue properties for metadata ring

Metadata ring and queue ring is allocated as one buffer and map
to GPU, so update queue peoperties should add the queue metadata
size and ring size as buffer size to validate queue ring buffer.

Fixes: c51bb53d5c68 ("drm/amdkfd: Add metadata ring buffer for compute")
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Philip Yang and committed by
Alex Deucher
189208d3 29756a75

+2 -1
+2 -1
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
··· 590 590 return err; 591 591 592 592 if (kfd_queue_buffer_get(vm, (void *)p->queue_address, &p->ring_bo, 593 - p->queue_size)) { 593 + p->queue_size + 594 + pqn->q->properties.metadata_queue_size)) { 594 595 pr_debug("ring buf 0x%llx size 0x%llx not mapped on GPU\n", 595 596 p->queue_address, p->queue_size); 596 597 amdgpu_bo_unreserve(vm->root.bo);