aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorPratik Vishwakarma <Pratik.Vishwakarma@amd.com>2018-10-03 11:15:11 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-10-09 18:06:12 -0400
commit158b594a96529d895df943a4764609438a01d687 (patch)
tree7582a17a9ba6ae8dd5d76121f199a4c67e12b9cb /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parentc1f0320e03207255ef618d1bbfe0939d03c7cfac (diff)
drm/amdgpu: skip IB tests for KIQ in general
[Why] 1. We never submit IBs to KIQ. 2. Ring test pass without KIQ's ring also. 3. By skipping we see an improvement of around 500ms in the amdgpu's resume time. [How] skip IB tests for KIQ ring type. Signed-off-by: Shirish S <shirish.s@amd.com> Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
index 47817e00f54f..b8963b725dfa 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
@@ -354,6 +354,14 @@ int amdgpu_ib_ring_tests(struct amdgpu_device *adev)
354 if (!ring || !ring->ready) 354 if (!ring || !ring->ready)
355 continue; 355 continue;
356 356
357 /* skip IB tests for KIQ in general for the below reasons:
358 * 1. We never submit IBs to the KIQ
359 * 2. KIQ doesn't use the EOP interrupts,
360 * we use some other CP interrupt.
361 */
362 if (ring->funcs->type == AMDGPU_RING_TYPE_KIQ)
363 continue;
364
357 /* MM engine need more time */ 365 /* MM engine need more time */
358 if (ring->funcs->type == AMDGPU_RING_TYPE_UVD || 366 if (ring->funcs->type == AMDGPU_RING_TYPE_UVD ||
359 ring->funcs->type == AMDGPU_RING_TYPE_VCE || 367 ring->funcs->type == AMDGPU_RING_TYPE_VCE ||