drm/amdkfd: Initialize sdma vm when creating sdma queue
Subsystems (3)
PATCH 1/1 drm/amdkfd: Initialize sdma vm when creating sdma queue
From: Xihan Zhang <[email protected]>
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.
--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +2 -0
@@ -883,6 +883,8 @@ static int create_queue_cpsch(struct device_queue_manager *dqm, struct queue *q,return -ENOMEM ; } +init_sdma_vm (dqm, q, qpd); + retval = mqd->init_mqd (mqd, &q->mqd, &q->mqd_mem_obj, &q->gart_mqd_addr, &q->properties);if (retval !=0 )
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Oded Gabbay
From: Xihan Zhang <[email protected]>
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 <[email protected]>Reviewed-by Ben Goz <[email protected]>Signed-off-by Oded Gabbay <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +2
-1@@ -883,6 +883,8 @@ static int create_queue_cpsch(struct device_queue_manager *dqm, struct queue *q,return -ENOMEM ; } +init_sdma_vm (dqm, q, qpd); + retval = mqd->init_mqd (mqd, &q->mqd, &q->mqd_mem_obj, &q->gart_mqd_addr, &q->properties);if (retval !=0 ) --1.9.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel