aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2511-drm-amd-display-Add-power-down-display-on-boot-flag.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2511-drm-amd-display-Add-power-down-display-on-boot-flag.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2511-drm-amd-display-Add-power-down-display-on-boot-flag.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2511-drm-amd-display-Add-power-down-display-on-boot-flag.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2511-drm-amd-display-Add-power-down-display-on-boot-flag.patch
new file mode 100644
index 00000000..47c91dd3
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2511-drm-amd-display-Add-power-down-display-on-boot-flag.patch
@@ -0,0 +1,42 @@
+From 736afe68bb73cd484960e404f0f1dd1d70187a2e Mon Sep 17 00:00:00 2001
+From: Thomas Lim <Thomas.Lim@amd.com>
+Date: Tue, 7 May 2019 15:08:22 -0500
+Subject: [PATCH 2511/2940] drm/amd/display: Add power down display on boot
+ flag
+
+[Why]
+Due to the generic introduction of seamless boot, the display is no
+longer blanked upon boot. However, this causes corruption on some
+systems that does not lock the memory in the non-secure boot case,
+resulting in brief corruption on boot due to garbage being written into
+the frame buffer.
+
+[How]
+Add a flag, read during DC init, to determine whether display should be
+blanked on boot. Default to true.
+
+Signed-off-by: Thomas Lim <Thomas.Lim@amd.com>
+Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
+Acked-by: Anthony Koo <Anthony.Koo@amd.com>
+Acked-by: Leo Li <sunpeng.li@amd.com>
+Acked-by: Hawking Zhang <Hawking.Zhang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+index 46a02b945a4d..2db38255e59c 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -557,6 +557,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
+ init_data.flags.fbc_support = true;
+
+ init_data.flags.power_down_display_on_boot = true;
++
+ #ifdef CONFIG_DRM_AMD_DC_DCN2_0
+ init_data.soc_bounding_box = adev->dm.soc_bounding_box;
+ #endif
+--
+2.17.1
+