aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3779-drm-amd-display-Implement-voltage-limitation-for-dal.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3779-drm-amd-display-Implement-voltage-limitation-for-dal.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3779-drm-amd-display-Implement-voltage-limitation-for-dal.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3779-drm-amd-display-Implement-voltage-limitation-for-dal.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3779-drm-amd-display-Implement-voltage-limitation-for-dal.patch
new file mode 100644
index 00000000..d0e7c0f0
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3779-drm-amd-display-Implement-voltage-limitation-for-dal.patch
@@ -0,0 +1,38 @@
+From 1285c81e64de35f423e974ddf24b8d267a07f237 Mon Sep 17 00:00:00 2001
+From: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
+Date: Fri, 6 Sep 2019 16:32:44 -0400
+Subject: [PATCH 3779/4256] drm/amd/display: Implement voltage limitation for
+ dali
+
+[Why]
+we only want the lowest voltage to be available for dali.
+
+[How]
+Use the get_highest_allowed_voltage_level function
+to return 0 for dali
+
+Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
+Reviewed-by: Huang Rui <ray.huang@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c
+index 383f4f8db8f4..9b2cb57bf2ba 100644
+--- a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c
++++ b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c
+@@ -708,6 +708,10 @@ static void hack_bounding_box(struct dcn_bw_internal_vars *v,
+
+ unsigned int get_highest_allowed_voltage_level(uint32_t hw_internal_rev)
+ {
++ /* for dali, the highest voltage level we want is 0 */
++ if (ASICREV_IS_DALI(hw_internal_rev))
++ return 0;
++
+ /* we are ok with all levels */
+ return 4;
+ }
+--
+2.17.1
+