From: Jan Kiszka <jan.kiszka@siemens.com>
To: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Alexander Stein <alexander.stein@ew.tq-group.com>
Cc: Aradhya Bhatia <a-bhatia1@ti.com>,
dri-devel@lists.freedesktop.org, Marek Vasut <marex@denx.de>,
Andrzej Hajda <andrzej.hajda@intel.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Robert Foss <rfoss@kernel.org>,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
Jonas Karlman <jonas@kwiboo.se>,
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>, Daniel Vetter <daniel@ffwll.ch>,
Sam Ravnborg <sam@ravnborg.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/2] drm/bridge: tc358767: Fix DRM_BRIDGE_ATTACH_NO_CONNECTOR case
Date: Mon, 23 Sep 2024 09:42:27 +0200 [thread overview]
Message-ID: <9b0e99f5-554b-428f-856c-cc32f4520c73@siemens.com> (raw)
In-Reply-To: <5bb0459a-ec3a-487f-a9b5-28ee643a1215@ideasonboard.com>
On 28.08.24 15:32, Tomi Valkeinen wrote:
> On 26/08/2024 22:35, Jan Kiszka wrote:
>> On 24.06.24 12:17, Dmitry Baryshkov wrote:
>>> On Mon, 24 Jun 2024 at 13:07, Alexander Stein
>>> <alexander.stein@ew.tq-group.com> wrote:
>>>>
>>>> Hi,
>>>>
>>>> Am Montag, 24. Juni 2024, 11:49:04 CEST schrieb Dmitry Baryshkov:
>>>>> On Mon, Jun 24, 2024 at 03:07:10PM GMT, Aradhya Bhatia wrote:
>>>>>>
>>>>>>
>>>>>> On 22/06/24 17:49, Dmitry Baryshkov wrote:
>>>>>>> On Sat, Jun 22, 2024 at 05:16:58PM GMT, Aradhya Bhatia wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> On 17-Jun-24 13:41, Dmitry Baryshkov wrote:
>>>>>>>>> On Mon, Jun 17, 2024 at 07:40:32AM GMT, Jan Kiszka wrote:
>>>>>>>>>> On 16.02.24 15:57, Marek Vasut wrote:
>>>>>>>>>>> On 2/16/24 10:10, Tomi Valkeinen wrote:
>>>>>>>>>>>> Ok. Does anyone have a worry that these patches make the
>>>>>>>>>>>> situation
>>>>>>>>>>>> worse for the DSI case than it was before? Afaics, if the
>>>>>>>>>>>> DSI lanes
>>>>>>>>>>>> are not set up early enough by the DSI host, the driver
>>>>>>>>>>>> would break
>>>>>>>>>>>> with and without these patches.
>>>>>>>>>>>>
>>>>>>>>>>>> These do fix the driver for DRM_BRIDGE_ATTACH_NO_CONNECTOR
>>>>>>>>>>>> and DPI, so
>>>>>>>>>>>> I'd like to merge these unless these cause a regression with
>>>>>>>>>>>> the DSI
>>>>>>>>>>>> case.
>>>>>>>>>>>
>>>>>>>>>>> 1/2 looks good to me, go ahead and apply .
>>>>>>>>
>>>>>>>> Isn't there any way for the second patch to move forward as well
>>>>>>>> though?
>>>>>>>> The bridge device (under DPI to (e)DP mode) cannot really work
>>>>>>>> without
>>>>>>>> it, and the patches have been pending idle for a long time. =)
>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> My local patches still apply on top of 6.10-rc4, so I don't
>>>>>>>>>> think this
>>>>>>>>>> ever happened. What's still holding up this long-pending fix
>>>>>>>>>> (at least
>>>>>>>>>> for our devices)?
>>>>>>>>>
>>>>>>>>> Neither of the patches contains Fixes tags. If the first patch
>>>>>>>>> fixes an
>>>>>>>>> issue in previous kernels, please consider following the stable
>>>>>>>>> process.
>>>>>>>>>
>>>>>>>>> If we are unsure about the second patch, please send the first
>>>>>>>>> patch
>>>>>>>>> separately, adding proper tags.
>>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks Dmitry! I can send the patches again with the required fixes
>>>>>>>> tags (or just patch-1 if we cannot do anything about patch-2).
>>>>>>>
>>>>>>> The problem with the second patch is that it get mixed reviews. I
>>>>>>> can
>>>>>>> ack the first patch, but for the second one I'd need a
>>>>>>> confirmation from
>>>>>>> somebody else. I'll go on and apply the first patch later today.
>>>>>>>
>>>>>>
>>>>>> Thanks Dmitry!
>>>>>>
>>>>>> However, would it be okay if I instead add another patch that makes 2
>>>>>> versions of the "tc_edp_bridge_funcs", say
>>>>>> "tc_dpi_edp_bridge_funcs" and
>>>>>> "tc_dsi_edp_bridge_funcs", that have all the same function hooks
>>>>>> except
>>>>>> for the .edid_read()?
>>>>>>
>>>>>> The dsi edid_read() will remain the same, and Tomi's patch - patch
>>>>>> 2/2 -
>>>>>> will only fix the dpi version of the edid_read()?
>>>>>>
>>>>>> The bridge already has the capability to distinguish a DSI input
>>>>>> from a
>>>>>> DPI input. This can be leveraged to decide which set of functions
>>>>>> need
>>>>>> to be used without any major changes.
>>>>>
>>>>> I'd prefer if somebody with the DSI setup can ack / test the second
>>>>> patch.
>>>>>
>>>>>
>>>>
>>>> Now that my DSI-DP setup works apparently without issue I could test
>>>> patch 2.
>>>> Since my setup does not use DRM_BRIDGE_ATTACH_NO_CONNECTOR (running on
>>>> drivers/gpu/drm/mxsfb/lcdif_drv.c), I can only say
>>>> there is no regression.
>>>
>>> Let me send a (non-tested) patch, switching to drm_bridge_connector,
>>> then you can probably test both of them
>>>
>>
>> I suppose [1] was that follow-up, just not leading to success, right?
>>
>> Now, what's next? I'd love to see the regression we have for the IOT2050
>> devices finally fixed, even if it now only requires a short downstream
>> patch.
>>
>> Jan
>>
>> [1]
>> https://lore.kernel.org/dri-devel/20240624-mxc-lcdif-bridge-attach-v1-1-37e8c5d5d934@linaro.org/
>
> I have to say I don't remember the details for this anymore, but half a
> year ago I said:
>
>> Afaics, if the DSI lanes are not set up early enough by the DSI host,
>> the driver would break with and without these patches.
>
> I'm not sure if that is correct or not. But if it is, then, afaiu, this
> (the second patch):
>
> - Fixes the issue for the DPI-DP use case
>
> - Doesn't cause issues for the DSI-DP use case without
> DRM_BRIDGE_ATTACH_NO_CONNECTOR (as per Alexander's test)
>
> - Shouldn't cause (new) issues for the DSI-DP use case with
> DRM_BRIDGE_ATTACH_NO_CONNECTOR (as per my code review and guessing...)
>
> The third point is somewhat concerning, of course, but do we have any
> setup with DSI-DP and DRM_BRIDGE_ATTACH_NO_CONNECTOR that works now? If
> not, maybe we can just ignore the possible issues, as this fixes
> problems on a setup we do have.
>
As Dmitry asked me during Plumbers to revalidate if our setup still
needs patch 2, I just did that over 6.11.0-next-20240923 (where patch 1
is now included). No surprise, it is still needed for our iot2050 device
series, otherwise the display remains black.
Jan
--
Siemens AG, Technology
Linux Expert Center
next prev parent reply other threads:[~2024-09-23 7:42 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-08 11:27 Tomi Valkeinen
2023-11-08 11:27 ` [PATCH v2 1/2] drm/bridge: tc358767: Add format negotiation hooks for DPI/DSI to (e)DP Tomi Valkeinen
2024-06-17 8:09 ` Dmitry Baryshkov
2024-06-22 12:19 ` Dmitry Baryshkov
2023-11-08 11:27 ` [PATCH v2 2/2] drm/bridge: tc358767: Fix link properties discovery Tomi Valkeinen
2023-11-08 12:45 ` [PATCH v2 0/2] drm/bridge: tc358767: Fix DRM_BRIDGE_ATTACH_NO_CONNECTOR case Alexander Stein
2023-11-08 13:06 ` Tomi Valkeinen
2023-12-06 12:11 ` Tomi Valkeinen
2023-12-11 8:07 ` Aradhya Bhatia
2024-02-15 8:53 ` Jan Kiszka
2024-02-15 9:03 ` Alexander Stein
2024-02-16 9:10 ` Tomi Valkeinen
2024-02-16 14:57 ` Marek Vasut
2024-06-17 5:40 ` Jan Kiszka
2024-06-17 8:11 ` Dmitry Baryshkov
2024-06-22 11:46 ` Aradhya Bhatia
2024-06-22 12:19 ` Dmitry Baryshkov
2024-06-24 9:37 ` Aradhya Bhatia
2024-06-24 9:49 ` Dmitry Baryshkov
2024-06-24 10:07 ` Alexander Stein
2024-06-24 10:17 ` Dmitry Baryshkov
2024-08-26 19:35 ` Jan Kiszka
2024-08-28 13:32 ` Tomi Valkeinen
2024-09-23 7:42 ` Jan Kiszka [this message]
2024-09-23 12:25 ` Dmitry Baryshkov
2024-10-11 12:02 ` Tomi Valkeinen
2024-10-12 8:07 ` Dmitry Baryshkov
2023-12-11 8:42 ` Alexander Stein
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=9b0e99f5-554b-428f-856c-cc32f4520c73@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=a-bhatia1@ti.com \
--cc=airlied@gmail.com \
--cc=alexander.stein@ew.tq-group.com \
--cc=andrzej.hajda@intel.com \
--cc=daniel@ffwll.ch \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=marex@denx.de \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=rfoss@kernel.org \
--cc=sam@ravnborg.org \
--cc=tomi.valkeinen@ideasonboard.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
all inboxes | Powered by JetHome®