aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/1096-drm-amd-display-Fixed-MST-display-doesn-t-light-up.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1096-drm-amd-display-Fixed-MST-display-doesn-t-light-up.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/1096-drm-amd-display-Fixed-MST-display-doesn-t-light-up.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1096-drm-amd-display-Fixed-MST-display-doesn-t-light-up.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1096-drm-amd-display-Fixed-MST-display-doesn-t-light-up.patch
new file mode 100644
index 00000000..7b1fa91c
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1096-drm-amd-display-Fixed-MST-display-doesn-t-light-up.patch
@@ -0,0 +1,35 @@
+From 13371b961cc3bb5cf94b343cb20243f0dc9e56a8 Mon Sep 17 00:00:00 2001
+From: "Jerry (Fangzhi) Zuo" <Jerry.Zuo@amd.com>
+Date: Thu, 4 Jan 2018 17:02:47 -0500
+Subject: [PATCH 1096/4131] drm/amd/display: Fixed MST display doesn't light up
+
+Need to take care of DRM interface prior to 4.12 kernel.
+
+Signed-off-by: Jerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
+Reviewed-by: Harry Wentland <harry.wentland@amd.com>
+Acked-by: Junwei Zhang <Jerry.Zhang@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
+index 9bd142f..02f7f04 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
+@@ -233,8 +233,12 @@ bool dm_helpers_dp_mst_write_payload_allocation_table(
+
+ pbn = drm_dp_calc_pbn_mode(clock, bpp);
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
+ slots = drm_dp_find_vcpi_slots(mst_mgr, pbn);
+ ret = drm_dp_mst_allocate_vcpi(mst_mgr, mst_port, pbn, slots);
++#else
++ ret = drm_dp_mst_allocate_vcpi(mst_mgr, mst_port, pbn, &slots);
++#endif
+
+ if (!ret)
+ return false;
+--
+2.7.4
+