* [PATCH] Revert "drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP mode flags for LVDS stability"
@ 2026-12-04 15:24 Ernest Van Hoecke
2026-12-04 20:55 ` Luca Ceresoli
0 siblings, 1 reply; 2+ messages in thread
From: Ernest Van Hoecke @ 2026-12-04 15:24 UTC (permalink / raw)
To: Neil Armstrong, Dmitry Baryshkov, Luca Ceresoli, Robert Foss,
Laurent Pinchart, Jernej Skrabec, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
Sudarshan Shetty, Andrej Picej
Cc: Francesco Dolcini, Marek Vasut, Alexander Stein, dri-devel,
linux-kernel, regressions, Ernest Van Hoecke, stable
From: Ernest Van Hoecke <ernest.vanhoecke@toradex.com>
This reverts commit 4af021a97773 ("drm: bridge: ti-sn65dsi83: Remove
NO_HFP and NO_HBP mode flags for LVDS stability").
Since that commit, the DSI host sends HFP and HBP blanking packets (mode
flags 0x2e3 become 0x283). On a Toradex Verdin iMX8M Plus (LCDIF ->
samsung-dsim, 4 lanes, burst -> SN65DSI83 -> Riverdi RVT101HVLNWC00
1280x800 LVDS panel) this makes the image unstable. Andrej Picej sees
the same on a PHYTEC phyBOARD-Polis i.MX8MM with another panel [1].
Results on drm-misc-fixes (4d6d0a4639a3 ("gpio: tc358762: fix reset gpio
handling")):
pixel clock hfp/hsync/hbp vfp/vsync/vbp before reverted
71.1 MHz 36/24/64 8/8/24 broken OK
69.3 MHz 72/32/64 15/8/15 broken OK
Pixel and DSI clocks are exact, with DSI at 6 x the pixel clock, as read
from the registers. For 71.1 MHz, the video PLL is preset to 1066.5 MHz.
Without that, clk-pll14xx picks a 4.55 GHz VCO, which adds occasional
glitches of its own. The SN65DSI83 reports no errors (0xe5 stays 0). A
longer HSYNC hides the problem. Dropping NO_HSA or zeroing HFP in
samsung-dsim does not fix it, and dropping BURST does not fix Andrej's
board [1].
The root cause is unknown. Andrej found that a faster DSI link works
with the commit applied [1]. Luca noted that the commit did not fix his
or the author's panel either [2]. Restore the previous mode flags until
then.
Fixes: 4af021a97773 ("drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP mode flags for LVDS stability")
Closes: https://lore.kernel.org/all/3hfae2i2i2toxbo7hg2if6pztaswgnfj65xfm2c4ofljc6jhua@slaqoewn4mxq/
Reported-by: Andrej Picej <andrej.picej@norik.com>
Closes: https://lore.kernel.org/all/20261127124012.3664549-1-andrej.picej@norik.com/ [1]
Link: https://lore.kernel.org/all/DINH3J2SM26P.3KE6GE9VPB1OC@bootlin.com/ [2]
Cc: stable@vger.kernel.org # v7.3+
Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@toradex.com>
---
Luca asked for a revert with these details in the regression thread:
https://lore.kernel.org/all/DMTXMG427D7Z.MVUAQQE9B08W@bootlin.com/
---
drivers/gpu/drm/bridge/ti-sn65dsi83.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c b/drivers/gpu/drm/bridge/ti-sn65dsi83.c
index eb5b249cc43c..e802d48c622a 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c
@@ -974,6 +974,7 @@ static int sn65dsi83_host_attach(struct sn65dsi83 *ctx)
dsi->lanes = dsi_lanes;
dsi->format = MIPI_DSI_FMT_RGB888;
dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
+ MIPI_DSI_MODE_VIDEO_NO_HFP | MIPI_DSI_MODE_VIDEO_NO_HBP |
MIPI_DSI_MODE_VIDEO_NO_HSA | MIPI_DSI_MODE_NO_EOT_PACKET;
ret = devm_mipi_dsi_attach(dev, dsi);
---
base-commit: 4d6d0a4639a335df10598e6a4373299bc3f167c0
change-id: 20261202-sn65dsi83-revert-0b0a71528f9f
Best regards,
--
Ernest Van Hoecke <ernest.vanhoecke@toradex.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] Revert "drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP mode flags for LVDS stability"
2026-12-04 15:24 [PATCH] Revert "drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP mode flags for LVDS stability" Ernest Van Hoecke
@ 2026-12-04 20:55 ` Luca Ceresoli
0 siblings, 0 replies; 2+ messages in thread
From: Luca Ceresoli @ 2026-12-04 20:55 UTC (permalink / raw)
To: Ernest Van Hoecke, Neil Armstrong, Dmitry Baryshkov,
Luca Ceresoli, Robert Foss, Laurent Pinchart, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Sudarshan Shetty, Andrej Picej
Cc: Francesco Dolcini, Marek Vasut, Alexander Stein, dri-devel,
linux-kernel, regressions, Ernest Van Hoecke, stable
On Fri Dec 4, 2026 at 4:24 PM CET, Ernest Van Hoecke wrote:
> From: Ernest Van Hoecke <ernest.vanhoecke@toradex.com>
>
> This reverts commit 4af021a97773 ("drm: bridge: ti-sn65dsi83: Remove
> NO_HFP and NO_HBP mode flags for LVDS stability").
>
> Since that commit, the DSI host sends HFP and HBP blanking packets (mode
> flags 0x2e3 become 0x283). On a Toradex Verdin iMX8M Plus (LCDIF ->
> samsung-dsim, 4 lanes, burst -> SN65DSI83 -> Riverdi RVT101HVLNWC00
> 1280x800 LVDS panel) this makes the image unstable. Andrej Picej sees
> the same on a PHYTEC phyBOARD-Polis i.MX8MM with another panel [1].
>
> Results on drm-misc-fixes (4d6d0a4639a3 ("gpio: tc358762: fix reset gpio
> handling")):
>
> pixel clock hfp/hsync/hbp vfp/vsync/vbp before reverted
> 71.1 MHz 36/24/64 8/8/24 broken OK
> 69.3 MHz 72/32/64 15/8/15 broken OK
>
> Pixel and DSI clocks are exact, with DSI at 6 x the pixel clock, as read
> from the registers. For 71.1 MHz, the video PLL is preset to 1066.5 MHz.
> Without that, clk-pll14xx picks a 4.55 GHz VCO, which adds occasional
> glitches of its own. The SN65DSI83 reports no errors (0xe5 stays 0). A
> longer HSYNC hides the problem. Dropping NO_HSA or zeroing HFP in
> samsung-dsim does not fix it, and dropping BURST does not fix Andrej's
> board [1].
>
> The root cause is unknown. Andrej found that a faster DSI link works
> with the commit applied [1]. Luca noted that the commit did not fix his
> or the author's panel either [2]. Restore the previous mode flags until
> then.
>
> Fixes: 4af021a97773 ("drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP mode flags for LVDS stability")
> Closes: https://lore.kernel.org/all/3hfae2i2i2toxbo7hg2if6pztaswgnfj65xfm2c4ofljc6jhua@slaqoewn4mxq/
> Reported-by: Andrej Picej <andrej.picej@norik.com>
> Closes: https://lore.kernel.org/all/20261127124012.3664549-1-andrej.picej@norik.com/ [1]
> Link: https://lore.kernel.org/all/DINH3J2SM26P.3KE6GE9VPB1OC@bootlin.com/ [2]
> Cc: stable@vger.kernel.org # v7.3+
> Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@toradex.com>
Thanks for all the analysis, and for the links to previous discussion, they
will be useful when someone will try to tackle this issue again.
I still don't see any obvious way to have code that works for every case,
not at the moment at least, so I'm afraid we'll have to revert.
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-04 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 15:24 [PATCH] Revert "drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP mode flags for LVDS stability" Ernest Van Hoecke
2026-12-04 20:55 ` Luca Ceresoli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox