From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Abhinav Kumar <quic_abhinavk@quicinc.com>
Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org
Subject: Re: [PATCH v2 2/2] drm/msm/dpu: Add SC8180x to hw catalog
Date: Tue, 15 Feb 2022 20:03:14 -0600 [thread overview]
Message-ID: <YgxbYnpbBeOIkGWi@builder.lan> (raw)
In-Reply-To: <d0cac12e-7c03-2ba3-fb8d-aee09b72a1b1@quicinc.com>
On Tue 15 Feb 19:34 CST 2022, Abhinav Kumar wrote:
>
>
> On 2/15/2022 4:20 PM, Dmitry Baryshkov wrote:
> > On Tue, 15 Feb 2022 at 23:21, Abhinav Kumar <quic_abhinavk@quicinc.com> wrote:
> > > On 2/15/2022 10:42 AM, Dmitry Baryshkov wrote:
> > > > On Tue, 15 Feb 2022 at 20:42, Abhinav Kumar <quic_abhinavk@quicinc.com> wrote:
> > > > > On 2/15/2022 9:28 AM, Bjorn Andersson wrote:
> > > > > > On Tue 15 Feb 11:14 CST 2022, Abhinav Kumar wrote:
> > > > > > > On 2/14/2022 8:33 PM, Bjorn Andersson wrote:
> > > > > > > > From: Rob Clark <robdclark@chromium.org>
[..]
> > > > (thus leading us to cases when someone would forget to add INTF_EDP
> > > > next to INTF_DP)
> > > >
> > > > Also, if we are switching from INTF_DP to INTF_EDP, should we stop
> > > > using end-to-end numbering (like MSM_DP_CONTROLLER_2 for INTF_5) and
> > > > add a separate numbering scheme for INTF_EDP?
> > > >
> > > We should change the controller ID to match what it actually is.
> > >
> > > Now that you pointed this out, this looks even more confusing to me to
> > > say that MSM_DP_CONTROLLER_2 is actually a EDP controller because
> > > fundamentally and even hardware block wise they are different.
> >
> > So, do we split msm_priv->dp too? It's indexed using
> > MSM_DP_CONTROLLER_n entries.
> > Do we want to teach drm/msm/dp code that there are priv->dp[] and
> > priv->edp arrays?
>
> ok so now priv->dp and priv->edp arrays are also in the picture here :)
>
> Actually all these questions should have probably come when we were figuring
> out how best to re-use eDP and DP driver.
>
> Either way atleast, its good we are documenting all these questions on this
> thread so that anyone can refer this to know what all was missed out :)
>
> priv->dp is of type msm_dp. When re-using DP driver for eDP and since
> struct msm_dp is the shared struct between dpu and the msm/dp, I get your
> point of re-using MSM_DP_CONTROLLER_* as thats being use to index.
>
> So MSM_DP_CONTROLLER_* is more of an index into the DP driver and not really
> a hardware indexing scheme.
>
> If we split into two arrays, we need more changes to dpu_encoder too.
>
> Too instrusive a change at this point, even though probably correct.
>
I'm sorry, but performing such a split would create a whole bunch of
duplication and I don't see the reasons yet. Can you please give me an
example of when the DPU _code_ would benefit from being specifically
written for EDP vs DP?
Things where it doesn't make sense to enable certain features in
runtime - but really have different implementation for the two interface
types.
> But are you seeing more changes required even if we just change INTF_DP to
> INTF_eDP for the eDP entries? What are the challenges there?
>
What are the benefits?
Regards,
Bjorn
next prev parent reply other threads:[~2022-02-16 2:03 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-15 4:33 [PATCH v2 1/2] drm/msm/dpu: Add INTF_5 interrupts Bjorn Andersson
2022-02-15 4:33 ` [PATCH v2 2/2] drm/msm/dpu: Add SC8180x to hw catalog Bjorn Andersson
2022-02-15 13:43 ` Dmitry Baryshkov
2022-02-15 17:14 ` Abhinav Kumar
2022-02-15 17:28 ` Bjorn Andersson
2022-02-15 17:42 ` Abhinav Kumar
2022-02-15 18:42 ` Dmitry Baryshkov
2022-02-15 20:21 ` Abhinav Kumar
2022-02-16 0:20 ` Dmitry Baryshkov
2022-02-16 1:34 ` Abhinav Kumar
2022-02-16 2:03 ` Bjorn Andersson [this message]
2022-02-16 2:16 ` [Freedreno] " Abhinav Kumar
2022-02-18 1:10 ` Dmitry Baryshkov
2022-02-18 4:04 ` Bjorn Andersson
2022-02-18 0:13 ` Dmitry Baryshkov
2022-02-16 2:14 ` Bjorn Andersson
2022-02-16 2:38 ` Abhinav Kumar
2022-02-16 5:14 ` Bjorn Andersson
2022-02-16 7:19 ` [Freedreno] " Abhinav Kumar
2022-02-18 0:05 ` Dmitry Baryshkov
2022-02-15 13:42 ` [PATCH v2 1/2] drm/msm/dpu: Add INTF_5 interrupts Dmitry Baryshkov
2022-02-16 2:39 ` Abhinav Kumar
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=YgxbYnpbBeOIkGWi@builder.lan \
--to=bjorn.andersson@linaro.org \
--cc=dmitry.baryshkov@linaro.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 \
/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