From: Michael Walle <mwalle@kernel.org>
To: angelogioacchino.delregno@collabora.com
Cc: airlied@gmail.com, chunkuang.hu@kernel.org, ck.hu@mediatek.com,
daniel@ffwll.ch, dri-devel@lists.freedesktop.org,
jitao.shi@mediatek.com, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
matthias.bgg@gmail.com, p.zabel@pengutronix.de,
shaoming.chen@mediatek.com, yt.shen@mediatek.com,
Michael Walle <mwalle@kernel.org>
Subject: Re: [PATCH] drm: mediatek: mtk_dsi: Fix NO_EOT_PACKET settings/handling
Date: Fri, 15 Sep 2023 12:11:24 +0200 [thread overview]
Message-ID: <20230915101124.283232-1-mwalle@kernel.org> (raw)
In-Reply-To: <20230523104234.7849-1-angelogioacchino.delregno@collabora.com>
> Due to the initial confusion about MIPI_DSI_MODE_EOT_PACKET, properly
> renamed to MIPI_DSI_MODE_NO_EOT_PACKET, reflecting its actual meaning,
> both the DSI_TXRX_CON register setting for bit (HSTX_)DIS_EOT and the
> later calculation for horizontal sync-active (HSA), back (HBP) and
> front (HFP) porches got incorrect due to the logic being inverted.
>
> This means that a number of settings were wrong because....:
> - DSI_TXRX_CON register setting: bit (HSTX_)DIS_EOT should be
> set in order to disable the End of Transmission packet;
> - Horizontal Sync and Back/Front porches: The delta used to
> calculate all of HSA, HBP and HFP should account for the
> additional EOT packet.
>
> Before this change...
> - Bit (HSTX_)DIS_EOT was being set when EOT packet was enabled;
> - For HSA/HBP/HFP delta... all three were wrong, as words were
> added when EOT disabled, instead of when EOT packet enabled!
>
> Invert the logic around flag MIPI_DSI_MODE_NO_EOT_PACKET in the
> MediaTek DSI driver to fix the aforementioned issues.
>
> Fixes: 8b2b99fd7931 ("drm/mediatek: dsi: Fine tune the line time caused by EOTp")
> Fixes: 2d52bfba09d1 ("drm/mediatek: add non-continuous clock mode and EOT packet control")
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Michael Walle <mwalle@kernel.org>
Thanks,
-michael
next prev parent reply other threads:[~2023-09-15 10:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-23 10:42 AngeloGioacchino Del Regno
2023-06-23 9:47 ` AngeloGioacchino Del Regno
2023-06-23 11:29 ` Alexandre Mergnat
2023-07-19 7:39 ` AngeloGioacchino Del Regno
2023-07-19 15:25 ` Chun-Kuang Hu
2023-09-15 10:11 ` Michael Walle [this message]
2023-10-18 10:21 ` AngeloGioacchino Del Regno
2023-10-18 13:24 ` Chun-Kuang Hu
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=20230915101124.283232-1-mwalle@kernel.org \
--to=mwalle@kernel.org \
--cc=airlied@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunkuang.hu@kernel.org \
--cc=ck.hu@mediatek.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=jitao.shi@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=shaoming.chen@mediatek.com \
--cc=yt.shen@mediatek.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
all inboxes | Powered by JetHome®