From: Luo Jie <quic_luoj@quicinc.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Lei Wei <quic_leiwei@quicinc.com>,
Suruchi Agarwal <quic_suruchia@quicinc.com>,
Pavithra R <quic_pavir@quicinc.com>,
"Simon Horman" <horms@kernel.org>,
Jonathan Corbet <corbet@lwn.net>, Kees Cook <kees@kernel.org>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
<linux-arm-msm@vger.kernel.org>, <netdev@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-doc@vger.kernel.org>, <linux-hardening@vger.kernel.org>,
<quic_kkumarcs@quicinc.com>, <quic_linchen@quicinc.com>,
<srinivas.kandagatla@linaro.org>,
<bartosz.golaszewski@linaro.org>, <john@phrozen.org>
Subject: Re: [PATCH net-next v4 01/14] dt-bindings: net: Add PPE for Qualcomm IPQ9574 SoC
Date: Fri, 23 May 2025 18:28:26 +0800 [thread overview]
Message-ID: <a182df27-5b0d-42d1-8f58-4e7a913bb12d@quicinc.com> (raw)
In-Reply-To: <20250519-garrulous-monumental-shrimp-94ad70@kuoka>
On 5/19/2025 4:16 PM, Krzysztof Kozlowski wrote:
> On Tue, May 13, 2025 at 05:58:21PM GMT, Luo Jie wrote:
>> The PPE (packet process engine) hardware block is available in Qualcomm
>> IPQ chipsets that support PPE architecture, such as IPQ9574. The PPE in
>> the IPQ9574 SoC includes six ethernet ports (6 GMAC and 6 XGMAC), which
>> are used to connect with external PHY devices by PCS. It includes an L2
>> switch function for bridging packets among the 6 ethernet ports and the
>> CPU port. The CPU port enables packet transfer between the ethernet
>> ports and the ARM cores in the SoC, using the ethernet DMA.
>>
>> The PPE also includes packet processing offload capabilities for various
>> networking functions such as route and bridge flows, VLANs, different
>> tunnel protocols and VPN.
>>
>> Signed-off-by: Luo Jie <quic_luoj@quicinc.com>
>> ---
>> .../devicetree/bindings/net/qcom,ipq9574-ppe.yaml | 406 +++++++++++++++++++++
>> 1 file changed, 406 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml b/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml
>> new file mode 100644
>> index 000000000000..f36f4d180674
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml
>> @@ -0,0 +1,406 @@
>> +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/net/qcom,ipq9574-ppe.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Qualcomm IPQ packet process engine (PPE)
>> +
>> +maintainers:
>> + - Luo Jie <quic_luoj@quicinc.com>
>> + - Lei Wei <quic_leiwei@quicinc.com>
>> + - Suruchi Agarwal <quic_suruchia@quicinc.com>
>> + - Pavithra R <quic_pavir@quicinc.com>>
>
> Double >>
Thanks, will fix it.
>
>> +
>> +description:
>
> You got here comment didn't you?
>
Yes. We initially believed the '|' marker may not be required
since the format of hardware diagram in the description is
preserved with a specific '|' already. However we relooked
at this again, and will go ahead will add the marker based
on the below documentation reference.
https://docs.kernel.org/devicetree/bindings/writing-schema.html#example-schema
>> + The Ethernet functionality in the PPE (Packet Process Engine) is comprised
>> + of three components, the switch core, port wrapper and Ethernet DMA.
>> +
>> + The Switch core in the IPQ9574 PPE has maximum of 6 front panel ports and
>> + two FIFO interfaces. One of the two FIFO interfaces is used for Ethernet
>> + port to host CPU communication using Ethernet DMA. The other is used
>> + communicating to the EIP engine which is used for IPsec offload. On the
>> + IPQ9574, the PPE includes 6 GMAC/XGMACs that can be connected with external
>> + Ethernet PHY. Switch core also includes BM (Buffer Management), QM (Queue
>> + Management) and SCH (Scheduler) modules for supporting the packet processing.
>
> ...
>
>> + clock-names:
>> + items:
>> + - const: ppe
>> + - const: apb
>> + - const: ipe
>> + - const: btq
>> +
>> + resets:
>> + maxItems: 1
>> + description: PPE reset, which is necessary before configuring PPE hardware
>> +
>> + interconnects:
>> + items:
>> + - description: Clock path leading to PPE switch core function
>> + - description: Clock path leading to PPE register access
>> + - description: Clock path leading to QoS generation
>> + - description: Clock path leading to timeout reference
>> + - description: Clock path leading to NSS NOC from memory NOC
>> + - description: Clock path leading to memory NOC from NSS NOC
>> + - description: Clock path leading to enhanced memory NOC from NSS NOC
>> +
>> + interconnect-names:
>> + items:
>> + - const: ppe
>> + - const: ppe_cfg
>> + - const: qos_gen
>> + - const: timeout_ref
>> + - const: nssnoc_memnoc
>> + - const: memnoc_nssnoc
>> + - const: memnoc_nssnoc_1
>> +
>> + ethernet-dma:
>
> I don't get why this is a separate node.
>
We used a separate node because the EDMA (Ethernet DMA)
is a separate block within the PPE block, with specific
functions like ports-to-host-CPU packet transfer and
hardware packet steering. We felt that a separate node
would depict the hierarchy more clearly. Could you please
suggest if a single node is recommended instead?
>> + type: object
>> + additionalProperties: false
>> + description:
>> + EDMA (Ethernet DMA) is used to transmit packets between PPE and ARM
>> + host CPU. There are 32 TX descriptor rings, 32 TX completion rings,
>> + 24 RX descriptor rings and 8 RX fill rings supported.
>> +
>> + properties:
>> + clocks:
>> + items:
>> + - description: EDMA system clock from NSS Clock Controller
>> + - description: EDMA APB (Advanced Peripheral Bus) clock from
>> + NSS Clock Controller
>> +
>> + clock-names:
>> + items:
>> + - const: sys
>> + - const: apb
>> +
>> + resets:
>> + maxItems: 1
>> + description: EDMA reset from NSS clock controller
>> +
>> + interrupts:
>> + minItems: 29
>> + maxItems: 57
>
> Why is this flexible on the same SoC?
Thanks for pointing to this. I reviewed this again and agree
that this need not be a flexible setting. I will fix this in
the next update by setting 'minItems' and 'maxItems' here to
the count of all available EDMA interrupts.
>
> Best regards,
> Krzysztof
>
next prev parent reply other threads:[~2025-05-23 10:29 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-13 9:58 [PATCH net-next v4 00/14] Add PPE driver for Qualcomm IPQ9574 SoC Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 01/14] dt-bindings: net: Add PPE " Luo Jie
2025-05-19 8:16 ` Krzysztof Kozlowski
2025-05-23 10:28 ` Luo Jie [this message]
2025-05-24 6:25 ` Krzysztof Kozlowski
2025-05-26 7:25 ` Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 02/14] docs: networking: Add PPE driver documentation " Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 03/14] net: ethernet: qualcomm: Add PPE driver for " Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 04/14] net: ethernet: qualcomm: Initialize PPE buffer management for IPQ9574 Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 05/14] net: ethernet: qualcomm: Initialize PPE queue " Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 06/14] net: ethernet: qualcomm: Initialize the PPE scheduler settings Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 07/14] net: ethernet: qualcomm: Initialize PPE queue settings Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 08/14] net: ethernet: qualcomm: Initialize PPE service code settings Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 09/14] net: ethernet: qualcomm: Initialize PPE port control settings Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 10/14] net: ethernet: qualcomm: Initialize PPE RSS hash settings Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 11/14] net: ethernet: qualcomm: Initialize PPE queue to Ethernet DMA ring mapping Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 12/14] net: ethernet: qualcomm: Initialize PPE L2 bridge settings Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 13/14] net: ethernet: qualcomm: Add PPE debugfs support for PPE counters Luo Jie
2025-05-13 9:58 ` [PATCH net-next v4 14/14] MAINTAINERS: Add maintainer for Qualcomm PPE driver Luo Jie
2025-05-15 2:58 ` [PATCH net-next v4 00/14] Add PPE driver for Qualcomm IPQ9574 SoC Jakub Kicinski
2025-05-15 14:19 ` Luo Jie
2025-05-15 14:24 ` Jakub Kicinski
2025-05-16 10:59 ` Luo Jie
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=a182df27-5b0d-42d1-8f58-4e7a913bb12d@quicinc.com \
--to=quic_luoj@quicinc.com \
--cc=andrew+netdev@lunn.ch \
--cc=bartosz.golaszewski@linaro.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=gustavoars@kernel.org \
--cc=horms@kernel.org \
--cc=john@phrozen.org \
--cc=kees@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=quic_kkumarcs@quicinc.com \
--cc=quic_leiwei@quicinc.com \
--cc=quic_linchen@quicinc.com \
--cc=quic_pavir@quicinc.com \
--cc=quic_suruchia@quicinc.com \
--cc=robh@kernel.org \
--cc=srinivas.kandagatla@linaro.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