drm/amdkfd: Add sdma allocation debug message
authorOak Zeng <Oak.Zeng@amd.com>
Thu, 8 Nov 2018 15:40:41 +0000 (10:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:01 +0000 (12:21 -0500)
Add debug messages during SDMA queue allocation.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c

index 0de8cf45c130e077018175f6a532d26f9410b1b2..775f20eb4f68be196b1d68df0d156daf378e9618 100644 (file)
@@ -1181,6 +1181,9 @@ static int create_queue_cpsch(struct device_queue_manager *dqm, struct queue *q,
                        q->sdma_id / get_num_sdma_engines(dqm);
                q->properties.sdma_engine_id =
                        q->sdma_id % get_num_sdma_engines(dqm);
+               pr_debug("SDMA id is:    %d\n", q->sdma_id);
+               pr_debug("SDMA queue id: %d\n", q->properties.sdma_queue_id);
+               pr_debug("SDMA engine id: %d\n", q->properties.sdma_engine_id);
        }
 
        retval = allocate_doorbell(qpd, q);