From: "Luca Ceresoli" <luca.ceresoli@bootlin.com>
To: "Ernest Van Hoecke" <ernestvanhoecke@gmail.com>,
"Andrej Picej" <andrej.picej@norik.com>
Cc: "Luca Ceresoli" <luca.ceresoli@bootlin.com>,
"Francesco Dolcini" <francesco@dolcini.it>,
<regressions@lists.linux.dev>, <tessolveupstream@gmail.com>,
<andrzej.hajda@intel.com>, <neil.armstrong@linaro.org>,
<rfoss@kernel.org>, <Laurent.pinchart@ideasonboard.com>,
<jonas@kwiboo.se>, <jernej.skrabec@gmail.com>,
<maarten.lankhorst@linux.intel.com>, <mripard@kernel.org>,
<tzimmermann@suse.de>, <airlied@gmail.com>, <simona@ffwll.ch>,
<marex@denx.de>, <valentin@compulab.co.il>,
<philippe.schenker@toradex.com>,
<alexander.stein@ew.tq-group.com>,
<dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>,
"Teresa Remmet" <t.remmet@phytec.de>, <upstream@lists.phytec.de>
Subject: Re: [PATCH v3 1/1] drm: bridge: ti-sn65dsi83: Fix DSI mode flags for stable LVDS output
Date: Fri, 04 Dec 2026 21:54:07 +0100 [thread overview]
Message-ID: <DNC8WQAAW13P.19ELU6C84T1A1@bootlin.com> (raw)
In-Reply-To: <3upzghkw3iuxw4xxwdhoiwrb4kzcrtsoneqv5o52stl6u6nwfz@y5ozjdsjskh3>
Hello Ernest, Andrej,
On Fri Dec 4, 2026 at 4:28 PM CET, Ernest Van Hoecke wrote:
> On Fri, Nov 27, 2026 at 01:40:12PM +0100, Andrej Picej wrote:
>> 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@norik.com/
>>
>> Best regards,
>> Andrej
>
> Hi Andrej,
> Hi Luca,
>
> Thank you for your detailed report and investigation.
>
> I finally did some more testing on my side as well, and without a revert
> could not get past this issue, exept for hiding it with a longer HSYNC
> period. I could of course increase HSYNC but in that case I would expect
> other panels to be affected as well.
Thanks both for the analysis work. Andrej's report is very detailed, but
sadly it looks like there's no code that works for all cases.
> Therefore I sent a revert patch with all the details Luca asked for and
> some more investigating:
> https://lore.kernel.org/all/20261204-sn65dsi83-revert-v1-1-8c20f86fa254@toradex.com/T/#u
Thanks. I'm looking at it.
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-12-04 20:54 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-12 5:38 [PATCH v3 0/1] " Sudarshan Shetty
2026-04-12 5:38 ` [PATCH v3 1/1] " Sudarshan Shetty
2026-04-15 7:13 ` Luca Ceresoli
2026-04-15 8:07 ` Luca Ceresoli
2026-04-16 9:10 ` tessolveupstream
2026-04-21 6:01 ` tessolveupstream
2026-04-23 9:16 ` tessolveupstream
2026-04-24 8:25 ` Luca Ceresoli
2026-05-19 8:48 ` tessolveupstream
2026-05-19 11:43 ` Luca Ceresoli
2026-05-20 9:04 ` tessolveupstream
2026-05-20 11:38 ` Luca Ceresoli
2026-05-20 12:29 ` tessolveupstream
2026-05-20 17:48 ` Luca Ceresoli
2026-05-21 6:30 ` tessolveupstream
2026-09-04 12:02 ` Ernest Van Hoecke
2026-09-09 13:30 ` Luca Ceresoli
2026-10-24 9:54 ` Francesco Dolcini
2026-10-29 15:50 ` Ernest Van Hoecke
2026-11-13 7:36 ` Francesco Dolcini
2026-11-13 8:15 ` Luca Ceresoli
2026-11-27 12:40 ` Andrej Picej
2026-12-04 15:28 ` Ernest Van Hoecke
2026-12-04 20:54 ` Luca Ceresoli [this message]
2026-04-15 13:51 ` Alexander Stein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNC8WQAAW13P.19ELU6C84T1A1@bootlin.com \
--to=luca.ceresoli@bootlin.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=alexander.stein@ew.tq-group.com \
--cc=andrej.picej@norik.com \
--cc=andrzej.hajda@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=ernestvanhoecke@gmail.com \
--cc=francesco@dolcini.it \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=marex@denx.de \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=philippe.schenker@toradex.com \
--cc=regressions@lists.linux.dev \
--cc=rfoss@kernel.org \
--cc=simona@ffwll.ch \
--cc=t.remmet@phytec.de \
--cc=tessolveupstream@gmail.com \
--cc=tzimmermann@suse.de \
--cc=upstream@lists.phytec.de \
--cc=valentin@compulab.co.il \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®