Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Daniel Drake" <dan@reactivated.net>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 6/6] arm64: dts: broadcom: bcm2712: Add GPU IOMMU and IOMMU cache nodes
Date: Sun, 12 Jul 2026 21:27:30 +0000	[thread overview]
Message-ID: <20260712212730.B86141F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260712-bcm2712-iommu-submit-v1-6-80e10cdde2ea@reactivated.net>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Device tree node name unit-addresses do not match their `reg` property base addresses for `iommu4` and `iommuc`.
--

--- Patch [6]: [PATCH 6/6] arm64: dts: broadcom: bcm2712: Add GPU IOMMU and IOMMU cache nodes ---
commit e5ff2e7025bd202974b9df36bf104c8bc98df79f
Author: Daniel Drake <dan@reactivated.net>

arm64: dts: broadcom: bcm2712: Add GPU IOMMU and IOMMU cache nodes

This commit adds devicetree nodes for the IOMMU and IOMMU cache on the
Broadcom BCM2712 SoC. It also configures the vc4 GPU to utilize the
newly defined IOMMU.

> diff --git a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
> index 761c59d90ffc9..ed3178db8acbd 100644
> --- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
> +++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
> @@ -626,6 +626,20 @@ pcie2: pcie@1000120000 {
>  			status = "disabled";
>  		};
>  
> +		iommu4: iommu@5200 {

[Severity: Low]
This isn't a bug, but does this unit-address truncate the upper 32 bits
of the address defined in the reg property below?

The reg property specifies a base address of 0x10 0x5200, which evaluates
to 1000005200. Naming the node iommu@5200 instead of iommu@1000005200
typically triggers dtc simple_bus_reg warnings for mismatched unit
addresses.

> +			/* IOMMU for VC4 (HVS & MPL/TXP), Unicam, PISP-FE, MiniBVN */
> +			compatible = "brcm,bcm2712-iommu";
> +			reg = <0x10 0x5200 0x0 0x80>;
> +			#iommu-cells = <0>;
> +			brcm,iommu-cache = <&iommuc>;
> +			brcm,iova-window = /bits/ 64 <0xa00000000 0x100000000>;
> +		};
> +
> +		iommuc: iommuc@5b00 {

[Severity: Low]
Similarly, does this node name truncate the upper 32 bits?

The reg property base address is 0x10 0x5b00 (1000005b00), but the unit
address is written as 5b00.

> +			compatible = "brcm,bcm2712-iommuc";
> +			reg = <0x10 0x5b00 0x0 0x80>;
> +		};

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260712-bcm2712-iommu-submit-v1-0-80e10cdde2ea@reactivated.net?part=6

  reply	other threads:[~2026-07-12 21:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-12 21:18 [PATCH 0/6] Add support for Broadcom BCM2712 IOMMU driver (Raspberry Pi 5) Daniel Drake
2026-07-12 21:18 ` [PATCH 1/6] generic_pt: allow missing sw bit in DMA_INCOHERENT case Daniel Drake
2026-07-12 22:00   ` Jason Gunthorpe
2026-07-12 21:18 ` [PATCH 2/6] iommupt: allow full-table contiguous leaves in unit tests Daniel Drake
2026-07-12 22:02   ` Jason Gunthorpe
2026-07-12 21:18 ` [PATCH 3/6] dt-bindings: iommu: Add Broadcom BCM2712 IOMMU Daniel Drake
2026-07-12 21:23   ` sashiko-bot
2026-07-13  9:16   ` Krzysztof Kozlowski
2026-07-12 21:18 ` [PATCH 4/6] iommu/generic_pt: Add Broadcom BCM2712 page table format Daniel Drake
2026-07-12 21:36   ` sashiko-bot
2026-07-12 22:05   ` Jason Gunthorpe
2026-07-13 10:02   ` Nick Hollinghurst
2026-07-13 12:00     ` Jason Gunthorpe
2026-07-12 21:18 ` [PATCH 5/6] iommu: Add Broadcom BCM2712 IOMMU driver Daniel Drake
2026-07-12 21:34   ` sashiko-bot
2026-07-12 22:11   ` Jason Gunthorpe
2026-07-12 21:18 ` [PATCH 6/6] arm64: dts: broadcom: bcm2712: Add GPU IOMMU and IOMMU cache nodes Daniel Drake
2026-07-12 21:27   ` sashiko-bot [this message]
2026-07-13  9:17   ` Krzysztof Kozlowski

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=20260712212730.B86141F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=dan@reactivated.net \
    --cc=devicetree@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox