Re: [PATCH v3 1/1] drm: bridge: ti-sn65dsi83: Fix DSI mode flags for stable LVDS output
From: Andrej Picej
Date: Fri Nov 27 2026 - 07:40:29 EST
Hello Luca, Francesco, Ernest,
On Fri Nov 13, 2026 at 9:15 AM CET, Luca Ceresoli wrote:
> I hoped to get better info from Ernest. The commit looks correct so chances
> are that regression is caused but other bugs (incorrect timings, inaccurate
> clocks, etc).
I see the same regression on another board, the PHYTEC phyBOARD-Polis
i.MX8MM with the PEB-AV-10 adapter. This board also had a clock problem,
but with that fixed, the display is clean without
4af021a97773 and glitches constantly with it. Details below, following
your list.
> * accurate description of what hardware breaks, with pipeline components
i.MX8MM LCDIF (mxsfb) -> samsung-dsim (4 lanes, video burst mode) ->
SN65DSI83 (single-link LVDS, LVDS clock taken from the DSI clock) ->
EDT ETML1010G3DRA panel, DT overlay
imx8mm-phyboard-polis-peb-av-10-etml1010g3dra.dtso.
> * panel timings (or, better, panel datasheet URL with that info)
panel-simple edt_etml1010g3dra, typical values: 72.4 MHz, 1280x800,
hfp 72, hbp 86, hsync 2, vfp 15, vbp 21, vsync 2.
> * exact kernel version (upstream kernel tag or SHA-1)
v7.4-rc2 (9d66f26fefac), and Frank Li's imx/fixes (acba37c2e2df, based
on v7.4-rc1).
> * clocks used and measured on the lines
Clocks read from the registers, not measured on the lines:
- LCDIF pixel clock: 72.375 MHz (video_pll1 144.75 MHz / 2, set by the
DT fix [1])
- DSI: 434.4 Mbit/s per lane (samsung,burst-clock-frequency = <434400000>,
DSIM PLLCTRL 0x0155541F), so the SN65DSI83 runs its LVDS clock at
434.4 / 2 / 3 = 72.4 MHz
Without [1], the pixel clock is exactly 72.4 MHz, and the panel shows
line glitches even with 4af021a97773 reverted (about 12 per minute).
That is a separate, older problem of this board, which [1] fixes.
> * difference observed before/after the patch on the cables and in software
4af021a97773 applied reverted
without [1] constant glitches ~12 glitches/min
with [1] constant glitches clean (50 display starts)
The glitch is a missing line for one frame. The SN65DSI83 does not
report an error (register 0xE5 stays 0). In software, 4af021a97773
changes the DSI mode flags from 0x2e3 to 0x283, and DSIM_CONFIG from
0x1670707F to 0x1610707F, so the HFP and HBP blanking packets are
sent.
> * any other detail of your investigation
I think, but I'm not sure, that the HFP/HBP packets don't fit into the
line time, because the DSI link runs at exactly 72.4 MHz * 24 / 4 =
434.4 Mbit/s per lane and has no headroom. As a quick test, a 724 Mbit/s
link with the SN65DSI83 DSI clock divider changed to 5 by hand was clean
with 4af021a97773 applied. That can't be set up properly without the DSI
link-rate negotiation discussed for patch 2/2.
Unlike on Ernest's board, disabling burst mode does not help here: with
patch 2/2 applied on top (DSIM_CONFIG 0x1210707F), the SN65DSI83
reports CHA_SYNCH_ERR (0xE5 = 0x80) and the driver resets the pipe
about once per second.
[1] https://lore.kernel.org/all/20261127093953.3541816-1-andrej.picej@xxxxxxxxx/
Best regards,
Andrej