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=1796043213; b=ZQ6XbGZ5hOzrl+GEgEnvMFY38Phhuv7LCSJZ/hsFVUh9u1brbvgq7YV6bGT1i9JqA5bR g205vbv6QaLvSRu8p+aYnwSw0p10qWFbRGoKVwJqb2rDIgY9ialWCfUgg9VA1aM9ExLd/ RI8cMF1nqXwH8MIE7ONP+KaRgq+fV6Eb52lAWJnN/MWTYzTgAaOdWKk7bjjkHB9jVhNcr gXnGB3Pn1XgD6hWXXy8P+osEmbelild0WOPT/DLiC0akts3XKT1NcoAhwwP3MrMx1at3D hFNPpSAF6mC6GpbAmkn6oU/+QZYdvUWTta24wsWIaRElKjzAj4XvQVBS2W+ypkYFBKg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796043213; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=xembHIu0Z6leS+8piTgImNrvp7l+BXmwE3DL8BSXcIQ=; b=AZNVgvws8trQZIOHf3GJF7PEIDpsPECiVH3lVjvEQPIfJr8Uej6MIHSC1orbnGTSDtzA GRyzoiRmYo4sK39hyiNPMkROuCF30ES1y8vrcSokd24r12Hv09uriLHJ2SmzpvK5K5HQB GVRbEgUmsYxzdud9Oylz4SXGECKTTML2Bwft9czTRa++y1R4M+FcrHggLeIALIr6eKzpX bhatgK87zE3a6/kEy5+oO4xyTpddEEDiBCDNorrch2i5hO5ow3W3MxKRDX+vB4Mw7+tU2 Z8R7Xy25jkVAwissKRY3CzUyW14SIKB/BCvfdeL91zZWYFTC49QmIg7zbcuhwDLcTdA== 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=Q76qXM3z; 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 341E0606A335; Mon, 30 Nov 2026 12:53:33 +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=Q76qXM3z Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8DDA1F00933; Mon, 30 Nov 2026 12:53:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796043213; bh=xembHIu0Z6leS+8piTgImNrvp7l+BXmwE3DL8BSXcIQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Q76qXM3zOg1zNrWe6PUd9uwJkDDX7HkhJdr3xq8x3p7IywgFp1+ZyueMGk+51+3Iz rLDFoKArXnZFlXZPr5ZMFXJ6H6rO3P5CchbyURuAE8zMU4igC6m1LGZq4Vi5vu37aM ukZQZ6oovR7ua/rK2qW2Mq7mAzbZLyAyRpkIrPRXLco2kZWe4aojeCC5GTzCJzfNwJ UFRqTJw8bCfKsdqmVcUJEpYDYnKs8/XTaMbTF34RYkugdRgvMVL0G3/afQu4UbGRiu XoU2fSzgxD7/ngIxAt5A60Jwlcpi1zTFY3Wbhcj8+hj/SGv6QQ/xwO5VEuOVqvxTPz G9qWcCmw6XfwQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/2] arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant Reply-To: sashiko-reviews@lists.linux.dev To: "Mrinmay Sarkar" Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261130-nord-pcie-fw-dt-v1-2-117d03dedb1c@oss.qualcomm.com> References: <20261130-nord-pcie-fw-dt-v1-0-117d03dedb1c@oss.qualcomm.com> <20261130-nord-pcie-fw-dt-v1-2-117d03dedb1c@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 12:53:32 +0000 X-Mailing-List: linux-pci@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 1 potential issue to consider: - [Medium] arm64: dts: qcom: nord-gearvm: invalid PCI I/O bus address in ranges -- commit ad0f5ff027365730c5e407ace2981b409b13d1de Author: Mrinmay Sarkar arm64: dts: qcom: nord: Enable PCIe controllers for GearVM variant This commit adds GearVM-specific overrides for the Nord PCIe controllers, expands the soc@0 address translation range, and enables PCIe0 and PCIe1 along with their SCMI power domains on the Nord RIDE platform. > diff --git a/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi b/arch/arm64/boot/= dts/qcom/nord-gearvm.dtsi > index 5514f9a6f49f5..b71f48e09d517 100644 > --- a/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi > +++ b/arch/arm64/boot/dts/qcom/nord-gearvm.dtsi > @@ -2098,6 +2098,54 @@ &i2c20 { > "perf"; > }; > =20 > +&pcie0 { > + /delete-property/ num-lanes; > + /delete-property/ reg-names; > + > + compatible =3D "qcom,nord-pcie-fw", "qcom,pcie-sa8255p"; > + reg =3D <0x50 0x00000000 0x0 0x10000000>; > + ranges =3D <0x01000000 0x0 0x40000000 0x0 0x40000000 0x0 0x100000>, > + <0x02000000 0x0 0x40100000 0x0 0x40100000 0x0 0x7000000>, > + <0x43000000 0x50 0x10100000 0x50 0x10100000 0x8 0x00000000>; > + power-domains =3D <&scmi5_pd 0>; > +}; > + > +&pcie1 { > + /delete-property/ num-lanes; > + /delete-property/ reg-names; > + > + compatible =3D "qcom,nord-pcie-fw", "qcom,pcie-sa8255p"; > + reg =3D <0x48 0x00000000 0x0 0x10000000>; > + ranges =3D <0x01000000 0x0 0x50000000 0x0 0x50000000 0x0 0x100000>, > + <0x02000000 0x0 0x50100000 0x0 0x50100000 0x0 0x7000000>, > + <0x43000000 0x48 0x10100000 0x48 0x10100000 0x4 0x00000000>; > + power-domains =3D <&scmi6_pd 0>; > +}; > + > +&pcie2 { > + /delete-property/ num-lanes; > + /delete-property/ reg-names; > + > + compatible =3D "qcom,nord-pcie-fw", "qcom,pcie-sa8255p"; > + reg =3D <0x40 0x00000000 0x0 0x10000000>; > + ranges =3D <0x01000000 0x0 0x60000000 0x0 0x60000000 0x0 0x100000>, > + <0x02000000 0x0 0x60100000 0x0 0x60100000 0x0 0x7000000>, > + <0x43000000 0x40 0x10100000 0x40 0x10100000 0x4 0x00000000>; > + power-domains =3D <&scmi32_pd 0>; > +}; > + > +&pcie3 { > + /delete-property/ num-lanes; > + /delete-property/ reg-names; > + > + compatible =3D "qcom,nord-pcie-fw", "qcom,pcie-sa8255p"; > + reg =3D <0x4 0x00000000 0x0 0x10000000>; > + ranges =3D <0x01000000 0x0 0x70000000 0x0 0x70000000 0x0 0x100000>, > + <0x02000000 0x0 0x70100000 0x0 0x70100000 0x0 0x7000000>, > + <0x43000000 0x4 0x10100000 0x4 0x10100000 0x0 0x80000000>; > + power-domains =3D <&scmi33_pd 0>; > +}; [Severity: Medium] Should the PCI bus address in the I/O space (0x01000000) ranges entries for pcie0 through pcie3 be 0x0 0x00000000 (as in nord.dtsi) instead of matching the CPU physical address (0x40000000..0x70000000)? When devm_of_pci_get_host_bridge_resources() parses an IORESOURCE_IO range, of_pci_range_to_resource() converts range.cpu_addr into a logical PIO port resource and pci_add_resource_offset() records the window offset as res->start - range.pci_addr. Setting the PCI child address to 0x40000000..0x70000000 causes pcibios_resource_to_bus() to translate logical PIO resources to PCI bus I/O addresses starting at 0x40000000..0x70000000 rather than 0x0..0xfffff, breaking I/O port BAR and bridge window assignment. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130-nord-pcie-= fw-dt-v1-0-117d03dedb1c@oss.qualcomm.com?part=3D2