Skip to content

Commit efc2005

Browse files
amd-yangpgregkh
authored andcommitted
drm/amdkfd: Update queue properties for metadata ring
[ Upstream commit 189208d ] 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: c51bb53 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 41245c3 commit efc2005

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,8 @@ int pqm_update_queue_properties(struct process_queue_manager *pqm,
590590
return err;
591591

592592
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)) {
594595
pr_debug("ring buf 0x%llx size 0x%llx not mapped on GPU\n",
595596
p->queue_address, p->queue_size);
596597
amdgpu_bo_unreserve(vm->root.bo);

0 commit comments

Comments
 (0)