aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0722-drm-amd-display-fix-dml-max-voltage-state.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0722-drm-amd-display-fix-dml-max-voltage-state.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0722-drm-amd-display-fix-dml-max-voltage-state.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0722-drm-amd-display-fix-dml-max-voltage-state.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0722-drm-amd-display-fix-dml-max-voltage-state.patch
new file mode 100644
index 00000000..946b30a9
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0722-drm-amd-display-fix-dml-max-voltage-state.patch
@@ -0,0 +1,35 @@
+From 5ee906fb8bbe48c0bb01f018fd1e80eece8a9828 Mon Sep 17 00:00:00 2001
+From: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Date: Wed, 10 Oct 2018 12:55:24 -0400
+Subject: [PATCH 0722/2940] drm/amd/display: fix dml max voltage state
+
+Gabe's formula sometimes uses values from non-existent 'unsupported'
+state to do validation.
+
+This change adds this extra state so validation can work correctly.
+
+Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Leo Li <sunpeng.li@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h b/drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h
+index cbafce649e33..5dd04520ceca 100644
+--- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h
++++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h
+@@ -113,7 +113,8 @@ struct _vcs_dpi_soc_bounding_box_st {
+ int use_urgent_burst_bw;
+ double max_hscl_ratio;
+ double max_vscl_ratio;
+- struct _vcs_dpi_voltage_scaling_st clock_limits[7];
++ unsigned int num_states;
++ struct _vcs_dpi_voltage_scaling_st clock_limits[8];
+ };
+
+ struct _vcs_dpi_ip_params_st {
+--
+2.17.1
+