aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4085-drm-amdgpu-powerplay-fix-a-warning-in-vega10_populat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4085-drm-amdgpu-powerplay-fix-a-warning-in-vega10_populat.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4085-drm-amdgpu-powerplay-fix-a-warning-in-vega10_populat.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4085-drm-amdgpu-powerplay-fix-a-warning-in-vega10_populat.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4085-drm-amdgpu-powerplay-fix-a-warning-in-vega10_populat.patch
new file mode 100644
index 00000000..cbf82aa1
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4085-drm-amdgpu-powerplay-fix-a-warning-in-vega10_populat.patch
@@ -0,0 +1,29 @@
+From 1d2d5981aa8da2459bdb57685e2d0ef64a4a6789 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Wed, 25 Apr 2018 16:55:01 -0500
+Subject: [PATCH 4085/4131] drm/amdgpu/powerplay: fix a warning in
+ vega10_populate_vddc_soc_levels
+
+Initialize soc_vid to 0.
+
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+index 952c7dd..055c692 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+@@ -1672,7 +1672,7 @@ static void vega10_populate_vddc_soc_levels(struct pp_hwmgr *hwmgr)
+ struct phm_ppt_v2_information *table_info = hwmgr->pptable;
+ struct phm_ppt_v1_voltage_lookup_table *vddc_lookup_table;
+
+- uint8_t soc_vid;
++ uint8_t soc_vid = 0;
+ uint32_t i, max_vddc_level;
+
+ if (hwmgr->od_enabled)
+--
+2.7.4
+