From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Doug Anderson <dianders@chromium.org>
Cc: Kuogee Hsieh <quic_khsieh@quicinc.com>,
robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org,
vkoul@kernel.org, daniel@ffwll.ch, airlied@linux.ie,
agross@kernel.org, quic_abhinavk@quicinc.com,
quic_sbillaka@quicinc.com, freedreno@lists.freedesktop.org,
dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org,
Bjorn Andersson <andersson@kernel.org>
Subject: Re: [PATCH] drm/msm/dp: remove limitation of link rate at 5.4G to support HBR3
Date: Wed, 2 Nov 2022 21:04:13 +0300 [thread overview]
Message-ID: <60643572-4148-cea5-e64d-ec6534b0c407@linaro.org> (raw)
In-Reply-To: <CAD=FV=WPde5wVOGCKQYGuGwgCwRebox4FF0MgV_2pPCTsfo_UA@mail.gmail.com>
On 02/11/2022 20:28, Doug Anderson wrote:
> Hi,
>
> On Wed, Nov 2, 2022 at 10:23 AM Dmitry Baryshkov
> <dmitry.baryshkov@linaro.org> wrote:
>>
>>> 1. Someone figures out how to model this with the bridge chain and
>>> then we only allow HBR3 if we detect we've got a TCPC that supports
>>> it. This seems like the cleanest / best but feels like a long pole.
>>> Not only have we been trying to get the TCPC-modeled-as-a-bridge stuff
>>> landed for a long time but even when we do it we still don't have a
>>> solution for how to communicate the number of lanes and other stuff
>>> between the TCPC and the DP controller so we have to enrich the bridge
>>> interface.
>>
>> I think we'd need some OOB interface. For example for DSI interfaces we
>> have mipi_dsi_device struct to communicate such OOB data.
>>
>> Also take a note regarding data-lanes from my previous email.
>
> Right, we can somehow communicate the max link rate through the bridge
> chain to the DP controller in an OOB manner that would work.
I'd note that our dp_panel has some notion of such OOB data. So do AUX
drivers including the panel-edp. My suggestion would be to consider both
of them while modelling the OOB data.
>
>
>>> 2. We add in a DT property to the display controller node that says
>>> the max link rate for use on this board. This feels like a hack, but
>>> maybe it's not too bad. Certainly it would be incredibly simple to
>>> implement. Actually... ...one could argue that even if we later model
>>> the TCPC as a bridge that this property would still be valid / useful!
>>> You could certainly imagine that the SoC supports HBR3 and the TCPC
>>> supports HBR3 but that the board routing between the SoC and the TCPC
>>> is bad and only supports HBR2. In this case the only way out is
>>> essentially a "board constraint" AKA a DT property in the DP
>>> controller.
>>
>> We have been discussing similar topics with Abhinav. Krzysztof suggested
>> using link-frequencies property to provide max and min values.
>
> This sounds good to me and seems worth doing even if we eventually do #1.
And the bonus point is that it can be done easily.
--
With best wishes
Dmitry
next prev parent reply other threads:[~2022-11-02 18:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-31 17:27 [PATCH] drm/msm/dp: remove limitation of link rate at 5.4G to support HBR3 Kuogee Hsieh
2022-10-31 18:46 ` Dmitry Baryshkov
2022-10-31 21:11 ` Kuogee Hsieh
2022-11-01 0:08 ` Doug Anderson
2022-11-01 0:15 ` Dmitry Baryshkov
2022-11-01 14:37 ` Doug Anderson
2022-11-02 15:47 ` Doug Anderson
2022-11-02 17:23 ` Dmitry Baryshkov
2022-11-02 17:28 ` Doug Anderson
2022-11-02 18:04 ` Dmitry Baryshkov [this message]
2022-11-09 23:47 ` Kuogee Hsieh
2022-11-10 7:43 ` Dmitry Baryshkov
2022-11-15 18:43 ` Kuogee Hsieh
2022-11-16 13:40 ` Dmitry Baryshkov
2022-11-02 17:15 ` Dmitry Baryshkov
2022-11-02 17:25 ` Doug Anderson
2022-11-02 17:42 ` Dmitry Baryshkov
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=60643572-4148-cea5-e64d-ec6534b0c407@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=agross@kernel.org \
--cc=airlied@linux.ie \
--cc=andersson@kernel.org \
--cc=daniel@ffwll.ch \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_abhinavk@quicinc.com \
--cc=quic_khsieh@quicinc.com \
--cc=quic_sbillaka@quicinc.com \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=swboyd@chromium.org \
--cc=vkoul@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).