From: sashiko-bot@kernel.org
To: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
Cc: conor+dt@kernel.org, wsa+renesas@sang-engineering.com,
robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH net-next v4 3/3] arm64: dts: renesas: r8a779g0: Add gPTP node
Date: Fri, 03 Jul 2026 12:56:08 +0000 [thread overview]
Message-ID: <20260703125609.8C8511F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260702125525.2230427-4-niklas.soderlund+renesas@ragnatech.se>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Resource conflict and probe failure due to overlapping MMIO mappings between gptp and tsn0 nodes.
- [High] Hardware state corruption of the shared gPTP module due to an uncoordinated shared reset line.
--
commit 6d2ee2b897e0e7be7fd397823f8cda63b923ce38
Author: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
arm64: dts: renesas: r8a779g0: Add gPTP node
The gPTP module is shared between the RAVB and RTSN Ethernet devices on
the SoC.
> diff --git a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
> index 82a7278836e57..b9b860ef70351 100644
> --- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
> @@ -589,6 +589,15 @@ tmu4: timer@ffc00000 {
> status = "disabled";
> };
>
> + gptp: ptp@e6449000 {
> + compatible = "renesas,r8a779g0-gptp", "renesas,rcar-gen4-gptp";
> + reg = <0 0xe6449000 0 0x500>;
[Severity: High]
Will this result in a probe failure when requesting the memory region?
The new gptp node claims the 0xe6449000 memory region here, but the
existing tsn0 node below incorrectly retains the exact same region.
The drivers for these nodes both request exclusive access to the memory:
drivers/ptp/ptp_rcar_gen4.c:ptp_rcar_gen4_probe() {
...
priv->base = devm_platform_ioremap_resource(pdev, 0);
...
}
drivers/net/ethernet/renesas/rtsn.c:rtsn_probe() {
...
ptpaddr = devm_ioremap_resource(&pdev->dev, res);
...
}
Since these wrappers enforce exclusive access, whichever driver probes
second will get an -EBUSY failure.
Should the tsn0 node be updated to drop this overlapping region?
> + clocks = <&cpg CPG_MOD 2723>;
> + power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
> + resets = <&cpg 2723>;
[Severity: High]
Can an interface reset corrupt the shared gPTP hardware state?
The gptp node is assigned the shared reset line 2723 here, and the commit
message notes that the gPTP module is shared between the RAVB and RTSN
Ethernet devices.
However, the rtsn driver aggressively asserts this shared reset line:
drivers/net/ethernet/renesas/rtsn.c:rtsn_reset() {
...
reset_control_reset(priv->reset);
...
}
If a network administrator toggles the tsn0 interface state, will this
abruptly wipe out the clock state of the shared gPTP hardware and break
other consumers like RAVB that rely on it?
> + status = "disabled";
> + };
> +
> tsn0: ethernet@e6460000 {
> compatible = "renesas,r8a779g0-ethertsn", "renesas,rcar-gen4-ethertsn";
> reg = <0 0xe6460000 0 0x7000>,
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260702125525.2230427-1-niklas.soderlund+renesas@ragnatech.se?part=3
prev parent reply other threads:[~2026-07-03 12:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-02 12:55 [PATCH net-next v4 0/3] ptp: Add driver for R-Car Gen4 gPTP timer Niklas Söderlund
2026-07-02 12:55 ` [PATCH net-next v4 1/3] dt-bindings: ptp: renesas,rcar-gen4-gptp: Add R-Car Gen4 Niklas Söderlund
2026-07-02 12:55 ` [PATCH net-next v4 2/3] ptp: Add driver for " Niklas Söderlund
2026-07-02 14:39 ` Vadim Fedorenko
2026-07-03 12:56 ` sashiko-bot
2026-07-02 12:55 ` [PATCH net-next v4 3/3] arm64: dts: renesas: r8a779g0: Add gPTP node Niklas Söderlund
2026-07-03 12:56 ` sashiko-bot [this message]
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=20260703125609.8C8511F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=niklas.soderlund+renesas@ragnatech.se \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wsa+renesas@sang-engineering.com \
/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