aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3701-drm-amdgpu-Correct-the-amdgpu_ucode_fini_bo-place-fo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3701-drm-amdgpu-Correct-the-amdgpu_ucode_fini_bo-place-fo.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3701-drm-amdgpu-Correct-the-amdgpu_ucode_fini_bo-place-fo.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3701-drm-amdgpu-Correct-the-amdgpu_ucode_fini_bo-place-fo.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3701-drm-amdgpu-Correct-the-amdgpu_ucode_fini_bo-place-fo.patch
new file mode 100644
index 00000000..a4138a90
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3701-drm-amdgpu-Correct-the-amdgpu_ucode_fini_bo-place-fo.patch
@@ -0,0 +1,36 @@
+From d4820b1141797868260a2e09c35b3bb8a6faae76 Mon Sep 17 00:00:00 2001
+From: Emily Deng <Emily.Deng@amd.com>
+Date: Thu, 8 Mar 2018 10:49:09 +0800
+Subject: [PATCH 3701/4131] drm/amdgpu: Correct the amdgpu_ucode_fini_bo place
+ for Tonga
+
+The amdgpu_ucode_fini_bo should be called after gfx_v8_0_hw_fini,
+or it will have KCQ disable failed issue.
+
+For Tonga, as it firstly finishes SMC block, and the SMC hw fini
+will call amdgpu_ucode_fini, which will lead the amdgpu_ucode_fini_bo
+called before gfx_v8_0_hw_fini, this is incorrect.
+
+Signed-off-by: Emily Deng <Emily.Deng@amd.com>
+Signed-off-by: Kalyan Alle <kalyan.alle@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+index 1c83ee2..e8501a4 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+@@ -1483,6 +1483,9 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev)
+ }
+
+ for (i = adev->num_ip_blocks - 1; i >= 0; i--) {
++ if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_SMC &&
++ adev->firmware.load_type == AMDGPU_FW_LOAD_SMU)
++ amdgpu_ucode_fini_bo(adev);
+ if (!adev->ip_blocks[i].status.hw)
+ continue;
+
+--
+2.7.4
+