Patch "drm/bridge: tc358767: do no fail on hi-res displays" has been added to the 4.14-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
drm/bridge: tc358767: do no fail on hi-res displays
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-bridge-tc358767-do-no-fail-on-hi-res-displays.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Feb 1 13:45:42 CET 2018
From: Andrey Gusakov <[email protected]>
Date: Tue, 7 Nov 2017 19:56:19 +0300
Subject: drm/bridge: tc358767: do no fail on hi-res displays
From: Andrey Gusakov <[email protected]>
[ Upstream commit cffd2b16c01c3431a7a7dd62e722af33490fc436 ]
Do not fail data rates higher than 2.7 and more than 2 lanes. Try to fall back to 2.7Gbps and 2 lanes.
--- drivers/gpu/drm/bridge/tc358767.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
drivers/gpu/drm/bridge/tc358767.c +9 -5
@@ -603,8 +603,15 @@ static int tc_get_display_props(struct t ret =drm_dp_link_probe (&tc->aux, &tc->link.base);if (ret <0 ) goto err_dpcd_read; -if ((tc->link.base.rate !=162000 ) && (tc->link.base.rate !=270000 )) - goto err_dpcd_inval; +if (tc->link.base.rate !=162000 && tc->link.base.rate !=270000 ) { +dev_dbg (tc->dev,"Falling to 2.7 Gbps rate\n" ); + tc->link.base.rate =270000 ; + } + +if (tc->link.base.num_lanes >2 ) { +dev_dbg (tc->dev,"Falling to 2 lanes\n" ); + tc->link.base.num_lanes =2 ; + } ret =drm_dp_dpcd_readb (&tc->aux,DP_MAX_DOWNSPREAD , tmp);if (ret <0 )
@@ -637,9 +644,6 @@ static int tc_get_display_props(struct t err_dpcd_read:dev_err (tc->dev,"failed to read DPCD: %d\n" , ret);return ret; -err_dpcd_inval: -dev_err (tc->dev,"invalid DPCD\n" ); -return -EINVAL ; }static int tc_set_video_mode (struct tc_data *tc,struct drm_display_mode *mode)
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/drm-bridge-tc358767-fix-timing-calculations.patch queue-4.14/drm-bridge-tc358767-fix-auxdatan-registers-access.patch queue-4.14/drm-bridge-tc358767-filter-out-too-high-modes.patch queue-4.14/drm-bridge-tc358767-fix-1-lane-behavior.patch queue-4.14/drm-bridge-tc358767-fix-dp0_misc-register-set.patch queue-4.14/drm-bridge-tc358767-do-no-fail-on-hi-res-displays.patch