drm/amdgpu/mes: disable mes sdma queue test
authorJack Xiao <Jack.Xiao@amd.com>
Wed, 26 May 2021 06:00:11 +0000 (14:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:43:53 +0000 (10:43 -0400)
Disable mes sdma queue test on sienna cichlid+,
for fw hasn't supported to map sdma queue.
The test can be enabled if fw supports.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c

index 51a6f30..e23c864 100644 (file)
@@ -1079,6 +1079,11 @@ int amdgpu_mes_self_test(struct amdgpu_device *adev)
        }
 
        for (i = 0; i < ARRAY_SIZE(queue_types); i++) {
+               /* On sienna cichlid+, fw hasn't supported to map sdma queue. */
+               if (adev->asic_type >= CHIP_SIENNA_CICHLID &&
+                   i == AMDGPU_RING_TYPE_SDMA)
+                       continue;
+
                r = amdgpu_mes_test_create_gang_and_queues(adev, pasid,
                                                           &gang_ids[i],
                                                           queue_types[i][0],