Skip to content

Commit 79b066b

Browse files
Xihan Zhangogabbay
authored andcommitted
drm/amdkfd: Initialize sdma vm when creating sdma queue
This patch fixes a bug where sdma vm wasn't initialized when an sdma queue was created in HWS mode. This caused GPUVM faults to appear on dmesg and it is one of the causes that SDMA queues are not working. Signed-off-by: Xihan Zhang <xihan.zhang@amd.com> Reviewed-by: Ben Goz <ben.goz@amd.comt> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Cc: stable@vger.kernel.org Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 42e08c7 commit 79b066b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,8 @@ static int create_queue_cpsch(struct device_queue_manager *dqm, struct queue *q,
883883
return -ENOMEM;
884884
}
885885

886+
init_sdma_vm(dqm, q, qpd);
887+
886888
retval = mqd->init_mqd(mqd, &q->mqd, &q->mqd_mem_obj,
887889
&q->gart_mqd_addr, &q->properties);
888890
if (retval != 0)

0 commit comments

Comments
 (0)