All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Dave Stevenson <dave.stevenson@raspberrypi.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: DRI Development <dri-devel@lists.freedesktop.org>,
	Sam Ravnborg <sam@ravnborg.org>,
	Jagan Teki <jagan@amarulasolutions.com>,
	Robert Foss <robert.foss@linaro.org>
Subject: Re: [PATCH][RESEND] drm/bridge: ti-sn65dsi83: Check link status register after enabling the bridge
Date: Tue, 5 Apr 2022 15:49:50 +0200	[thread overview]
Message-ID: <2b6df0ac-d429-7d49-60e8-727f8c135671@denx.de> (raw)
In-Reply-To: <CAPY8ntC5RQ4pq=Bf5Z+Vi-NhD6boGnEixjporJSKgR=AaUrEpw@mail.gmail.com>

On 4/5/22 15:25, Dave Stevenson wrote:
> On Tue, 5 Apr 2022 at 14:08, Laurent Pinchart
> <laurent.pinchart@ideasonboard.com> wrote:
>>
>> Hi Dave,
>>
>> On Tue, Apr 05, 2022 at 01:00:28PM +0100, Dave Stevenson wrote:
>>> On Tue, 5 Apr 2022 at 12:42, Laurent Pinchart wrote:
>>>> On Sun, Feb 13, 2022 at 03:26:48AM +0100, Marek Vasut wrote:
>>>>> In rare cases, the bridge may not start up correctly, which usually
>>>>> leads to no display output. In case this happens, warn about it in
>>>>> the kernel log.
>>>>
>>>> Do you know what this is caused by ? It's a bit annoying to add a 10+ms
>>>> delay at start time just to be notified of rare cases.
>>>
>>> The datasheet [1] section 7.4.2 Initialization Sequence states in step 2
>>> "After power is applied and stable, the DSI CLK lanes MUST be in HS
>>> state and the DSI data lanes MUST be driven
>>> to LP11 state"
>>> Data lanes shouldn't go to HS until step 8 after the DSI83 has been configured.
>>>
>>> Configuration from the driver is being done from atomic_enable,
>>> therefore the data lanes are likely in HS mode and sending video, not
>>> LP11.
>>>
>>> Deviate from the specified initialisation sequence at your peril!
>>>
>>> The SN65DSI8[3|4|5] is one of the DSI devices that I'd been looking at
>>> with the DSI ordering patches [2] so that we could initialise it in
>>> the way specified in the datasheet. I've had no responses to v2 of
>>> those patches though.
>>
>> Sounds like I need to review that :-) It's still in my queue, I'll try
>> to push it to the top.
>>
>> Do you think this patch could then be reverted ?
> 
> If we can initialise the DSI host before the bridge for the
> pre_enable, then all the configuration moves to the atomic_pre_enable
> and there should be no need to have the delay.
> 
> I can't 100% guarantee that, but one of the folks on the Pi forums is
> using [1] which does that, and is reporting it working well. (He's
> also using the DSI85 to take 2 DSI links and drive 2 LVDS single link
> panels)

It seems to me that checking whether the bridge got correctly 
initialized is orthogonal to the aforementioned patchset though ?

  reply	other threads:[~2022-04-05 13:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-13  2:26 [PATCH][RESEND] drm/bridge: ti-sn65dsi83: Check link status register after enabling the bridge Marek Vasut
2022-03-31 15:32 ` Robert Foss
2022-03-31 15:32   ` Robert Foss
2022-04-05 11:42 ` Laurent Pinchart
2022-04-05 11:59   ` Marek Vasut
2022-04-05 12:00   ` Dave Stevenson
2022-04-05 13:08     ` Laurent Pinchart
2022-04-05 13:25       ` Dave Stevenson
2022-04-05 13:49         ` Marek Vasut [this message]
2022-04-05 14:20           ` Dave Stevenson
2022-04-05 14:48             ` Marek Vasut
2022-04-05 15:24               ` Dave Stevenson
2022-04-05 21:36                 ` Marek Vasut
2022-04-06 14:11                   ` Frieder Schrempf

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=2b6df0ac-d429-7d49-60e8-727f8c135671@denx.de \
    --to=marex@denx.de \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jagan@amarulasolutions.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=robert.foss@linaro.org \
    --cc=sam@ravnborg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.