From: "Jason-JH Lin (林睿祥)" <Jason-JH.Lin@mediatek.com>
To: "robh+dt@kernel.org" <robh+dt@kernel.org>,
"chunkuang.hu@kernel.org" <chunkuang.hu@kernel.org>,
"krzysztof.kozlowski@linaro.org" <krzysztof.kozlowski@linaro.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"krzysztof.kozlowski+dt@linaro.org"
<krzysztof.kozlowski+dt@linaro.org>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"jassisinghbrar@gmail.com" <jassisinghbrar@gmail.com>,
"angelogioacchino.delregno@collabora.com"
<angelogioacchino.delregno@collabora.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"Singo Chang (張興國)" <Singo.Chang@mediatek.com>,
"Johnson Wang (王聖鑫)" <Johnson.Wang@mediatek.com>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"Jason-ch Chen (陳建豪)" <Jason-ch.Chen@mediatek.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"Shawn Sung (宋孝謙)" <Shawn.Sung@mediatek.com>,
"Nancy Lin (林欣螢)" <Nancy.Lin@mediatek.com>,
Project_Global_Chrome_Upstream_Group
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v2 1/4] dt-bindings: mailbox: Add mediatek,gce-props.yaml
Date: Fri, 12 Jan 2024 08:09:43 +0000 [thread overview]
Message-ID: <8e77cfc85ec9b6da9794f988ddc3736cf299388d.camel@mediatek.com> (raw)
In-Reply-To: <f9301f2c-8996-41ee-903a-372411e1d6f9@linaro.org>
Hi Krzysztof,
Thanks for the reviews.
On Fri, 2024-01-12 at 08:20 +0100, Krzysztof Kozlowski wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> On 10/01/2024 07:35, Jason-JH.Lin wrote:
> > Add mediatek,gce-props.yaml for specific GCE properties for both
> > Mailbox Providers and Consumers.
> >
> > Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
> > ---
> > .../bindings/mailbox/mediatek,gce-props.yaml | 41
> +++++++++++++++++++
> > 1 file changed, 41 insertions(+)
> > create mode 100644
> Documentation/devicetree/bindings/mailbox/mediatek,gce-props.yaml
> >
> > diff --git
> a/Documentation/devicetree/bindings/mailbox/mediatek,gce-props.yaml
> b/Documentation/devicetree/bindings/mailbox/mediatek,gce-props.yaml
> > new file mode 100644
> > index 000000000000..aac776b74e88
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/mailbox/mediatek,gce-
> props.yaml
> > @@ -0,0 +1,41 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id:
> http://devicetree.org/schemas/mailbox/mediatek,gce-props.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: MediaTek Global Command Engine common propertes for both
> Mailbox Providers and Consumers.
>
> That's way too long. Please observe coding style wrapping. Just
> MediaTek
> Global Command Engine Common Propertes
> (pay attention to capitalization)
>
OK, Thanks for the fixing title text.
I'll change it.
> > +
> > +maintainers:
> > + - Houlong Wei <houlong.wei@mediatek.com>
> > +
> > +description:
> > + The Global Command Engine (GCE) is used to implement a Command
> Queue (CMDQ)
> > + driver using the Linux Mailbox framework. The GCE is an
> instruction based,
> > + multi-threaded, single-core command dispatcher for MediaTek
> hardware.
> > + We use GCE Mailbox binding to define GCE core properties for GCE
> Mailbox Provider.
> > + A device that uses the CMDQ driver to confige its hardware
> registers by requesting
>
> configure?
Yes, that typo didn't scan out.
Thanks for the correction.
>
> > + the Linux Mailbox Channels in the GCE Mailbox Controller is a
> Mailbox Consumer.
> > + This binding defines the common GCE properties for both Mailbox
> Providers and Consumers.
>
> Last four sentences: a lot of text yet absolutely no meaning. I still
> do
> not understand why same property is shared between provider and
> consumer.
OK, I'll add more description for that.
The main reason is that the property is used for GCE HW event ID
corresponding to a HW event signal. If the provider wants to get or set
an event value of the event ID by operating GCE HW register. It needs
to know what the event ID is.
>
> Also, wrap according to Linux coding style.
>
OK, I'll shrink them to less then 80 columns.
> > +
> > +properties:
> > + mediatek,gce-events:
> > + description:
> > + Each gce-events is an event id corresponding to a specific
> hardware event
> > + signal sent to GCE. The event id is defined in the GCE
> header
> > + include/dt-bindings/gce/<chip>-gce.h of each chips.
> > + CMDQ client drivers have two usage of GCE event signals,
> > + one is sfotware tokens and the other is hardware events.
> > + Software tokens refer to GCE event signals triggered by
> drivers.
> > + e.g. software drivers append GCE commands to set a GCE event
> after specific
> > + GCE commands. Or CMDQ client driver uses the CPU to write
> the event id
> > + into GCE register to trigger the GCE event corresponding to
> the event id.
> > + Hardware events refer to GCE event signals triggered by
> hardware engines.
> > + e.g. When OVL fetches all the data in the frame buffer, OVL
> will send
>
> There is no full stop before "e.g." and no new sentence. Please run
> this
> through grammar check, like Google, ChatGPT or human.
>
OK. Thanks for the suggestion.
I'll correct them.
Regards,
Jason-JH.Lin
> > + a frame done irq and send a frame done GCE event via
> hardware bus directly
> > + at the same time.
> > + $ref: /schemas/types.yaml#/definitions/uint32-array
> > + minItems: 1
> > + maxItems: 1024
>
>
> Best regards,
> Krzysztof
>
>
next prev parent reply other threads:[~2024-01-12 8:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-10 6:35 [PATCH v2 0/4] Add mediatek,gce-props.yaml for other bindings reference mediatek,gce-events Jason-JH.Lin
2024-01-10 6:35 ` [PATCH v2 1/4] dt-bindings: mailbox: Add mediatek,gce-props.yaml Jason-JH.Lin
2024-01-12 7:20 ` Krzysztof Kozlowski
2024-01-12 8:09 ` Jason-JH Lin (林睿祥) [this message]
2024-01-10 6:35 ` [PATCH v2 2/4] dt-bindings: mailbox: mediatek: gce-mailbox: Add reference to gce-props.yaml Jason-JH.Lin
2024-01-10 10:36 ` Conor Dooley
2024-01-10 16:36 ` Jason-JH Lin (林睿祥)
2024-01-11 17:31 ` Conor Dooley
2024-01-12 7:44 ` Jason-JH Lin (林睿祥)
2024-01-15 17:23 ` Conor Dooley
2024-01-16 8:21 ` Jason-JH Lin (林睿祥)
2024-01-16 17:22 ` Conor Dooley
2024-01-17 2:24 ` Jason-JH Lin (林睿祥)
2024-01-10 6:35 ` [PATCH v2 3/4] dt-bindings: media: mediatek: mdp: Change mediatek,gce-events to reference Jason-JH.Lin
2024-01-12 7:22 ` Krzysztof Kozlowski
2024-01-12 7:53 ` Jason-JH Lin (林睿祥)
2024-01-10 6:35 ` [PATCH v2 4/4] dt-bindings: soc: mediatek: Change mediatek,gce-events to refernece Jason-JH.Lin
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=8e77cfc85ec9b6da9794f988ddc3736cf299388d.camel@mediatek.com \
--to=jason-jh.lin@mediatek.com \
--cc=Jason-ch.Chen@mediatek.com \
--cc=Johnson.Wang@mediatek.com \
--cc=Nancy.Lin@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=Shawn.Sung@mediatek.com \
--cc=Singo.Chang@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunkuang.hu@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jassisinghbrar@gmail.com \
--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=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