From: sashiko-bot@kernel.org
To: "Mayuresh Chitale" <mayuresh.chitale@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v7 01/14] dt-bindings: Add RISC-V trace component bindings
Date: Thu, 26 Nov 2026 10:07:57 +0000 [thread overview]
Message-ID: <sashiko-outbox-235244@kernel.org> (raw)
In-Reply-To: <5454076167a828931e198bd167dea1e2a64cdd0b.1795512532.git.mayuresh.chitale@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Low] dt-bindings: riscv: redundant bindings word in commit subject
- [Low] dt-bindings: riscv: arbitrary 8-port limit in in-ports and
out-ports
- [Low] dt-bindings: riscv: missing reciprocal remote-endpoint in
example
--
commit 1257d7f086d130afccb10391f20f195c41e67ce3
Author: Anup Patel <anup.patel@oss.qualcomm.com>
dt-bindings: Add RISC-V trace component bindings
This commit adds a Devicetree binding schema for memory-mapped RISC-V
trace components supporting E-trace and N-trace protocols.
> dt-bindings: Add RISC-V trace component bindings
[Severity: Low]
The dt-bindings: prefix already indicates that this patch adds a binding.
Could the subject drop the redundant trailing word "bindings" and include
the riscv: subsystem prefix, such as "dt-bindings: riscv: Add RISC-V trace
component"?
> diff --git a/Documentation/devicetree/bindings/riscv/riscv,trace-component.yaml b/Documentation/devicetree/bindings/riscv/riscv,trace-component.yaml
> new file mode 100644
> index 0000000000000..bb519bc4a163e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/riscv/riscv,trace-component.yaml
> @@ -0,0 +1,120 @@
[ ... ]
> + in-ports:
> + $ref: /schemas/graph.yaml#/properties/ports
> + patternProperties:
> + '^port(@[0-7])?$':
> + description: Input connections from RISC-V trace component
> + $ref: /schemas/graph.yaml#/properties/port
> +
> + out-ports:
> + $ref: /schemas/graph.yaml#/properties/ports
> + patternProperties:
> + '^port(@[0-7])?$':
> + description: Output connections from RISC-V trace component
> + $ref: /schemas/graph.yaml#/properties/port
[Severity: Low]
Why are in-ports and out-ports restricted to unit addresses 0 through 7?
The RISC-V Trace Control Interface specification supports up to 16 funnel
inputs (trTfDisInput bits 0..15) and arbitrary implementation-specific
graph topologies, so components with 9 or more ports would fail schema
validation unless standard hexadecimal port addresses such as
^port(@[0-9a-f]+)?$ are allowed.
[ ... ]
> +examples:
> + - |
> + // Example 1 (Per-hart encoder and ramsink components):
> +
> + trace@c000000 {
> + compatible = "qemu,trace-component", "riscv,trace-component";
> + reg = <0xc000000 0x1000>;
> + cpus = <&CPU0>;
> +
> + out-ports {
> + port {
> + CPU0_ENCODER_OUTPUT: endpoint {
> + remote-endpoint = <&CPU0_RAMSINK_INPUT>;
> + };
> + };
> + };
> + };
> +
> + trace@c001000 {
> + compatible = "qemu,trace-component", "riscv,trace-component";
> + reg = <0xc001000 0x1000>;
> + cpus = <&CPU0>;
> +
> + in-ports {
> + port {
> + CPU0_RAMSINK_INPUT: endpoint {
> + };
> + };
> + };
> + };
> +
> + trace@c002000 {
> + compatible = "qemu,trace-component", "riscv,trace-component";
> + reg = <0xc002000 0x1000>;
> + cpus = <&CPU1>;
> +
> + out-ports {
> + port {
> + CPU1_ENCODER_OUTPUT: endpoint {
> + remote-endpoint = <&CPU1_RAMSINK_INPUT>;
> + };
> + };
> + };
> + };
> +
> + trace@c003000 {
> + compatible = "qemu,trace-component", "riscv,trace-component";
> + reg = <0xc003000 0x1000>;
> + cpus = <&CPU1>;
> +
> + in-ports {
> + port {
> + CPU1_RAMSINK_INPUT: endpoint {
> + };
> + };
> + };
> + };
[Severity: Low]
Should CPU0_RAMSINK_INPUT and CPU1_RAMSINK_INPUT include reciprocal
remote-endpoint properties pointing back to <&CPU0_ENCODER_OUTPUT> and
<&CPU1_ENCODER_OUTPUT>? Omitting them leaves the OF graph connections
unidirectional and the encoder endpoint labels unreferenced, which triggers
dtc graph_endpoint and dt-check-style unused-label warnings.
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1795512532.git.mayuresh.chitale@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-11-26 10:07 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 9:55 [PATCH v7 00/14] Linux RISC-V trace framework and drivers Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 9:55 ` [PATCH v7 01/14] dt-bindings: Add RISC-V trace component bindings Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 10:07 ` sashiko-bot [this message]
2026-11-26 9:55 ` [PATCH v7 02/14] hwtracing: gtrace: Initial implementation of gtrace framework Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 10:15 ` sashiko-bot
2026-11-26 9:55 ` [PATCH v7 03/14] gtrace: Add RISC-V platform driver for the " Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 10:12 ` sashiko-bot
2026-11-26 9:55 ` [PATCH v7 04/14] gtrace: Add functions to create/destroy a trace component path Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 10:07 ` sashiko-bot
2026-11-26 9:55 ` [PATCH v7 05/14] gtrace: Add functions to start/stop tracing on a " Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 10:05 ` sashiko-bot
2026-11-26 9:55 ` [PATCH v7 06/14] gtrace: Add RISC-V Trace encoder driver Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 10:09 ` sashiko-bot
2026-11-26 9:55 ` [PATCH v7 07/14] gtrace: Add function to copy into perf AUX buffer Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 10:05 ` sashiko-bot
2026-11-26 9:55 ` [PATCH v7 08/14] perf: Add gtrace AUX buffer trace format type Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 9:55 ` [PATCH v7 09/14] gtrace: Add RISC-V Trace ramsink driver Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 10:13 ` sashiko-bot
2026-12-01 9:54 ` Leo Liang
2026-12-01 9:54 ` Leo Liang
2026-11-26 9:55 ` [PATCH v7 10/14] riscv: Enable DMA_RESTRICTED_POOL in defconfig Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 9:55 ` [PATCH v7 11/14] gtrace: Add perf driver for tracing using perf tool Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 10:23 ` sashiko-bot
2026-11-26 9:55 ` [PATCH v7 12/14] perf tools: Add RISC-V trace PMU record capabilities Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 10:19 ` sashiko-bot
2026-11-26 9:55 ` [PATCH v7 13/14] perf tools: Initial support for gtrace decoder Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
2026-11-26 10:17 ` sashiko-bot
2026-11-26 9:55 ` [PATCH v7 14/14] MAINTAINERS: Add entry for RISC-V trace framework Mayuresh Chitale
2026-11-26 9:55 ` Mayuresh Chitale
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=sashiko-outbox-235244@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=mayuresh.chitale@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.