From: Marek Vasut <marex@denx.de>
To: neil.armstrong@linaro.org,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Amit Pundir <amit.pundir@linaro.org>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Jagan Teki <jagan@amarulasolutions.com>,
dri-devel@lists.freedesktop.org, Robert Foss <rfoss@kernel.org>,
Andrzej Hajda <andrzej.hajda@intel.com>,
Jonas Karlman <jonas@kwiboo.se>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Michael Walle <michael@walle.cc>,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
linux-arm-msm <linux-arm-msm@vger.kernel.org>,
Linux regressions mailing list <regressions@lists.linux.dev>,
freedreno <freedreno@lists.freedesktop.org>
Subject: Re: [PATCH 2/2] drm/bridge: lt9611: Do not generate HFP/HBP/HSA and EOT packet
Date: Wed, 2 Aug 2023 19:25:17 +0200 [thread overview]
Message-ID: <c9e42b81-f0b4-05a7-03db-786fa7d38135@denx.de> (raw)
In-Reply-To: <d4b778f6-35b6-fc1b-014d-eaa9b3b900a4@linaro.org>
On 8/2/23 15:08, neil.armstrong@linaro.org wrote:
> Hi Marek,
>
> On 02/08/2023 14:25, Marek Vasut wrote:
>> On 8/2/23 10:39, neil.armstrong@linaro.org wrote:
>>> Hi Marek,
>>
>> Hi,
>>
>>> On 13/07/2023 20:28, Marek Vasut wrote:
>>>
>>> <snip>
>>>
>>>>>>
>>>>>> MIPI_DSI_MODE_VIDEO_NO_HFP means the HBP period is just skipped by
>>>>>> DSIM.
>>>>>>
>>>>>> Maybe there is a need for new set of flags which differentiate
>>>>>> between HBP skipped (i.e. NO HBP) and HBP LP11 ?
>>>>>>
>>>>>
>>>>> No, the section of the MIPI DSI spec I posted below clearly states
>>>>> there are two options:
>>>>>
>>>>> 1) send blanking packets during those periods
>>>>> 2) transition to LP11 during those periods
>>>>>
>>>>> There is no 3rd option in the spec of not doing both like what you
>>>>> are suggesting. So DSIM should also be only transitioning to LP11
>>>>> during those periods if its not sending the blanking packets with
>>>>> those flags set.
>>>>>
>>>>> So, there is no need for any new set of flags to differentiate.
>>>>>
>>>>> The flags and their interpretation is correct in MSM driver. I
>>>>> cannot comment on what exactly DSIM does with those flags.
>>>>
>>>> How do you explain the comment in include/drm/drm_mipi_dsi.h:
>>>>
>>>> 128 /* disable hback-porch area */
>>>> 129 #define MIPI_DSI_MODE_VIDEO_NO_HBP BIT(6)
>>>
>>> Can you specify how you determined those flags were needed on DSIM ?
>>> a vendor tree ? a datasheet ?
>>
>> The following upstream commit:
>>
>> 996e1defca344 ("drm: exynos: dsi: Fix MIPI_DSI*_NO_* mode flags")
>>
>>> In the meantime, we should revert this patch because it regresses
>>> some Qcom
>>> based platforms until we figure out what's missing to make DSIM based
>>> boards
>>> happy.
>>>
>>> I'll send a revert change afterwards.
>>
>> That change would break existing use case on i.MX8M then, I disagree
>> with that revert.
>
> As I understand the timeline is :
>
> - 996e1defca344 was merged in v6.2-rc2 and caused regression on NXP
> platforms
>
> - 8ddce13ae696 was merged in v6.5-rc1 to fix that but caused regression
> on QCOM platforms
>
> Did I miss something ?
That looks about right.
> I don't know how to handle this apart reverting 8ddce13ae696 and trying
> to find a proper fix that doesn't regress QCOM.
I provided a suggestion above -- I believe QCOM is misinterpreting the
NO_H* flags and it needs separate flags for its behavior. The NXP
hardware per MX8M{M,N,P} reference manual (which is available at
NXP.com) skips the H* areas in the transfer, which matches the flags
description:
include/drm/drm_mipi_dsi.h-/* disable hback-porch area */
include/drm/drm_mipi_dsi.h:#define MIPI_DSI_MODE_VIDEO_NO_HBP BIT(6)
If the QCOM hardware does something else, it should introduce its own
set of flags for that something else and that would be problem solved,
for both platforms.
I don't have access to the QCOM hardware or datasheet however, is either
available ?
> So, The main issue is around the real meaning of the
> IPI_DSI_MODE_VIDEO_NO_* flags,
> Exynos DRM removed the HSA, HBP and HFP packets, Qcom DSI moves the DSI
> lanes
> state to LP-11 during the period.
>
> The behavior is significantly different and the naming doesn't suggest any
> correct behavior.
>
> The only solution is to find out why :
> - On Qcom platforms, having the HSA, HBP and HFP periods is OK, but not
> on DSIM
> - On DSIM, removing the HSA, HBP and HFP periods is fine
> - What's the exact requirement of the lt9611 bridge concerning those
> periods
See above.
next prev parent reply other threads:[~2023-08-02 17:25 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230403221233.500485-1-marex@denx.de>
[not found] ` <20230403221233.500485-2-marex@denx.de>
2023-07-05 4:45 ` [PATCH 2/2] drm/bridge: lt9611: Do not generate HFP/HBP/HSA and EOT packet Amit Pundir
2023-07-05 5:30 ` Jagan Teki
2023-07-05 5:39 ` Dmitry Baryshkov
2023-07-05 5:46 ` Jagan Teki
2023-07-05 7:31 ` Marek Vasut
2023-07-06 9:20 ` Amit Pundir
2023-07-07 7:18 ` Neil Armstrong
2023-07-07 8:47 ` Neil Armstrong
2023-07-08 15:40 ` Marek Vasut
2023-07-08 15:53 ` Dmitry Baryshkov
2023-07-08 19:39 ` Marek Vasut
2023-07-08 19:40 ` Dmitry Baryshkov
2023-07-08 19:47 ` Marek Vasut
2023-07-09 1:03 ` Abhinav Kumar
2023-07-12 17:41 ` Marek Vasut
2023-07-13 18:09 ` Abhinav Kumar
2023-07-13 18:28 ` Marek Vasut
2023-07-13 18:34 ` Abhinav Kumar
2023-07-14 6:11 ` Amit Pundir
2023-07-26 10:09 ` Linux regression tracking (Thorsten Leemhuis)
2023-08-02 8:39 ` neil.armstrong
2023-08-02 12:25 ` Marek Vasut
2023-08-02 13:08 ` neil.armstrong
2023-08-02 17:25 ` Marek Vasut [this message]
2023-08-02 17:49 ` Abhinav Kumar
2023-08-02 18:46 ` Marek Vasut
2023-07-13 18:37 ` Jagan Teki
2023-07-08 14:08 ` Linux regression tracking (Thorsten Leemhuis)
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=c9e42b81-f0b4-05a7-03db-786fa7d38135@denx.de \
--to=marex@denx.de \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=amit.pundir@linaro.org \
--cc=andrzej.hajda@intel.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jagan@amarulasolutions.com \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=linux-arm-msm@vger.kernel.org \
--cc=michael@walle.cc \
--cc=neil.armstrong@linaro.org \
--cc=quic_abhinavk@quicinc.com \
--cc=regressions@lists.linux.dev \
--cc=rfoss@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).