aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0462-drm-amdgpu-display-handle-changes-in-drm_dp_mst_allo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0462-drm-amdgpu-display-handle-changes-in-drm_dp_mst_allo.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0462-drm-amdgpu-display-handle-changes-in-drm_dp_mst_allo.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0462-drm-amdgpu-display-handle-changes-in-drm_dp_mst_allo.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0462-drm-amdgpu-display-handle-changes-in-drm_dp_mst_allo.patch
new file mode 100644
index 00000000..d2074f73
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0462-drm-amdgpu-display-handle-changes-in-drm_dp_mst_allo.patch
@@ -0,0 +1,29 @@
+From b64e0e9db394d55f7f9f68df8c48cb8af6208db9 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Fri, 2 Jun 2017 15:16:26 -0400
+Subject: [PATCH 0462/4131] drm/amdgpu/display: handle changes in
+ drm_dp_mst_allocate_vcpi()
+
+Reviewed-by: Harry Wentland <harry.wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+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 3401780..01d04fa 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
+@@ -234,7 +234,8 @@ bool dm_helpers_dp_mst_write_payload_allocation_table(
+
+ pbn = drm_dp_calc_pbn_mode(clock, bpp);
+
+- ret = drm_dp_mst_allocate_vcpi(mst_mgr, mst_port, pbn, &slots);
++ slots = drm_dp_find_vcpi_slots(mst_mgr, pbn);
++ ret = drm_dp_mst_allocate_vcpi(mst_mgr, mst_port, pbn, slots);
+
+ if (!ret)
+ return false;
+--
+2.7.4
+