[PATCH 1/6] drm/amdkfd: Only initialize sdma vm for sdma queues

Zeng, Oak Oak.Zeng at amd.com
Wed Jun 5 16:08:20 UTC 2019

Hi Felix,

I rebased this series to the latest drm-next code base.


-----Original Message-----
From: Zeng, Oak <Oak.Zeng at amd.com> 
Sent: Wednesday, June 5, 2019 12:07 PM
To: amd-gfx at lists.freedesktop.org
Cc: Kuehling, Felix <Felix.Kuehling at amd.com>; Zhao, Yong <Yong.Zhao at amd.com>; Liu, Alex <Alex.Liu at amd.com>; Freehill, Chris <Chris.Freehill at amd.com>; Zeng, Oak <Oak.Zeng at amd.com>
Subject: [PATCH 1/6] drm/amdkfd: Only initialize sdma vm for sdma queues

Don't do the same for compute queues

Change-Id: Id5f743ca10c2b761590bfe18cab2f802d3c04d2d
Signed-off-by: Oak Zeng <Oak.Zeng at amd.com>
 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
index c18355d..00ca3dd 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
@@ -1209,8 +1209,9 @@ static int create_queue_cpsch(struct device_queue_manager *dqm, struct queue *q,
 	 * updates the is_evicted flag but is a no-op otherwise.
 	q->properties.is_evicted = !!qpd->evicted;
-	dqm->asic_ops.init_sdma_vm(dqm, q, qpd);
+	if (q->properties.type == KFD_QUEUE_TYPE_SDMA ||
+		q->properties.type == KFD_QUEUE_TYPE_SDMA_XGMI)
+		dqm->asic_ops.init_sdma_vm(dqm, q, qpd);
 	q->properties.tba_addr = qpd->tba_addr;
 	q->properties.tma_addr = qpd->tma_addr;
 	retval = mqd_mgr->init_mqd(mqd_mgr, &q->mqd, &q->mqd_mem_obj,

More information about the amd-gfx mailing list