From: "Krzysztof Hałasa" <khalasa@piap.pl>
To: Maxime Ripard <mripard@kernel.org>
Cc: Marco Felsch <m.felsch@pengutronix.de>,
Marek Vasut <marex@nabladev.com>,
Stefan Agner <stefan@agner.ch>, Liu Ying <victor.liu@nxp.com>,
Simona Vetter <simona@ffwll.ch>,
imx@lists.linux.dev, Fabio Estevam <festevam@gmail.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Frank Li <Frank.Li@nxp.com>,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: i.MX8MP: Fix HDMI LCDIF FIFO underruns
Date: Fri, 20 Mar 2026 14:20:15 +0100 [thread overview]
Message-ID: <m3a4w2d4ds.fsf@t19.piap.pl> (raw)
In-Reply-To: <20260320-amiable-hairy-bullfinch-28bfda@houat> (Maxime Ripard's message of "Fri, 20 Mar 2026 10:25:11 +0100")
Maxime Ripard <mripard@kernel.org> writes:
>> > > - writel(FIELD_PREP(PANIC0_THRES_LOW_MASK, 1 * PANIC0_THRES_MAX / 3) |
>> > > - FIELD_PREP(PANIC0_THRES_HIGH_MASK, 2 * PANIC0_THRES_MAX / 3),
>> > > + writel(FIELD_PREP(PANIC0_THRES_LOW_MASK, DIV_ROUND_UP(1 * PANIC0_THRES_MAX, 3)) |
>> > > + FIELD_PREP(PANIC0_THRES_HIGH_MASK, DIV_ROUND_UP(2 * PANIC0_THRES_MAX, 3)),
> If this is related to the output resolution, the DT is the last place
> you should deal with this.
Well... just tested (v6.19 + patch) with 2160p30 and, surprise surprise,
it doesn't work for like 10% of the time. I.e., the display may freeze
at weston start and/or shutdown time, but otherwise works:
v6.19 (frozen screen while starting weston, same display, the patch
applied):
32FC6000: 2 2 2 2
32FC6010: 80000000 8700F00 12800B0 480008
32FC6020: A0058 1000007 0
32FC6030: 1 1
32FC6200: 8700F00 223C00 EF000000
32FC6210: 0 89000000 1
32FC6220: 0 0 0 0
32FC6230: 0 0 AB0155
OTOH NXP's 6.6.23 works all the time:
NCP v6.6.23 (a different i.MX8MP):
32FC6000: A A A A
32FC6010: 80000000 8700F00 12800B0 480008
32FC6020: A0058 10005 0
32FC6030: 1 1
32FC6200: 8700F00 A23C00 97C00000
32FC6210: 0 89000000 1
32FC6220: 0 0 0 0
32FC6230: 0 0 AB0155
32FC600x 2 vs. A is pixel clock inversion.
32FC6208 is config P_SIZE, T_SIZE + pitch.
More tests after weekend.
--
Krzysztof "Chris" Hałasa
Sieć Badawcza Łukasiewicz
Przemysłowy Instytut Automatyki i Pomiarów PIAP
Al. Jerozolimskie 202, 02-486 Warszawa
next prev parent reply other threads:[~2026-03-20 13:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-19 11:45 i.MX8MP: Fix HDMI LCDIF FIFO underruns Krzysztof Hałasa
2026-03-20 2:39 ` Marek Vasut
2026-03-20 8:04 ` Marco Felsch
2026-03-20 9:25 ` Maxime Ripard
2026-03-20 13:20 ` Krzysztof Hałasa [this message]
2026-03-23 8:18 ` Liu Ying
2026-03-23 12:54 ` Krzysztof Hałasa
2026-03-25 12:40 ` Krzysztof Hałasa
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=m3a4w2d4ds.fsf@t19.piap.pl \
--to=khalasa@piap.pl \
--cc=Frank.Li@nxp.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m.felsch@pengutronix.de \
--cc=maarten.lankhorst@linux.intel.com \
--cc=marex@nabladev.com \
--cc=mripard@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=simona@ffwll.ch \
--cc=stefan@agner.ch \
--cc=tzimmermann@suse.de \
--cc=victor.liu@nxp.com \
/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