aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2816-drm-amdgpu-Set-queue_preemption_timeout_ms-default-v.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2816-drm-amdgpu-Set-queue_preemption_timeout_ms-default-v.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2816-drm-amdgpu-Set-queue_preemption_timeout_ms-default-v.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2816-drm-amdgpu-Set-queue_preemption_timeout_ms-default-v.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2816-drm-amdgpu-Set-queue_preemption_timeout_ms-default-v.patch
new file mode 100644
index 00000000..b298f0e4
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2816-drm-amdgpu-Set-queue_preemption_timeout_ms-default-v.patch
@@ -0,0 +1,31 @@
+From ed989f7346ed0d2e95f6dd9d4dff2d736d7df43e Mon Sep 17 00:00:00 2001
+From: Oak Zeng <Oak.Zeng@amd.com>
+Date: Wed, 26 Jun 2019 10:16:56 -0500
+Subject: [PATCH 2816/2940] drm/amdgpu: Set queue_preemption_timeout_ms default
+ value
+
+Set default value of this kernel parameter to 9000
+
+Change-Id: Ia1ca294fbeddfc8c956758b6013c2ee64c668b69
+Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+index 6a37f79db5d5..604571935072 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+@@ -771,7 +771,7 @@ MODULE_PARM_DESC(keep_idle_process_evicted, "Restore evicted process only if que
+ * DOC: queue_preemption_timeout_ms (int)
+ * queue preemption timeout in ms (1 = Minimum, 9000 = default)
+ */
+-int queue_preemption_timeout_ms;
++int queue_preemption_timeout_ms = 9000;
+ module_param(queue_preemption_timeout_ms, int, 0644);
+ MODULE_PARM_DESC(queue_preemption_timeout_ms, "queue preemption timeout in ms (1 = Minimum, 9000 = default)");
+ #endif
+--
+2.17.1
+