Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: "Luca Ceresoli" <luca.ceresoli@bootlin.com>
To: "Ernest Van Hoecke" <ernestvanhoecke@gmail.com>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"Dmitry Baryshkov" <lumag@kernel.org>,
	"Luca Ceresoli" <luca.ceresoli@bootlin.com>,
	"Robert Foss" <rfoss@kernel.org>,
	"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
	"Jernej Skrabec" <jernej.skrabec@gmail.com>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Sudarshan Shetty" <tessolveupstream@gmail.com>,
	"Andrej Picej" <andrej.picej@norik.com>
Cc: "Francesco Dolcini" <francesco@dolcini.it>,
	"Marek Vasut" <marex@nabladev.com>,
	"Alexander Stein" <alexander.stein@ew.tq-group.com>,
	<dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>,
	<regressions@lists.linux.dev>,
	"Ernest Van Hoecke" <ernest.vanhoecke@toradex.com>,
	<stable@vger.kernel.org>
Subject: Re: [PATCH] Revert "drm: bridge: ti-sn65dsi83: Remove NO_HFP and NO_HBP mode flags for LVDS stability"
Date: Fri, 04 Dec 2026 21:55:35 +0100	[thread overview]
Message-ID: <DNC8XUY06H32.1FVCWPSZ55X40@bootlin.com> (raw)
In-Reply-To: <20261204-sn65dsi83-revert-v1-1-8c20f86fa254@toradex.com>

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

      reply	other threads:[~2026-12-04 20:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=DNC8XUY06H32.1FVCWPSZ55X40@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=dri-devel@lists.freedesktop.org \
    --cc=ernest.vanhoecke@toradex.com \
    --cc=ernestvanhoecke@gmail.com \
    --cc=francesco@dolcini.it \
    --cc=jernej.skrabec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=marex@nabladev.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=regressions@lists.linux.dev \
    --cc=rfoss@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=stable@vger.kernel.org \
    --cc=tessolveupstream@gmail.com \
    --cc=tzimmermann@suse.de \
    /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