aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2947-drm-amdgpu-correct-vce-fw-data-and-stack-size.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2947-drm-amdgpu-correct-vce-fw-data-and-stack-size.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2947-drm-amdgpu-correct-vce-fw-data-and-stack-size.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2947-drm-amdgpu-correct-vce-fw-data-and-stack-size.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2947-drm-amdgpu-correct-vce-fw-data-and-stack-size.patch
new file mode 100644
index 00000000..afea0a02
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2947-drm-amdgpu-correct-vce-fw-data-and-stack-size.patch
@@ -0,0 +1,33 @@
+From 84cc6a1a176c6a28cdabcbf5a6989d2fde3da593 Mon Sep 17 00:00:00 2001
+From: Frank Min <Frank.Min@amd.com>
+Date: Mon, 6 Nov 2017 15:34:55 +0800
+Subject: [PATCH 2947/4131] drm/amdgpu: correct vce fw data and stack size
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+this fix the VCE world switch hang issue
+
+Change-Id: Ie4f71267962d10b3399e4abe5c2607fb1a7c9a4a
+Signed-off-by: Frank Min <Frank.Min@amd.com>
+Acked-by: Christian König <christian.koenig@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
+index 0071a5c..308949d 100755
+--- a/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
+@@ -423,7 +423,7 @@ static int vce_v4_0_sw_init(void *handle)
+ if (r)
+ return r;
+
+- size = (VCE_V4_0_STACK_SIZE + VCE_V4_0_DATA_SIZE) * 2;
++ size = VCE_V4_0_STACK_SIZE + VCE_V4_0_DATA_SIZE;
+ if (adev->firmware.load_type != AMDGPU_FW_LOAD_PSP)
+ size += VCE_V4_0_FW_SIZE;
+
+--
+2.7.4
+