drm/amdkfd: Print more sdma engine hqds in debug fs
authorOak Zeng <Oak.Zeng@amd.com>
Fri, 4 Oct 2019 14:34:29 +0000 (09:34 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2019 20:10:01 +0000 (15:10 -0500)
Previously only PCIe-optimized SDMA engine hqds were
exposed in debug fs. Print all SDMA engine hqds.

Reported-by: Jonathan Kim <Jonathan.Kim@amd.com>
Signed-off-by: Jonathan Kim <Jonathan.Kim@amd.com>
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-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 1d82bfe2f3f8b4f1145c27c9e3b5e69c134fcdcf..81fb545cf42c6f90e79a374ba2eebde5c7df89ec 100644 (file)
@@ -1937,7 +1937,8 @@ int dqm_debugfs_hqds(struct seq_file *m, void *data)
                }
        }
 
-       for (pipe = 0; pipe < get_num_sdma_engines(dqm); pipe++) {
+       for (pipe = 0; pipe < get_num_sdma_engines(dqm) +
+                       get_num_xgmi_sdma_engines(dqm); pipe++) {
                for (queue = 0;
                     queue < dqm->dev->device_info->num_sdma_queues_per_engine;
                     queue++) {