aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/1023-drm-amd-display-Fix-time-out-on-boot.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1023-drm-amd-display-Fix-time-out-on-boot.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/1023-drm-amd-display-Fix-time-out-on-boot.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1023-drm-amd-display-Fix-time-out-on-boot.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1023-drm-amd-display-Fix-time-out-on-boot.patch
new file mode 100644
index 00000000..25033701
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1023-drm-amd-display-Fix-time-out-on-boot.patch
@@ -0,0 +1,38 @@
+From e677e11ccaffda88ae728734682bdcdc54fe0e7e Mon Sep 17 00:00:00 2001
+From: Eric Yang <Eric.Yang2@amd.com>
+Date: Mon, 28 Aug 2017 16:50:17 -0400
+Subject: [PATCH 1023/4131] drm/amd/display: Fix time out on boot
+
+On boot, hubp 0 is powergated during enable accel mode, so we time out
+when we try to blank in undo wa.
+
+Fix: Check power gate status before set blank
+
+Change-Id: Ia14455722e5a8b6136d47083f1986827ed07175a
+Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
+Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+index 71ff1ce..7ea2744 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+@@ -780,6 +780,12 @@ static void undo_DEGVIDCN10_253_wa(struct dc *dc)
+ {
+ struct dce_hwseq *hws = dc->hwseq;
+ struct mem_input *mi = dc->res_pool->mis[0];
++ int pwr_status = 0;
++
++ REG_GET(DOMAIN0_PG_STATUS, DOMAIN0_PGFSM_PWR_STATUS, &pwr_status);
++ /* Don't need to blank if hubp is power gated*/
++ if (pwr_status == 2)
++ return;
+
+ mi->funcs->set_blank(mi, true);
+
+--
+2.7.4
+