From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: "Moudy Ho (何宗原)" <Moudy.Ho@mediatek.com>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"chunkuang.hu@kernel.org" <chunkuang.hu@kernel.org>,
"mchehab@kernel.org" <mchehab@kernel.org>,
"krzysztof.kozlowski@linaro.org" <krzysztof.kozlowski@linaro.org>,
"daniel@ffwll.ch" <daniel@ffwll.ch>,
"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"hverkuil-cisco@xs4all.nl" <hverkuil-cisco@xs4all.nl>,
"airlied@gmail.com" <airlied@gmail.com>,
"krzysztof.kozlowski+dt@linaro.org"
<krzysztof.kozlowski+dt@linaro.org>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>
Cc: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v7 02/16] dt-bindings: media: mediatek: mdp3: merge the indentical RDMA under display
Date: Wed, 18 Oct 2023 11:29:11 +0200 [thread overview]
Message-ID: <a9f0acfb-742a-4197-8237-9666fedf5fc3@collabora.com> (raw)
In-Reply-To: <324f170c69387c5587688ae7bee5ddf95bc94576.camel@mediatek.com>
Il 18/10/23 05:06, Moudy Ho (何宗原) ha scritto:
> On Fri, 2023-10-13 at 08:46 +0200, Krzysztof Kozlowski wrote:
>>
>
> Hi Krzysztof,
>
> Thank you for assisting with the review.
>
>> External email : Please do not click links or open attachments until
>> you have verified the sender or the content.
>> On 12/10/2023 10:40, Moudy Ho wrote:
>>
>>>
>>> +allOf:
>>> + - if:
>>> + properties:
>>> + compatible:
>>> + contains:
>>> + const: mediatek,mt8183-mdp3-rdma
>>> +
>>> + then:
>>> + properties:
>>> + clocks:
>>> + items:
>>> + - description: RDMA clock
>>> + - description: RSZ clock (shared SRAM with RDMA)
>>> +
>>> + mboxes:
>>> + items:
>>> + - description: used for 1st data pipe from RDMA
>>> + - description: used for 2nd data pipe from RDMA
>>
>> interrupts:
>> false
>>
>
> As Angelo provided additional clarification in [15/16], explaining that
> certain conditions in [2/16] and [3/16] were intentionally omitted due
> to the need to integrate the same IP with different operations.
> Apologies for any inconvenience this has caused you.
>
MT8183's MDP3 RDMA interrupt property was omitted in the devicetree that we
have upstream because it was either unused in the driver, or MTK didn't want
to actually use it for reasons, but that SoC *definitely does* have a mdp_rdma0
IRQ and a mdp_rdma1 IRQ.
That's the same for MT8186 and MT8188... and it's probably the same for all
MediaTek SoCs, so interrupts shouldn't be disallowed in this binding.
>>> +
>>> + required:
>>> + - mboxes
>>> + - mediatek,gce-events
>>> +
>>> + - if:
>>> + properties:
>>> + compatible:
>>> + contains:
>>> + const: mediatek,mt8195-vdo1-rdma
>>> +
>>> + then:
>>> + properties:
>>> + clocks:
>>> + items:
>>> + - description: RDMA clock
>>
>> mboxes: false
>> mediatek,gce-events: false
>>
>> I am not so sure it is actually "simpler" to merge these. They are
>> quite
>> different. You will end up with unmanageable allOf with a lot of
>> branches (which supposedly you want to remove).
>>
It's the same thing as "split"... All of the display and mdp/mdp3 components of
MediaTek SoC do support GCE mailboxes by HW, so it's not limited to "split", but
literally all of them.
Disallowing mboxes and/or mediatek,gce-events on *any* of those is actually wrong.
Cheers,
Angelo
>>
>
> Upon examining the minor hardware changes in MDP for MT8183 and MT8195
> RDMA ([3/16]), it appears that branching cannot be avoided. However,
> consolidating these changes has the additional advantage of addressing
> Rob's concerns from v4. Perhaps we can consider the current changes as
> a form of progress.
>
> Sincerely,
> Moudy
>
>>> +
>>> additionalProperties: false
>>>
>>> examples:
>>
>> Best regards,
>> Krzysztof
>>
next prev parent reply other threads:[~2023-10-18 9:29 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-12 8:40 [PATCH v7 00/16] introduce more MDP3 components in MT8195 Moudy Ho
2023-10-12 8:40 ` [PATCH v7 01/16] dt-bindings: media: mediatek: mdp3: correct RDMA and WROT node with generic names Moudy Ho
2023-10-12 10:37 ` AngeloGioacchino Del Regno
2023-10-12 8:40 ` [PATCH v7 02/16] dt-bindings: media: mediatek: mdp3: merge the indentical RDMA under display Moudy Ho
2023-10-12 10:33 ` AngeloGioacchino Del Regno
2023-10-13 6:46 ` Krzysztof Kozlowski
2023-10-18 3:06 ` Moudy Ho (何宗原)
2023-10-18 9:29 ` AngeloGioacchino Del Regno [this message]
2023-10-12 8:40 ` [PATCH v7 03/16] dt-bindings: media: mediatek: mdp3: add config for MT8195 RDMA Moudy Ho
2023-10-12 10:27 ` AngeloGioacchino Del Regno
2023-10-13 6:47 ` Krzysztof Kozlowski
2023-10-12 8:40 ` [PATCH v7 04/16] dt-bindings: media: mediatek: mdp3: add compatible for MT8195 RSZ Moudy Ho
2023-10-12 10:23 ` AngeloGioacchino Del Regno
2023-10-13 6:47 ` Krzysztof Kozlowski
2023-10-12 8:40 ` [PATCH v7 05/16] dt-bindings: media: mediatek: mdp3: add compatible for MT8195 WROT Moudy Ho
2023-10-12 10:23 ` AngeloGioacchino Del Regno
2023-10-13 6:48 ` Krzysztof Kozlowski
2023-10-12 8:40 ` [PATCH v7 06/16] dt-bindings: media: mediatek: mdp3: add component FG for MT8195 Moudy Ho
2023-10-12 10:22 ` AngeloGioacchino Del Regno
2023-10-13 6:02 ` Moudy Ho (何宗原)
2023-10-13 6:49 ` Krzysztof Kozlowski
2023-10-12 8:40 ` [PATCH v7 07/16] dt-bindings: media: mediatek: mdp3: add component HDR " Moudy Ho
2023-10-12 10:21 ` AngeloGioacchino Del Regno
2023-10-13 6:49 ` Krzysztof Kozlowski
2023-10-12 8:40 ` [PATCH v7 08/16] dt-bindings: media: mediatek: mdp3: add component STITCH " Moudy Ho
2023-10-13 6:50 ` Krzysztof Kozlowski
2023-10-12 8:40 ` [PATCH v7 09/16] dt-bindings: media: mediatek: mdp3: add component TCC " Moudy Ho
2023-10-12 10:17 ` AngeloGioacchino Del Regno
2023-10-13 6:50 ` Krzysztof Kozlowski
2023-10-12 8:40 ` [PATCH v7 10/16] dt-bindings: media: mediatek: mdp3: add component TDSHP " Moudy Ho
2023-10-12 10:16 ` AngeloGioacchino Del Regno
2023-10-13 6:50 ` Krzysztof Kozlowski
2023-10-12 8:40 ` [PATCH v7 11/16] dt-bindings: display: mediatek: aal: add compatible " Moudy Ho
2023-10-12 10:10 ` AngeloGioacchino Del Regno
2023-10-12 8:40 ` [PATCH v7 12/16] dt-bindings: display: mediatek: color: " Moudy Ho
2023-10-12 10:10 ` AngeloGioacchino Del Regno
2023-10-13 6:51 ` Krzysztof Kozlowski
2023-10-12 8:40 ` [PATCH v7 13/16] dt-bindings: display: mediatek: merge: " Moudy Ho
2023-10-12 10:10 ` AngeloGioacchino Del Regno
2023-10-13 6:51 ` Krzysztof Kozlowski
2023-10-12 8:40 ` [PATCH v7 14/16] dt-bindings: display: mediatek: ovl: " Moudy Ho
2023-10-12 10:10 ` AngeloGioacchino Del Regno
2023-10-13 6:51 ` Krzysztof Kozlowski
2023-10-12 8:40 ` [PATCH v7 15/16] dt-bindings: display: mediatek: split: " Moudy Ho
2023-10-13 6:52 ` Krzysztof Kozlowski
2023-10-16 8:01 ` AngeloGioacchino Del Regno
2023-10-16 16:21 ` Krzysztof Kozlowski
2023-10-16 16:21 ` Krzysztof Kozlowski
2023-10-17 10:46 ` AngeloGioacchino Del Regno
2023-10-12 8:40 ` [PATCH v7 16/16] dt-bindings: display: mediatek: padding: " Moudy Ho
2023-10-12 12:35 ` AngeloGioacchino Del Regno
2023-10-13 6:05 ` Moudy Ho (何宗原)
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=a9f0acfb-742a-4197-8237-9666fedf5fc3@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=Moudy.Ho@mediatek.com \
--cc=airlied@gmail.com \
--cc=chunkuang.hu@kernel.org \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=mchehab@kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@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).