[PATCH] Revert "drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP mode flags for LVDS stability"
From: Ernest Van Hoecke
Date: Fri Dec 04 2026 - 10:24:38 EST
From: Ernest Van Hoecke <ernest.vanhoecke@xxxxxxxxxxx>
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@xxxxxxxxx>
Closes: https://lore.kernel.org/all/20261127124012.3664549-1-andrej.picej@xxxxxxxxx/ [1]
Link: https://lore.kernel.org/all/DINH3J2SM26P.3KE6GE9VPB1OC@xxxxxxxxxxx/ [2]
Cc: stable@xxxxxxxxxxxxxxx # v7.3+
Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@xxxxxxxxxxx>
---
Luca asked for a revert with these details in the regression thread:
https://lore.kernel.org/all/DMTXMG427D7Z.MVUAQQE9B08W@xxxxxxxxxxx/
---
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@xxxxxxxxxxx>