Re: [PATCH] Revert "drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP mode flags for LVDS stability"

From: Luca Ceresoli

Date: Fri Dec 04 2026 - 15:55:50 EST


On Fri Dec 4, 2026 at 4:24 PM CET, Ernest Van Hoecke wrote:
> 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>

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@xxxxxxxxxxx>

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com