From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796131382; b=HdAlcLIDr/lOneAu3HT2ugLolwlR7iuC1/waFr5Dq2DxLdlCn4zD+QEffl6TLwr/IpSc W94AoJTnJZ838rJKwqfll7SHxaleel4u2pYOVPlE4xOg91br86ec9TzhWZSPU8SUa5htH 0m9KF7dmT8vgAReDXvaFxp/zyA4+dDi2ov84dtJADLJZ9e9T1MJStFrP/ePPS5kfwwzBC ULgsJdUafke9ASrjBS5c9iuo4M0tASYn2VPr2a+C8t4mAvtesrgR80of5MypiMFJ9bqVI C6LsFRKb+Vnf2tvx55YwfflcBoN9BVS6VFUUqk7vUIgpKAdEA6a7NXjcOen9sdQ/l4A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796131382; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=QKW2UnUKzwVWXPvwGsaOkCBtOtZdYXy/J3RzA86qpzw=; b=yrtQpXyqI+QayPS/5823iuR6YlMAIlXKI5R82txyt0UvrE/jOYNPtM3Dy8AdxzIZCAET iYbuEYg4grxeLtaA9mRhQodb7tAmnUX75QN9VNway1R9moxAbQUVYjIRtPIK+yxpB0UnA OH4yLkPKtFskLWTFcmrTc0uZwkvF/C+huMRRuJa9Nw4eGk+kQfMKbNttNzSIz5uhb2UMr orZtaYpdtu6sSzisHF20tHTWdFI1+/cDUS7e8yP5wtFoCczYZLAaxFAkxo3avVvBC7+KZ mWSBx37x2f+IV+eVX3MQWSMO8kf9uuR2fNB7Gp602AXS+o2GfeCpy7DRINyy0TDriPQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=i3BP+gT+; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44E3D606A32E for ; Tue, 1 Dec 2026 13:23:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=i3BP+gT+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id B50961F0089A; Tue, 1 Dec 2026 13:23:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796131381; bh=QKW2UnUKzwVWXPvwGsaOkCBtOtZdYXy/J3RzA86qpzw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=i3BP+gT+KvF/wtZo+0uPwkUv7KWE58dP8SUyn5ysaqQcZOAFAcEm7s9RQblwAsQPZ KKzIncD+u1XhotNGY4sSd+n/ChNqObprCjPwM7PENrQuY+1Uv4AKdmxo07dsks8I0v oO8SxXn5U5E/jhhlnqd/jCsmbBV3ciDihv1AOPJsHKVQHclczsTICQuWCqjcsI0N6r ZUD8xs6l0RTZZgnwMd0wFRjXBga8gw99dyave7lRExFgwXYOzuSOH6aNuRPxV/k234 GNPxM/ttQed+pkDhaidrIrFtIPXQn7SXjbqF6ncq4dLJCPZH9yxK3nuDxLLHqx6lDX 3SWaTkTUDP81g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 1/3] arm64: dts: qcom: nord: Add iris video node Reply-To: sashiko-reviews@lists.linux.dev To: "Gourav Kumar" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261201-nord-iris-dts-v3-1-70f2111338b8@oss.qualcomm.com> References: <20261201-nord-iris-dts-v3-0-70f2111338b8@oss.qualcomm.com> <20261201-nord-iris-dts-v3-1-70f2111338b8@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 13:23:01 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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/qco= m/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 =3D <1>; > }; > =20 > + iris: video-codec@aa00000 { > + compatible =3D "qcom,nord-iris", "qcom,glymur-iris"; > + reg =3D <0x0 0x0aa00000 0x0 0xf0000>; > + > + dma-coherent; > + > + interrupts =3D ; > + > + memory-region =3D <&video_mem>; > + > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + dma-ranges =3D <0x0 0x0 0x0 0xffe00000>; [Severity: Medium] Does placing dma-ranges =3D <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 =3D "disabled"; > + > + non-pixel { > + iommus =3D <&apps_smmu_1 0x0940 0x0>, > + <&apps_smmu_1 0x0944 0x0>, > + <&apps_smmu_1 0x0960 0x0>; > + iommu-ranges =3D <0x25800000 0xda600000>; > + }; > + > + pixel { > + iommus =3D <&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, a= re 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-nord-iris-= dts-v3-0-70f2111338b8@oss.qualcomm.com?part=3D1