aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3617-drm-amdgpu-adjust-timeout-for-ib_ring_tests-v2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3617-drm-amdgpu-adjust-timeout-for-ib_ring_tests-v2.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3617-drm-amdgpu-adjust-timeout-for-ib_ring_tests-v2.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3617-drm-amdgpu-adjust-timeout-for-ib_ring_tests-v2.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3617-drm-amdgpu-adjust-timeout-for-ib_ring_tests-v2.patch
new file mode 100644
index 00000000..c1d64b8a
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3617-drm-amdgpu-adjust-timeout-for-ib_ring_tests-v2.patch
@@ -0,0 +1,49 @@
+From 3eba3e5870029e4e97e570edce86dbf1a10353de Mon Sep 17 00:00:00 2001
+From: Monk Liu <Monk.Liu@amd.com>
+Date: Tue, 23 Jan 2018 18:26:20 +0800
+Subject: [PATCH 3617/4131] drm/amdgpu: adjust timeout for ib_ring_tests(v2)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+issue:
+sometime GFX/MM ib test hit timeout under SRIOV env, root cause
+is that engine doesn't come back soon enough so the current
+IB test considered as timed out.
+
+fix:
+for SRIOV GFX IB test wait time need to be expanded a lot during
+SRIOV runtimei mode since it couldn't really begin before GFX engine
+come back.
+
+for SRIOV MM IB test it always need more time since MM scheduling
+is not go together with GFX engine, it is controled by h/w MM
+scheduler so no matter runtime or exclusive mode MM IB test
+always need more time.
+
+v2:
+use ring type instead of idx to judge
+
+Change-Id: I0342371bc073656476ad850e1f5d9a021846dc8c
+Signed-off-by: Monk Liu <Monk.Liu@amd.com>
+Reviewed-by: Christian König <christian.koenig@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
+index f45d906..e683e3a 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
+@@ -346,7 +346,7 @@ int amdgpu_ib_ring_tests(struct amdgpu_device *adev)
+ /* for CP & SDMA engines since they are scheduled together so
+ * need to make the timeout width enough to cover the time
+ * cost waiting for it coming back under RUNTIME only
+- */
++ */
+ tmo_gfx = 8 * AMDGPU_IB_TEST_TIMEOUT;
+ }
+
+--
+2.7.4
+