aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2261-drm-amd-powerplay-add-navi10-smc-ucode-init-and-navi.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2261-drm-amd-powerplay-add-navi10-smc-ucode-init-and-navi.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2261-drm-amd-powerplay-add-navi10-smc-ucode-init-and-navi.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2261-drm-amd-powerplay-add-navi10-smc-ucode-init-and-navi.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2261-drm-amd-powerplay-add-navi10-smc-ucode-init-and-navi.patch
new file mode 100644
index 00000000..fffbfb56
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2261-drm-amd-powerplay-add-navi10-smc-ucode-init-and-navi.patch
@@ -0,0 +1,50 @@
+From 668755a06d67ca70081d9c6c883ae7535aa964e5 Mon Sep 17 00:00:00 2001
+From: Huang Rui <ray.huang@amd.com>
+Date: Thu, 31 Jan 2019 20:49:59 +0800
+Subject: [PATCH 2261/2940] drm/amd/powerplay: add navi10 smc ucode init and
+ navi10 ppt functions setting
+
+This patch adds navi10 smc ucode init and ppt functions setting.
+
+Signed-off-by: Huang Rui <ray.huang@amd.com>
+Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
+index 26644168d58c..4dcbf6ee7e8e 100644
+--- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
++++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
+@@ -31,6 +31,7 @@
+ #include "soc15_common.h"
+ #include "atom.h"
+ #include "vega20_ppt.h"
++#include "navi10_ppt.h"
+ #include "pp_thermal.h"
+
+ #include "asic_reg/thm/thm_11_0_2_offset.h"
+@@ -165,6 +166,9 @@ static int smu_v11_0_init_microcode(struct smu_context *smu)
+ case CHIP_VEGA20:
+ chip_name = "vega20";
+ break;
++ case CHIP_NAVI10:
++ chip_name = "navi10";
++ break;
+ default:
+ BUG();
+ }
+@@ -2096,6 +2100,9 @@ void smu_v11_0_set_smu_funcs(struct smu_context *smu)
+ case CHIP_VEGA20:
+ vega20_set_ppt_funcs(smu);
+ break;
++ case CHIP_NAVI10:
++ navi10_set_ppt_funcs(smu);
++ break;
+ default:
+ pr_warn("Unknown asic for smu11\n");
+ }
+--
+2.17.1
+