aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3599-drm-amd-display-fix-calc_pll_max_vco_construct.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3599-drm-amd-display-fix-calc_pll_max_vco_construct.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3599-drm-amd-display-fix-calc_pll_max_vco_construct.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3599-drm-amd-display-fix-calc_pll_max_vco_construct.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3599-drm-amd-display-fix-calc_pll_max_vco_construct.patch
new file mode 100644
index 00000000..cf830e98
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3599-drm-amd-display-fix-calc_pll_max_vco_construct.patch
@@ -0,0 +1,33 @@
+From fff3ef623ffcb61c88f3d50c77af0822936499ce Mon Sep 17 00:00:00 2001
+From: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Date: Thu, 15 Aug 2019 12:35:39 -0400
+Subject: [PATCH 3599/4256] drm/amd/display: fix calc_pll_max_vco_construct
+
+This was broken by a previous change switching to cached fw_info.
+Fixed by inverting a valid bool check.
+
+Bug: https://bugs.freedesktop.org/show_bug.cgi?id=111432
+Fixes: 9adc8050bf3c ("drm/amd/display: make firmware info only load once during dc_bios create")
+Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Reviewed-by: Leo Li <sunpeng.li@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
+index 5933a704847e..accae1089b83 100644
+--- a/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
++++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
+@@ -1239,7 +1239,7 @@ static bool calc_pll_max_vco_construct(
+ init_data->bp == NULL)
+ return false;
+
+- if (init_data->bp->fw_info_valid)
++ if (!init_data->bp->fw_info_valid)
+ return false;
+
+ fw_info = &init_data->bp->fw_info;
+--
+2.17.1
+