drm/amdkfd: Add sdma allocation debug message

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>
This commit is contained in:
Oak Zeng 2018-11-08 10:40:41 -05:00 committed by Alex Deucher
parent cb77ee7cae
commit 96eb5f9dd3
1 changed files with 3 additions and 0 deletions

View 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->sdma_id / get_num_sdma_engines(dqm);
q->properties.sdma_engine_id = q->properties.sdma_engine_id =
q->sdma_id % get_num_sdma_engines(dqm); 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); retval = allocate_doorbell(qpd, q);