From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Zhen Lei <thunder.leizhen@huawei.com>
Cc: Rob Herring <robh+dt@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
Florian Fainelli <f.fainelli@gmail.com>,
Ray Jui <rjui@broadcom.com>,
Scott Branden <sbranden@broadcom.com>,
bcm-kernel-feedback-list <bcm-kernel-feedback-list@broadcom.com>,
Andy Gross <agross@kernel.org>,
linux-arm-msm <linux-arm-msm@vger.kernel.org>,
devicetree <devicetree@vger.kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: clear the warnings caused by empty dma-ranges
Date: Tue, 10 Nov 2020 22:44:51 -0600 [thread overview]
Message-ID: <20201111044451.GD173948@builder.lan> (raw)
In-Reply-To: <20201016090833.1892-3-thunder.leizhen@huawei.com>
On Fri 16 Oct 04:08 CDT 2020, Zhen Lei wrote:
> The scripts/dtc/checks.c requires that the node have empty "dma-ranges"
> property must have the same "#address-cells" and "#size-cells" values as
> the parent node. Otherwise, the following warnings is reported:
>
> arch/arm64/boot/dts/qcom/ipq6018.dtsi:185.3-14: Warning \
> (dma_ranges_format): /soc:dma-ranges: empty "dma-ranges" property but \
> its #address-cells (1) differs from / (2)
> arch/arm64/boot/dts/qcom/ipq6018.dtsi:185.3-14: Warning \
> (dma_ranges_format): /soc:dma-ranges: empty "dma-ranges" property but \
> its #size-cells (1) differs from / (2)
>
> Arnd Bergmann figured out why it's necessary:
> Also note that the #address-cells=<1> means that any device under
> this bus is assumed to only support 32-bit addressing, and DMA will
> have to go through a slow swiotlb in the absence of an IOMMU.
>
> Suggested-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Thanks for fixing this up Zhen!
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
and applied for 5.11.
Regards,
Bjorn
> ---
> arch/arm64/boot/dts/qcom/ipq6018.dtsi | 72 +++++++++++++++++------------------
> 1 file changed, 36 insertions(+), 36 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
> index a94dac76bf3fbdd..59e0cbfa2214305 100644
> --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi
> +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
> @@ -179,22 +179,22 @@
> };
>
> soc: soc {
> - #address-cells = <1>;
> - #size-cells = <1>;
> - ranges = <0 0 0 0xffffffff>;
> + #address-cells = <2>;
> + #size-cells = <2>;
> + ranges = <0 0 0 0 0x0 0xffffffff>;
> dma-ranges;
> compatible = "simple-bus";
>
> prng: qrng@e1000 {
> compatible = "qcom,prng-ee";
> - reg = <0xe3000 0x1000>;
> + reg = <0x0 0xe3000 0x0 0x1000>;
> clocks = <&gcc GCC_PRNG_AHB_CLK>;
> clock-names = "core";
> };
>
> cryptobam: dma@704000 {
> compatible = "qcom,bam-v1.7.0";
> - reg = <0x00704000 0x20000>;
> + reg = <0x0 0x00704000 0x0 0x20000>;
> interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>;
> clocks = <&gcc GCC_CRYPTO_AHB_CLK>;
> clock-names = "bam_clk";
> @@ -206,7 +206,7 @@
>
> crypto: crypto@73a000 {
> compatible = "qcom,crypto-v5.1";
> - reg = <0x0073a000 0x6000>;
> + reg = <0x0 0x0073a000 0x0 0x6000>;
> clocks = <&gcc GCC_CRYPTO_AHB_CLK>,
> <&gcc GCC_CRYPTO_AXI_CLK>,
> <&gcc GCC_CRYPTO_CLK>;
> @@ -217,7 +217,7 @@
>
> tlmm: pinctrl@1000000 {
> compatible = "qcom,ipq6018-pinctrl";
> - reg = <0x01000000 0x300000>;
> + reg = <0x0 0x01000000 0x0 0x300000>;
> interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
> gpio-controller;
> #gpio-cells = <2>;
> @@ -235,7 +235,7 @@
>
> gcc: gcc@1800000 {
> compatible = "qcom,gcc-ipq6018";
> - reg = <0x01800000 0x80000>;
> + reg = <0x0 0x01800000 0x0 0x80000>;
> clocks = <&xo>, <&sleep_clk>;
> clock-names = "xo", "sleep_clk";
> #clock-cells = <1>;
> @@ -244,17 +244,17 @@
>
> tcsr_mutex_regs: syscon@1905000 {
> compatible = "syscon";
> - reg = <0x01905000 0x8000>;
> + reg = <0x0 0x01905000 0x0 0x8000>;
> };
>
> tcsr_q6: syscon@1945000 {
> compatible = "syscon";
> - reg = <0x01945000 0xe000>;
> + reg = <0x0 0x01945000 0x0 0xe000>;
> };
>
> blsp_dma: dma@7884000 {
> compatible = "qcom,bam-v1.7.0";
> - reg = <0x07884000 0x2b000>;
> + reg = <0x0 0x07884000 0x0 0x2b000>;
> interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>;
> clocks = <&gcc GCC_BLSP1_AHB_CLK>;
> clock-names = "bam_clk";
> @@ -264,7 +264,7 @@
>
> blsp1_uart3: serial@78b1000 {
> compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
> - reg = <0x078b1000 0x200>;
> + reg = <0x0 0x078b1000 0x0 0x200>;
> interrupts = <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>;
> clocks = <&gcc GCC_BLSP1_UART3_APPS_CLK>,
> <&gcc GCC_BLSP1_AHB_CLK>;
> @@ -276,7 +276,7 @@
> compatible = "qcom,spi-qup-v2.2.1";
> #address-cells = <1>;
> #size-cells = <0>;
> - reg = <0x078b5000 0x600>;
> + reg = <0x0 0x078b5000 0x0 0x600>;
> interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
> spi-max-frequency = <50000000>;
> clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
> @@ -291,7 +291,7 @@
> compatible = "qcom,spi-qup-v2.2.1";
> #address-cells = <1>;
> #size-cells = <0>;
> - reg = <0x078b6000 0x600>;
> + reg = <0x0 0x078b6000 0x0 0x600>;
> interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
> spi-max-frequency = <50000000>;
> clocks = <&gcc GCC_BLSP1_QUP2_SPI_APPS_CLK>,
> @@ -306,7 +306,7 @@
> compatible = "qcom,i2c-qup-v2.2.1";
> #address-cells = <1>;
> #size-cells = <0>;
> - reg = <0x078b6000 0x600>;
> + reg = <0x0 0x078b6000 0x0 0x600>;
> interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
> clocks = <&gcc GCC_BLSP1_AHB_CLK>,
> <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>;
> @@ -321,7 +321,7 @@
> compatible = "qcom,i2c-qup-v2.2.1";
> #address-cells = <1>;
> #size-cells = <0>;
> - reg = <0x078b7000 0x600>;
> + reg = <0x0 0x078b7000 0x0 0x600>;
> interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
> clocks = <&gcc GCC_BLSP1_AHB_CLK>,
> <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>;
> @@ -336,24 +336,24 @@
> compatible = "qcom,msm-qgic2";
> interrupt-controller;
> #interrupt-cells = <0x3>;
> - reg = <0x0b000000 0x1000>, /*GICD*/
> - <0x0b002000 0x1000>, /*GICC*/
> - <0x0b001000 0x1000>, /*GICH*/
> - <0x0b004000 0x1000>; /*GICV*/
> + reg = <0x0 0x0b000000 0x0 0x1000>, /*GICD*/
> + <0x0 0x0b002000 0x0 0x1000>, /*GICC*/
> + <0x0 0x0b001000 0x0 0x1000>, /*GICH*/
> + <0x0 0x0b004000 0x0 0x1000>; /*GICV*/
> interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
> };
>
> watchdog@b017000 {
> compatible = "qcom,kpss-wdt";
> interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
> - reg = <0x0b017000 0x40>;
> + reg = <0x0 0x0b017000 0x0 0x40>;
> clocks = <&sleep_clk>;
> timeout-sec = <10>;
> };
>
> apcs_glb: mailbox@b111000 {
> compatible = "qcom,ipq6018-apcs-apps-global";
> - reg = <0x0b111000 0x1000>;
> + reg = <0x0 0x0b111000 0x0 0x1000>;
> #clock-cells = <1>;
> clocks = <&a53pll>, <&xo>;
> clock-names = "pll", "xo";
> @@ -362,7 +362,7 @@
>
> a53pll: clock@b116000 {
> compatible = "qcom,ipq6018-a53pll";
> - reg = <0x0b116000 0x40>;
> + reg = <0x0 0x0b116000 0x0 0x40>;
> #clock-cells = <0>;
> clocks = <&xo>;
> clock-names = "xo";
> @@ -377,68 +377,68 @@
> };
>
> timer@b120000 {
> - #address-cells = <1>;
> - #size-cells = <1>;
> + #address-cells = <2>;
> + #size-cells = <2>;
> ranges;
> compatible = "arm,armv7-timer-mem";
> - reg = <0x0b120000 0x1000>;
> + reg = <0x0 0x0b120000 0x0 0x1000>;
> clock-frequency = <19200000>;
>
> frame@b120000 {
> frame-number = <0>;
> interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
> - reg = <0x0b121000 0x1000>,
> - <0x0b122000 0x1000>;
> + reg = <0x0 0x0b121000 0x0 0x1000>,
> + <0x0 0x0b122000 0x0 0x1000>;
> };
>
> frame@b123000 {
> frame-number = <1>;
> interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
> - reg = <0xb123000 0x1000>;
> + reg = <0x0 0xb123000 0x0 0x1000>;
> status = "disabled";
> };
>
> frame@b124000 {
> frame-number = <2>;
> interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
> - reg = <0x0b124000 0x1000>;
> + reg = <0x0 0x0b124000 0x0 0x1000>;
> status = "disabled";
> };
>
> frame@b125000 {
> frame-number = <3>;
> interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
> - reg = <0x0b125000 0x1000>;
> + reg = <0x0 0x0b125000 0x0 0x1000>;
> status = "disabled";
> };
>
> frame@b126000 {
> frame-number = <4>;
> interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
> - reg = <0x0b126000 0x1000>;
> + reg = <0x0 0x0b126000 0x0 0x1000>;
> status = "disabled";
> };
>
> frame@b127000 {
> frame-number = <5>;
> interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
> - reg = <0x0b127000 0x1000>;
> + reg = <0x0 0x0b127000 0x0 0x1000>;
> status = "disabled";
> };
>
> frame@b128000 {
> frame-number = <6>;
> interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
> - reg = <0x0b128000 0x1000>;
> + reg = <0x0 0x0b128000 0x0 0x1000>;
> status = "disabled";
> };
> };
>
> q6v5_wcss: remoteproc@cd00000 {
> compatible = "qcom,ipq8074-wcss-pil";
> - reg = <0x0cd00000 0x4040>,
> - <0x004ab000 0x20>;
> + reg = <0x0 0x0cd00000 0x0 0x4040>,
> + <0x0 0x004ab000 0x0 0x20>;
> reg-names = "qdsp6",
> "rmb";
> interrupts-extended = <&intc GIC_SPI 325 IRQ_TYPE_EDGE_RISING>,
> --
> 1.8.3
>
>
next prev parent reply other threads:[~2020-11-11 4:44 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-16 9:08 [PATCH v2 0/2] eliminate two common errors reported by any yaml on arm64 Zhen Lei
2020-10-16 9:08 ` [PATCH v2 1/2] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges Zhen Lei
[not found] ` <CAK8P3a2TSmsNSi-XFpT6AQ3jvVxJ1AW7Uf5tAo477wtwXZwUzg@mail.gmail.com>
2020-10-16 16:48 ` Florian Fainelli
[not found] ` <CAK8P3a13ywHh7igdfDSPQz9Bw8YAnKWFLKARkk2NL5u6=6yb=w@mail.gmail.com>
2020-10-16 19:27 ` Florian Fainelli
2020-10-18 2:10 ` Leizhen (ThunderTown)
[not found] ` <CAK8P3a335TT1+bdHqB=FetPanXXfGv3dC7ZCkx+w+F3j00kj5A@mail.gmail.com>
2020-10-26 2:21 ` Leizhen (ThunderTown)
2020-11-09 6:18 ` Leizhen (ThunderTown)
2020-11-09 17:28 ` Florian Fainelli
2020-11-09 17:56 ` Arnd Bergmann
2020-11-09 18:00 ` Florian Fainelli
2020-11-28 4:53 ` Florian Fainelli
2020-11-28 9:58 ` Arnd Bergmann
2020-12-14 19:09 ` Ray Jui
2020-12-14 19:46 ` Arnd Bergmann
2020-12-15 15:40 ` Florian Fainelli
[not found] ` <CACvutz9v+TBUbrCo3X-u5ebbs04nR0y0yQN3qWfSAyZVy9RM2g@mail.gmail.com>
2020-12-15 15:41 ` Florian Fainelli
2020-12-15 15:49 ` Arnd Bergmann
2021-01-12 18:28 ` Ray Jui
2021-01-12 20:40 ` Arnd Bergmann
2021-01-12 20:57 ` Ray Jui
2021-01-13 3:42 ` Bharat Gooty
2021-01-13 8:05 ` Arnd Bergmann
2021-01-13 16:55 ` Florian Fainelli
2021-01-13 17:45 ` Ray Jui
2020-10-16 9:08 ` [PATCH v2 2/2] arm64: dts: qcom: " Zhen Lei
2020-11-11 4:44 ` Bjorn Andersson [this message]
2020-12-29 20:15 ` [PATCH v2 0/2] eliminate two common errors reported by any yaml on arm64 patchwork-bot+linux-arm-msm
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=20201111044451.GD173948@builder.lan \
--to=bjorn.andersson@linaro.org \
--cc=agross@kernel.org \
--cc=arnd@arndb.de \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=devicetree@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjui@broadcom.com \
--cc=robh+dt@kernel.org \
--cc=sbranden@broadcom.com \
--cc=thunder.leizhen@huawei.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;
as well as URLs for NNTP newsgroup(s).