mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Frieder Schrempf <frieder.schrempf@kontron.de>
To: Peng Fan <peng.fan@nxp.com>, Adam Ford <aford173@gmail.com>,
	"imx@lists.linux.dev" <imx@lists.linux.dev>,
	Marek Vasut <marex@denx.de>, Stefan Agner <stefan@agner.ch>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
	Shawn Guo <shawnguo@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	dri-devel <dri-devel@lists.freedesktop.org>,
	arm-soc <linux-arm-kernel@lists.infradead.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Dominique MARTINET <dominique.martinet@atmark-techno.com>
Subject: Re: i.MX8MP IMX-LCDIF Underrun Question(s)
Date: Mon, 9 Sep 2024 09:06:24 +0200	[thread overview]
Message-ID: <8cfd3052-c85a-4235-b9b8-6d2929e9e455@kontron.de> (raw)
In-Reply-To: <PAXPR04MB84592D4026EE5EBFBCC946A688992@PAXPR04MB8459.eurprd04.prod.outlook.com>

On 09.09.24 5:00 AM, Peng Fan wrote:
>> Subject: Re: i.MX8MP IMX-LCDIF Underrun Question(s)
>>
>> On 06.09.24 3:46 AM, Adam Ford wrote:
>>> I have been testing various settings on the HDMI out of the i.MX8MP.
>>>
>>> I noticed that sometimes my monitor would not sync, but sometimes
>> it
>>> would on the same resolution/refresh rate.  Frieder noted the LCDIF
>>> was sometimes underflowing, so read up on it a little bit.
>>>
>>> In the comments of the LCDIF driver, it's noted:
>>>     Set FIFO Panic watermarks, low 1/3, high 2/3 .
>>>
>>> However, in the downstream kernels, NXP changes the threshold to
>> 1/2
>>> and 3/4 on the LCDIF that drives the HDMI, while leaving the other
>>> LCDIF interfaces at the default.
>>>
>>> When I increased the threshold to 1/2 and 3/4, it appeared that
>>> several resolutions that my monitor was struggling to sync started
>>> working, and it appeared to sync faster.  I don't have an HDMI
>>> analyzer, so I cannot verify much beyond knowing if my monitor can
>> or
>>> cannot sync.
>>
>> For me this change doesn't seem to cause any improved behavior. My
>> monitor still fails to sync every few times I run "modetest -s" .
>>
>> Also we have a downstream kernel based on 6.1 with backported
>> HDMI support and I don't see the issues there. But I need to make
>> some further tests to make any reliable statements.
>>
> 
> Downstream kernel has some NOC settings that not supported
> in upstream kernel, that maybe the issue.
> 
> If you check 6.6 kernel, you could see some noc related settings
> in imx8mp-blk-ctl.c imx8m-blk-ctl.c and gpcv2.c. You may give a
> try with those noc settings applied and see whether that would
> improve.

With "downstream kernel" I didn't mean linux-imx. I meant our Kontron
linux-ktn, which is based on mainline. I didn't test linux-imx to see if
the issue occurs there, but that might be one task for further debugging.

      reply	other threads:[~2024-09-09  7:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-06  1:46 Adam Ford
2024-09-06  8:03 ` Peng Fan
2024-09-06 12:06   ` Maxime Ripard
2024-09-06 20:01 ` Frieder Schrempf
2024-09-09  3:00   ` Peng Fan
2024-09-09  7:06     ` Frieder Schrempf [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=8cfd3052-c85a-4235-b9b8-6d2929e9e455@kontron.de \
    --to=frieder.schrempf@kontron.de \
    --cc=aford173@gmail.com \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dominique.martinet@atmark-techno.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=maarten.lankhorst@linux.intel.com \
    --cc=marex@denx.de \
    --cc=mripard@kernel.org \
    --cc=peng.fan@nxp.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=stefan@agner.ch \
    --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

all inboxes | Powered by JetHome®