drm/bridge: ti-sn65dsi86: Use HPD in a DP use case
Subsystems (4)
PATCH 1/1 drm/bridge: ti-sn65dsi86: Use HPD in a DP use case
From: Max Krummenacher <[email protected]>
The bridge driver currently disables handling the hot plug input and relies on a always connected eDP panel with fixed delays when the panel is ready.
If one uses the bridge for a regular display port monitor this assumption is no longer true.
If used with a display port monitor change to keep the hot plug detection functionality enabled and change to have the bridge working during runtime suspend to be able to detect the connection state.
Note that if HPD_DISABLE is set the HPD bit always returns connected independent of the actual state of the hot plug pin. Thus currently bridge->detect() always returns connected.
---
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
drivers/gpu/drm/bridge/ti-sn65dsi86.c +11 -2
@@ -333,9 +333,11 @@ static void ti_sn65dsi86_enable_comms(struct ti_sn65dsi86 *pdata)* If HPD somehow makes sense on some future panel we'll have to * change this to be conditional on someone specifying that HPD should * be used. +* Only disable HDP if used for eDP. */ -regmap_update_bits (pdata->regmap,SN_HPD_DISABLE_REG ,HPD_DISABLE , -HPD_DISABLE ); +if (pdata->bridge.type == DRM_MODE_CONNECTOR_eDP) +regmap_update_bits (pdata->regmap,SN_HPD_DISABLE_REG , +HPD_DISABLE ,HPD_DISABLE ); pdata->comms_enabled = true;
@@ -357,6 +359,10 @@ static int __maybe_unused ti_sn65dsi86_resume(struct device *dev)struct ti_sn65dsi86 *pdata =dev_get_drvdata (dev);int ret; +if (pdata->bridge.type == DRM_MODE_CONNECTOR_DisplayPort && + pdata->comms_enabled) +return 0 ; + ret =regulator_bulk_enable (SN_REGULATOR_SUPPLY_NUM , pdata->supplies);if (ret) {DRM_ERROR ("failed to enable supplies %d\n" , ret);
@@ -386,6 +392,9 @@ static int __maybe_unused ti_sn65dsi86_suspend(struct device *dev)struct ti_sn65dsi86 *pdata =dev_get_drvdata (dev);int ret; +if (pdata->bridge.type == DRM_MODE_CONNECTOR_DisplayPort) +return 0 ; +if (pdata->refclk)ti_sn65dsi86_disable_comms (pdata);
Signature · 1 line
2.42.0
Doug Anderson
reviewerHi,
Quoted 6 lines · On Thu, May 1, 2025 at 12:48 AM <[email protected]> wrote:
From: Max Krummenacher <[email protected]>
The bridge driver currently disables handling the hot plug input and relies on a always connected eDP panel with fixed delays when the panel is ready.
Not entirely correct. In some cases we don't have fixed delays and instead use a GPIO for HPD. That GPIO gets routed to the eDP panel code.
Quoted 9 lines
If one uses the bridge for a regular display port monitor this assumption is no longer true.
If used with a display port monitor change to keep the hot plug detection functionality enabled and change to have the bridge working during runtime suspend to be able to detect the connection state.Note that if
HPD_DISABLEis set the HPD bit always returns connected independent of the actual state of the hot plug pin. Thus currentlybridge->detect()always returns connected.
If that's true, it feels like this needs:
connector operations for DP")
...and it would be nice to get Laurent to confirm. Seems weird that he wouldn't have noticed that.
Quoted 26 lines
Signed-off-by Max Krummenacher <[email protected]>---
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)drivers/gpu/drm/bridge/ti-sn65dsi86.c +4
-2@@ -333,9 +333,11 @@ static void ti_sn65dsi86_enable_comms(struct ti_sn65dsi86 *pdata)* If HPD somehow makes sense on some future panel we'll have to * change this to be conditional on someone specifying that HPD should * be used. +* Only disable HDP if used for eDP. */ -regmap_update_bits (pdata->regmap,SN_HPD_DISABLE_REG ,HPD_DISABLE , -HPD_DISABLE ); +if (pdata->bridge.type == DRM_MODE_CONNECTOR_eDP) +regmap_update_bits (pdata->regmap,SN_HPD_DISABLE_REG , +HPD_DISABLE ,HPD_DISABLE ); pdata->comms_enabled = true;
drivers/gpu/drm/bridge/ti-sn65dsi86.c static int __maybe_unused ti_sn65dsi86_resume(struct device *dev) · line 365
Quoted 7 lines
drivers/gpu/drm/bridge/ti-sn65dsi86.c +4
-0@@ -357,6 +359,10 @@ static int __maybe_unused ti_sn65dsi86_resume(struct device *dev)struct ti_sn65dsi86 *pdata =dev_get_drvdata (dev);int ret; +if (pdata->bridge.type == DRM_MODE_CONNECTOR_DisplayPort && + pdata->comms_enabled) +return 0 ; +
I don't understand this part of the patch. You're basically making suspend/resume a no-op for the DP case? I don't think that's right...
First, I don't _think_ you need it, right? ...since "detect" is already grabbing the pm_runtime reference this shouldn't be needed from a correctness point of view.
Second, if you're looking to eventually make the interrupt work, I don't think this is the right first step. I think in previous discussions about this it was agreed that if we wanted the interrupt to work then we should just do a "pm_runtime_get_sync()" before enabling the interrupt and then a "pm_runtime_put()" after disabling it. That'll keep things from suspending.
Does that sound correct, or did I goof up on anything?
-Doug
Quoted 6 lines · Doug Anderson
Hi,
Quoted 3 lines · On Thu, May 1, 2025 at 12:48 AM <[email protected]> wrote:
From: Max Krummenacher <[email protected]>
Quoted 7 lines
Quoted 3 lines
The bridge driver currently disables handling the hot plug input and relies on a always connected eDP panel with fixed delays when the panel is ready.
Not entirely correct. In some cases we don't have fixed delays and instead use a GPIO for HPD. That GPIO gets routed to the eDP panel code.
Will reword in a v2
Quoted 12 lines
Quoted 11 lines
If one uses the bridge for a regular display port monitor this assumption is no longer true.
If used with a display port monitor change to keep the hot plug detection functionality enabled and change to have the bridge working during runtime suspend to be able to detect the connection state.Note that if
HPD_DISABLEis set the HPD bit always returns connected independent of the actual state of the hot plug pin. Thus currentlybridge->detect()always returns connected.
Quoted 7 lines
If that's true, it feels like this needs:
Fixes c312b0df3b13 ("drm/bridge: ti-sn65dsi86: Implement bridgeconnector operations for DP")
...and it would be nice to get Laurent to confirm. Seems weird that he wouldn't have noticed that.
I retested by adding a print in ti_sn_bridge_detect(). With the HPD_DISABLE bit set the HPD_DEBOUNCED_STATE is always true resulting in reporting always connected.
When one does not set the HPD_DISABLE bit and is in runtime suspend (i.e. detect() enables the bridge with its call to pm_runtime_get_sync() ) then the HPD_DEBOUNCED_STATE is only set after the debounce time. As it is immediately read here detect() always reports disconnected.
Quoted 31 lines
Quoted 31 lines
Signed-off-by Max Krummenacher <[email protected]>---
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)drivers/gpu/drm/bridge/ti-sn65dsi86.c +4
-2@@ -333,9 +333,11 @@ static void ti_sn65dsi86_enable_comms(struct ti_sn65dsi86 *pdata)* If HPD somehow makes sense on some future panel we'll have to * change this to be conditional on someone specifying that HPD should * be used. +* Only disable HDP if used for eDP. */ -regmap_update_bits (pdata->regmap,SN_HPD_DISABLE_REG ,HPD_DISABLE , -HPD_DISABLE ); +if (pdata->bridge.type == DRM_MODE_CONNECTOR_eDP) +regmap_update_bits (pdata->regmap,SN_HPD_DISABLE_REG , +HPD_DISABLE ,HPD_DISABLE ); pdata->comms_enabled = true;@@ -357,6 +359,10 @@ static int __maybe_unused ti_sn65dsi86_resume(struct device *dev)struct ti_sn65dsi86 *pdata =dev_get_drvdata (dev);int ret;
Quoted 7 lines
drivers/gpu/drm/bridge/ti-sn65dsi86.c static int __maybe_unused ti_sn65dsi86_resume(struct device *dev) · line 365
Quoted 4 lines
drivers/gpu/drm/bridge/ti-sn65dsi86.c +4
-0+if (pdata->bridge.type == DRM_MODE_CONNECTOR_DisplayPort && + pdata->comms_enabled) +return 0 ; +I don't understand this part of the patch. You're basically making suspend/resume a no-op for the DP case? I don't think that's right...
That is what I wanted to do as nothing else worked ... Probably there are better solutions.
Quoted 4 lines
First, I don't _think_ you need it, right? ...since "detect" is already grabbing the
pm_runtimereference this shouldn't be needed from a correctness point of view.
Correct, it shouldn't. However if the bridge is coming out of powerup/reset then we have to wait the debounce time time to get the current state of HPD. The bridge starts with disconnected and only sets connected after it seen has the HPD pin at '1' for the debounce time.
Adding a 400ms sleep would fix that.
Quoted 7 lines
Second, if you're looking to eventually make the interrupt work, I don't think this is the right first step. I think in previous discussions about this it was agreed that if we wanted the interrupt to work then we should just do a "
pm_runtime_get_sync()" before enabling the interrupt and then a "pm_runtime_put()" after disabling it. That'll keep things from suspending.
The HW I use doesn't has the interrupt pin connected. So for me that is out of scope but should of course work.
Quoted 2 lines
Does that sound correct, or did I goof up on anything?
If I remove disabling suspend/resume and fix detect() to report the 'correct' HPD state in both runtime pm states I now get another issue after disconnecting and then reconnecting the monitor:
[ 50.035964] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Can't read lane count (-110); assuming 4 [ 50.212976] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Can't read eDP rev (-110), assuming 1.1 [ 50.389802] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Can't read max rate (-110); assuming 5.4 GHz [ 50.686572] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Link training failed, link is off (-5)
monitor stays black without signals.
So it seems the bridges internal state is not completely restored by the current code. Looking into that now.
Quoted 1 line
-Doug
Regards
Max
Hello Max,
Quoted 41 lines · Max Krummenacher
Quoted 6 lines · Doug Anderson
Hi,
Quoted 3 lines · On Thu, May 1, 2025 at 12:48 AM <[email protected]> wrote:
From: Max Krummenacher <[email protected]>
Quoted 7 lines
Quoted 3 lines
The bridge driver currently disables handling the hot plug input and relies on a always connected eDP panel with fixed delays when the panel is ready.
Not entirely correct. In some cases we don't have fixed delays and instead use a GPIO for HPD. That GPIO gets routed to the eDP panel code.
Will reword in a v2
Quoted 12 lines
Quoted 11 lines
If one uses the bridge for a regular display port monitor this assumption is no longer true.
If used with a display port monitor change to keep the hot plug detection functionality enabled and change to have the bridge working during runtime suspend to be able to detect the connection state.Note that if
HPD_DISABLEis set the HPD bit always returns connected independent of the actual state of the hot plug pin. Thus currentlybridge->detect()always returns connected.Quoted 7 lines
If that's true, it feels like this needs:
Fixes c312b0df3b13 ("drm/bridge: ti-sn65dsi86: Implement bridgeconnector operations for DP")
...and it would be nice to get Laurent to confirm. Seems weird that he wouldn't have noticed that.
I retested by adding a print in
ti_sn_bridge_detect(). With theHPD_DISABLEbit set theHPD_DEBOUNCED_STATEis always true resulting in reporting always connected.
Quoted 6 lines
When one does not set the
HPD_DISABLEbit and is in runtime suspend (i.e.detect()enables the bridge with its call topm_runtime_get_sync()) then theHPD_DEBOUNCED_STATEis only set after the debounce time. As it is immediately read heredetect()always reports disconnected.
I have same observations on my end.
Quoted 47 lines
Quoted 31 lines
Quoted 31 lines
Signed-off-by Max Krummenacher <[email protected]>---
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)drivers/gpu/drm/bridge/ti-sn65dsi86.c +4
-2@@ -333,9 +333,11 @@ static void ti_sn65dsi86_enable_comms(struct ti_sn65dsi86 *pdata)* If HPD somehow makes sense on some future panel we'll have to * change this to be conditional on someone specifying that HPD should * be used. +* Only disable HDP if used for eDP. */ -regmap_update_bits (pdata->regmap,SN_HPD_DISABLE_REG ,HPD_DISABLE , -HPD_DISABLE ); +if (pdata->bridge.type == DRM_MODE_CONNECTOR_eDP) +regmap_update_bits (pdata->regmap,SN_HPD_DISABLE_REG , +HPD_DISABLE ,HPD_DISABLE ); pdata->comms_enabled = true;@@ -357,6 +359,10 @@ static int __maybe_unused ti_sn65dsi86_resume(struct device *dev)struct ti_sn65dsi86 *pdata =dev_get_drvdata (dev);int ret;Quoted 7 lines
drivers/gpu/drm/bridge/ti-sn65dsi86.c static int __maybe_unused ti_sn65dsi86_resume(struct device *dev) · line 365
Quoted 4 lines
drivers/gpu/drm/bridge/ti-sn65dsi86.c +4
-0+if (pdata->bridge.type == DRM_MODE_CONNECTOR_DisplayPort && + pdata->comms_enabled) +return 0 ; +I don't understand this part of the patch. You're basically making suspend/resume a no-op for the DP case? I don't think that's right...
That is what I wanted to do as nothing else worked ... Probably there are better solutions.
Quoted 4 lines
First, I don't _think_ you need it, right? ...since "detect" is already grabbing the
pm_runtimereference this shouldn't be needed from a correctness point of view.
Quoted 8 lines
Correct, it shouldn't. However if the bridge is coming out of powerup/reset then we have to wait the debounce time time to get the current state of HPD. The bridge starts with disconnected and only sets connected after it seen has the HPD pin at '1' for the debounce time.
Adding a 400ms sleep would fix that.
While adding this delay fixes the detect issue, it could lead to other problems.
Detect hook is called every 10 sec and considering that, 400ms is a considerable amount of time. And it could cause performance issues like frame drops and glitches in display.
For 1920x1080@60fps resolution, when I run weston application, I see around ~24 frames being dropped every 10 sec with visual glitch in display. This seems consistent with 400ms delay for 60fps or 16.67ms per frame (24*16.67ms).
root@j784s4-evm:~# weston-simple-egl libEGL warning: MESA-LOADER: failed to open tidss: /usr/lib/dri/tidss_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
276 frames in 5 seconds: 55.200001 fps
301 frames in 5 seconds: 60.200001 fps
277 frames in 5 seconds: 55.400002 fps
301 frames in 5 seconds: 60.200001 fps
277 frames in 5 seconds: 55.400002 fps
301 frames in 5 seconds: 60.200001 fps
277 frames in 5 seconds: 55.400002 fps
301 frames in 5 seconds: 60.200001 fps
277 frames in 5 seconds: 55.400002 fps
301 frames in 5 seconds: 60.200001 fps
277 frames in 5 seconds: 55.400002 fps
301 frames in 5 seconds: 60.200001 fps
278 frames in 5 seconds: 55.599998 fps
^Csimple-egl exiting
root@j784s4-evm:~#
Quoted 23 lines
Quoted 7 lines
Second, if you're looking to eventually make the interrupt work, I don't think this is the right first step. I think in previous discussions about this it was agreed that if we wanted the interrupt to work then we should just do a "
pm_runtime_get_sync()" before enabling the interrupt and then a "pm_runtime_put()" after disabling it. That'll keep things from suspending.The HW I use doesn't has the interrupt pin connected. So for me that is out of scope but should of course work.
Quoted 2 lines
Does that sound correct, or did I goof up on anything?
If I remove disabling suspend/resume and fix
detect()to report the 'correct' HPD state in both runtime pm states I now get another issue after disconnecting and then reconnecting the monitor:[ 50.035964] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Can't read lane count (-110); assuming 4 [ 50.212976] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Can't read eDP rev (-110), assuming 1.1 [ 50.389802] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Can't read max rate (-110); assuming 5.4 GHz [ 50.686572] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Link training failed, link is off (-5)
Quoted 5 lines
monitor stays black without signals.
So it seems the bridges internal state is not completely restored by the current code. Looking into that now.
I have seen such link training failures occasionally when the display connector is not connected but the state is not reflected correctly.
Maybe it could be attributed to long polling duration??? Are you observing it even on re-runs?
Quoted 4 lines
Quoted 1 line
-Doug
Regards
Max
Warm Regards,
Jayesh
Quoted 171 lines · Jayesh Choudhary
Hello Max,
Quoted 41 lines · Max Krummenacher
Quoted 6 lines · Doug Anderson
Hi,
Quoted 3 lines · On Thu, May 1, 2025 at 12:48 AM <[email protected]> wrote:
From: Max Krummenacher <[email protected]>
Quoted 7 lines
Quoted 3 lines
The bridge driver currently disables handling the hot plug input and relies on a always connected eDP panel with fixed delays when the panel is ready.
Not entirely correct. In some cases we don't have fixed delays and instead use a GPIO for HPD. That GPIO gets routed to the eDP panel code.
Will reword in a v2
Quoted 12 lines
Quoted 11 lines
If one uses the bridge for a regular display port monitor this assumption is no longer true.
If used with a display port monitor change to keep the hot plug detection functionality enabled and change to have the bridge working during runtime suspend to be able to detect the connection state.Note that if
HPD_DISABLEis set the HPD bit always returns connected independent of the actual state of the hot plug pin. Thus currentlybridge->detect()always returns connected.Quoted 7 lines
If that's true, it feels like this needs:
Fixes c312b0df3b13 ("drm/bridge: ti-sn65dsi86: Implement bridgeconnector operations for DP")
...and it would be nice to get Laurent to confirm. Seems weird that he wouldn't have noticed that.
I retested by adding a print in
ti_sn_bridge_detect(). With theHPD_DISABLEbit set theHPD_DEBOUNCED_STATEis always true resulting in reporting always connected.Quoted 6 lines
When one does not set the
HPD_DISABLEbit and is in runtime suspend (i.e.detect()enables the bridge with its call topm_runtime_get_sync()) then theHPD_DEBOUNCED_STATEis only set after the debounce time. As it is immediately read heredetect()always reports disconnected.I have same observations on my end.
Quoted 47 lines
Quoted 31 lines
Quoted 31 lines
Signed-off-by Max Krummenacher <[email protected]>---
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)drivers/gpu/drm/bridge/ti-sn65dsi86.c +4
-2@@ -333,9 +333,11 @@ static void ti_sn65dsi86_enable_comms(struct ti_sn65dsi86 *pdata)* If HPD somehow makes sense on some future panel we'll have to * change this to be conditional on someone specifying that HPD should * be used. +* Only disable HDP if used for eDP. */ -regmap_update_bits (pdata->regmap,SN_HPD_DISABLE_REG ,HPD_DISABLE , -HPD_DISABLE ); +if (pdata->bridge.type == DRM_MODE_CONNECTOR_eDP) +regmap_update_bits (pdata->regmap,SN_HPD_DISABLE_REG , +HPD_DISABLE ,HPD_DISABLE ); pdata->comms_enabled = true;@@ -357,6 +359,10 @@ static int __maybe_unused ti_sn65dsi86_resume(struct device *dev)struct ti_sn65dsi86 *pdata =dev_get_drvdata (dev);int ret;Quoted 7 lines
drivers/gpu/drm/bridge/ti-sn65dsi86.c static int __maybe_unused ti_sn65dsi86_resume(struct device *dev) · line 365
Quoted 4 lines
drivers/gpu/drm/bridge/ti-sn65dsi86.c +4
-0+if (pdata->bridge.type == DRM_MODE_CONNECTOR_DisplayPort && + pdata->comms_enabled) +return 0 ; +I don't understand this part of the patch. You're basically making suspend/resume a no-op for the DP case? I don't think that's right...
That is what I wanted to do as nothing else worked ... Probably there are better solutions.
Quoted 4 lines
First, I don't _think_ you need it, right? ...since "detect" is already grabbing the
pm_runtimereference this shouldn't be needed from a correctness point of view.Quoted 8 lines
Correct, it shouldn't. However if the bridge is coming out of powerup/reset then we have to wait the debounce time time to get the current state of HPD. The bridge starts with disconnected and only sets connected after it seen has the HPD pin at '1' for the debounce time.
Adding a 400ms sleep would fix that.
While adding this delay fixes the detect issue, it could lead to other problems.
Detect hook is called every 10 sec and considering that, 400ms is a considerable amount of time. And it could cause performance issues like frame drops and glitches in display.For 1920x1080@60fps resolution, when I run weston application, I see around ~24 frames being dropped every 10 sec with visual glitch in display. This seems consistent with 400ms delay for 60fps or 16.67ms per frame (24*16.67ms).
root@j784s4-evm:~# weston-simple-egl libEGL warning: MESA-LOADER: failed to open tidss: /usr/lib/dri/tidss_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)276 frames in 5 seconds: 55.200001 fps
301 frames in 5 seconds: 60.200001 fps
277 frames in 5 seconds: 55.400002 fps
301 frames in 5 seconds: 60.200001 fps
277 frames in 5 seconds: 55.400002 fps
301 frames in 5 seconds: 60.200001 fps
277 frames in 5 seconds: 55.400002 fps
301 frames in 5 seconds: 60.200001 fps
277 frames in 5 seconds: 55.400002 fps
301 frames in 5 seconds: 60.200001 fps
277 frames in 5 seconds: 55.400002 fps
301 frames in 5 seconds: 60.200001 fps
278 frames in 5 seconds: 55.599998 fps
^Csimple-egl exiting
root@j784s4-evm:~#Quoted 23 lines
Quoted 7 lines
Second, if you're looking to eventually make the interrupt work, I don't think this is the right first step. I think in previous discussions about this it was agreed that if we wanted the interrupt to work then we should just do a "
pm_runtime_get_sync()" before enabling the interrupt and then a "pm_runtime_put()" after disabling it. That'll keep things from suspending.The HW I use doesn't has the interrupt pin connected. So for me that is out of scope but should of course work.
Quoted 2 lines
Does that sound correct, or did I goof up on anything?
If I remove disabling suspend/resume and fix
detect()to report the 'correct' HPD state in both runtime pm states I now get another issue after disconnecting and then reconnecting the monitor:[ 50.035964] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Can't read lane count (-110); assuming 4 [ 50.212976] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Can't read eDP rev (-110), assuming 1.1 [ 50.389802] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Can't read max rate (-110); assuming 5.4 GHz [ 50.686572] ti_sn65dsi86 3-002c: [drm:ti_sn_bridge_atomic_enable [ti_sn65dsi86]] *ERROR* Link training failed, link is off (-5)Quoted 5 lines
monitor stays black without signals.
So it seems the bridges internal state is not completely restored by the current code. Looking into that now.
Quoted 5 lines
I have seen such link training failures occasionally when the display connector is not connected but the state is not reflected correctly.
Maybe it could be attributed to long polling duration??? Are you observing it even on re-runs?
I think it is caused by the used hardware allowing to control the enable signal but not controlling the power supplies.
If that is really true I have yet to find out.
Quoted 10 lines
Quoted 6 lines
Quoted 3 lines
-Doug
Regards
MaxWarm Regards,
Jayesh
In my opinion we should drop this patch in favour of Jayesh's V2 [1]. I will comment there.
Regards
Max