drm/amdgpu: skip kiq ib tests if mes enabled
authorJack Xiao <Jack.Xiao@amd.com>
Fri, 20 Mar 2020 07:07:27 +0000 (15:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:43:52 +0000 (10:43 -0400)
For kiq conflicts with mes, skip kiq ib tests.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Acked-by: Christian König <christian.koenig@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_ib.c

index d8354453cc29e3bc34aaaa5778e2737dd4386214..258cffe3c06a23d1360cb5d2831e5fa9fb5f9a95 100644 (file)
@@ -390,6 +390,10 @@ int amdgpu_ib_ring_tests(struct amdgpu_device *adev)
                if (!ring->sched.ready || !ring->funcs->test_ib)
                        continue;
 
+               if (adev->enable_mes &&
+                   ring->funcs->type == AMDGPU_RING_TYPE_KIQ)
+                       continue;
+
                /* MM engine need more time */
                if (ring->funcs->type == AMDGPU_RING_TYPE_UVD ||
                        ring->funcs->type == AMDGPU_RING_TYPE_VCE ||