From: sashiko-bot@kernel.org
To: "Gourav Kumar" <gourav.kumar@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 1/3] arm64: dts: qcom: nord: Add iris video node
Date: Tue, 01 Dec 2026 13:23:01 +0000 [thread overview]
Message-ID: <sashiko-outbox-243387@kernel.org> (raw)
In-Reply-To: <20261201-nord-iris-dts-v3-1-70f2111338b8@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm64: dts: qcom: nord: undocumented iris binding and child
iommus nodes
- [Medium] arm64: dts: qcom: nord: iris dma-ranges shrinks system-wide
ZONE_DMA limit
--
commit d1baca6fad01e34c9ef8c93479ba7a86ea197e22
Author: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
arm64: dts: qcom: nord: Add iris video node
This commit adds the iris video codec device tree node and its OS-controlled
resources (clocks, resets, power domains, interconnects, and OPP table) for
Qualcomm Nord and Nord Embedded platforms.
> diff --git a/arch/arm64/boot/dts/qcom/nord.dtsi b/arch/arm64/boot/dts/qcom/nord.dtsi
> index 56778dd444e4e..e3fecdc21d7ed 100644
> --- a/arch/arm64/boot/dts/qcom/nord.dtsi
> +++ b/arch/arm64/boot/dts/qcom/nord.dtsi
> @@ -2371,6 +2371,34 @@ pcie_smmu: iommu@9980000 {
> #iommu-cells = <1>;
> };
>
> + iris: video-codec@aa00000 {
> + compatible = "qcom,nord-iris", "qcom,glymur-iris";
> + reg = <0x0 0x0aa00000 0x0 0xf0000>;
> +
> + dma-coherent;
> +
> + interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
> +
> + memory-region = <&video_mem>;
> +
> + #address-cells = <1>;
> + #size-cells = <1>;
> + dma-ranges = <0x0 0x0 0x0 0xffe00000>;
[Severity: Medium]
Does placing dma-ranges = <0x0 0x0 0x0 0xffe00000> on video-codec@aa00000
shrink the system-wide zone_dma_limit when the node is enabled?
In Devicetree, dma-ranges describes a child-bus to parent-bus (CPU physical)
DMA address translation rather than an IOMMU IOVA aperture. During arm64
boot, dma_limits_init() calls of_dma_get_max_cpu_address(NULL), which parses
dma-ranges on every available node with #address-cells, translates <0x0 0x0>
through soc@0 to CPU physical address 0x0..0xffdfffff, and clamps the
system-wide zone_dma_limit to 0xffdfffff (and arm64_dma_phys_limit to
0xffe00000).
> +
> + status = "disabled";
> +
> + non-pixel {
> + iommus = <&apps_smmu_1 0x0940 0x0>,
> + <&apps_smmu_1 0x0944 0x0>,
> + <&apps_smmu_1 0x0960 0x0>;
> + iommu-ranges = <0x25800000 0xda600000>;
> + };
> +
> + pixel {
> + iommus = <&apps_smmu_1 0x0943 0x0>;
> + };
> + };
[Severity: High]
Does video-codec@aa00000 match any in-tree Devicetree binding schema or the
qcom-iris driver?
Neither "qcom,nord-iris" nor "qcom,glymur-iris" is documented under
Documentation/devicetree/bindings/media/ or listed in iris_dt_match[] in
drivers/media/platform/qcom/iris/iris_probe.c. The 9 clocks, 5
power-domains, 6 resets, and 3-element opp-hz tuples in nord-embedded.dtsi,
as well as the non-pixel and pixel child nodes and iommu-ranges property, are
also undocumented and break make dtbs_check.
In addition, iris_probe() expects iommus directly on the top-level platform
device and calls iris_reserve_iova_region() -> dma_iova_try_alloc() on that
device; placing iommus inside the unparsed non-pixel and pixel child nodes
leaves the platform device unattached to apps_smmu_1, causing
iris_reserve_iova_region() to fail probe with -ENOMEM.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-nord-iris-dts-v3-0-70f2111338b8@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-12-01 13:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 12:58 [PATCH v3 0/3] arm64: dts: qcom: nord: Add iris video codec support Gourav Kumar
2026-12-01 12:58 ` [PATCH v3 1/3] arm64: dts: qcom: nord: Add iris video node Gourav Kumar
2026-12-01 13:23 ` sashiko-bot [this message]
2026-12-01 12:58 ` [PATCH v3 2/3] arm64: dts: qcom: nord-ride-embedded: Enable iris video codec node Gourav Kumar
2026-12-01 12:58 ` [PATCH v3 3/3] arm64: dts: qcom: nord-rrd: " Gourav Kumar
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-243387@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gourav.kumar@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.