aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3292-drm-amdgpu-start-autoload-till-RLCG-fw-for-navi12.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3292-drm-amdgpu-start-autoload-till-RLCG-fw-for-navi12.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3292-drm-amdgpu-start-autoload-till-RLCG-fw-for-navi12.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3292-drm-amdgpu-start-autoload-till-RLCG-fw-for-navi12.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3292-drm-amdgpu-start-autoload-till-RLCG-fw-for-navi12.patch
new file mode 100644
index 00000000..0b459043
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3292-drm-amdgpu-start-autoload-till-RLCG-fw-for-navi12.patch
@@ -0,0 +1,31 @@
+From 44001852519e72041b1302f1534b20e54180c8f8 Mon Sep 17 00:00:00 2001
+From: Xiaojie Yuan <xiaojie.yuan@amd.com>
+Date: Thu, 18 Jul 2019 05:00:00 +0800
+Subject: [PATCH 3292/4256] drm/amdgpu: start autoload till RLCG fw for navi12
+
+rlc save restore list is not ready yet for navi12
+
+Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
+Reviewed-by: Jack Xiao <Jack.Xiao@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+index ec3d0ba9462d..c83642e9ed34 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+@@ -1028,7 +1028,8 @@ static int psp_np_fw_load(struct psp_context *psp)
+ return ret;
+
+ /* Start rlc autoload after psp recieved all the gfx firmware */
+- if (ucode->ucode_id == AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM) {
++ if (ucode->ucode_id == AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM ||
++ (adev->asic_type == CHIP_NAVI12 && ucode->ucode_id == AMDGPU_UCODE_ID_RLC_G)) {
+ ret = psp_rlc_autoload(psp);
+ if (ret) {
+ DRM_ERROR("Failed to start rlc autoload\n");
+--
+2.17.1
+