From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Konrad Dybcio <konrad.dybcio@somainline.org>,
Rob Clark <robdclark@gmail.com>, Sean Paul <sean@poorly.run>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Stephen Boyd <swboyd@chromium.org>,
David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org
Subject: Re: [PATCH 2/4] dt-bindings: display/msm/gpu: document using the amd,imageon adreno too
Date: Wed, 6 Jul 2022 19:58:18 +0300 [thread overview]
Message-ID: <3b3e0543-8802-469e-e0a9-61bbf26d58d7@linaro.org> (raw)
In-Reply-To: <6c89ee27-43d1-b926-b061-c9f6c1085f24@linaro.org>
On 06/07/2022 19:19, Krzysztof Kozlowski wrote:
> On 06/07/2022 18:00, Dmitry Baryshkov wrote:
>> On 06/07/2022 18:50, Krzysztof Kozlowski wrote:
>>> On 06/07/2022 16:52, Dmitry Baryshkov wrote:
>>>> The DT binding desribes using amd,imageon only for Imageon 2xx GPUs. We
>>>> have been using amd,imageon with newer (Adreno) GPUs to describe the
>>>> headless setup, when the platform does not (yet) have the display DT
>>>
>>> Does not have "yet"? So later it will have and you drop a compatible?
>>
>> Yes. For example see the arch/arm64/boot/dts/qcom/8150.dtsi, which
>> currently has only GPU node. Once we add MDSS/DPU/DSI/etc. nodes, we are
>> going to drop the compat string.
>>
>>>
>>>> nodes (and no display support). Document this trick in the schema.
>>>>
>>>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>>>> ---
>>>> Documentation/devicetree/bindings/display/msm/gpu.yaml | 6 ++++++
>>>> 1 file changed, 6 insertions(+)
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/display/msm/gpu.yaml b/Documentation/devicetree/bindings/display/msm/gpu.yaml
>>>> index 346aabdccf7b..e006da95462c 100644
>>>> --- a/Documentation/devicetree/bindings/display/msm/gpu.yaml
>>>> +++ b/Documentation/devicetree/bindings/display/msm/gpu.yaml
>>>> @@ -16,9 +16,13 @@ properties:
>>>> - description: |
>>>> The driver is parsing the compat string for Adreno to
>>>> figure out the gpu-id and patch level.
>>>> + Optional amd,imageon compatibility string enables using Adreno
>>>> + without the display node.
>>>> items:
>>>> - pattern: '^qcom,adreno-[3-6][0-9][0-9]\.[0-9]$'
>>>> - const: qcom,adreno
>>>> + - const: amd,imageon
>>>> + minItems: 2
>>>
>>> This is too unspecific. You allow any device to be and not to be
>>> compatible with amd,imageon.
>>
>> Yes, this is expected (kind of). Would you have any
>> alternatives/suggestions?
>
> Using compatible for this kind of breaks the entire idea behind
> compatibles, because the device does not stop being compatible with
> amd,imageon. Either it is or it is not. I would understand that drop the
> compatible per boards which physically do not have display, physically
> are headless. But the comment in sm8250:
> "make sure to remove it when display node is added"
> is just confusing.
>
> The typical solution would be to just check the properties of the device
> and choose different mode if display is missing (via port graph or some
> other way how the gpu is actually linked to the display).
The problem is that the gpu doesn't get linked to the display per se.
On imx5 platforms the GPU (compatible with amd,imageon) is a standalone
device. On qcom platforms the GPU (qcom,adreno) is used as a component
in multi-component device. By enlisting qmd,imageon for newer Adreno
devices we just enforce non-standard probing sequence, because all other
components just do not exist.
So, yes, this is hack around compatibles. However probably the only
viable alternative around it would be to check in probe path if there is
any device node compatible with "qcom,foo-mdss".
--
With best wishes
Dmitry
next prev parent reply other threads:[~2022-07-06 16:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 14:52 [PATCH 0/4] dt-bindings: display/msm: schema fixes for gpu, gmu and mdp4 Dmitry Baryshkov
2022-07-06 14:52 ` [PATCH 1/4] dt-bindings: display/msm/gpu: allow specifying several IOMMU nodes Dmitry Baryshkov
2022-07-06 15:46 ` Krzysztof Kozlowski
2022-07-06 14:52 ` [PATCH 2/4] dt-bindings: display/msm/gpu: document using the amd,imageon adreno too Dmitry Baryshkov
2022-07-06 15:50 ` Krzysztof Kozlowski
2022-07-06 16:00 ` Dmitry Baryshkov
2022-07-06 16:19 ` Krzysztof Kozlowski
2022-07-06 16:58 ` Dmitry Baryshkov [this message]
2022-07-06 14:52 ` [PATCH 3/4] dt-bindings: display/msm/gmu: account for different GMU variants Dmitry Baryshkov
2022-07-06 15:52 ` Krzysztof Kozlowski
2022-08-22 17:58 ` Dmitry Baryshkov
2022-08-23 10:26 ` Krzysztof Kozlowski
2022-07-06 14:52 ` [PATCH 4/4] dt-bindings: display/msm/mdp4: require 4 IOMMUs Dmitry Baryshkov
2022-07-06 15:53 ` Krzysztof Kozlowski
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=3b3e0543-8802-469e-e0a9-61bbf26d58d7@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=agross@kernel.org \
--cc=airlied@linux.ie \
--cc=bjorn.andersson@linaro.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=konrad.dybcio@somainline.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=quic_abhinavk@quicinc.com \
--cc=robdclark@gmail.com \
--cc=robh+dt@kernel.org \
--cc=sean@poorly.run \
--cc=swboyd@chromium.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).