Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp81616pxb; Tue, 10 Nov 2020 20:46:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJybM/Z5wQAwvmP3sX+WoxgjH41Cjl8zmpZQJa/stIah0DrWaRDbP57+ACb9m5VDYx+7b07g X-Received: by 2002:a50:ace6:: with SMTP id x93mr3084007edc.368.1605070005588; Tue, 10 Nov 2020 20:46:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605070005; cv=none; d=google.com; s=arc-20160816; b=0Zu+DdPYTDGQNvpvhR17Tkl9PG9P2bGKY1xz9rD8e7tvTSvnt74KoliqUaUuZV3wnw zoC3MVDvkbVOp6RZ63/ni6tzl83kkj8u/5D7U2gF0R1Nyxcs7QSpgje0e9NAG7BDsnb+ ZM3y14SlIkrflv/nDoqkHHGLZHedcn5X2JX+NSJH5+yfN8iofzcVnv41/lHvOyYfvs1I cWuLyeGzlNHQblTKgBQmbG5IgBmGDH4IqL7JovWInx7xRTYa+vdE2ocE8RhRoDqJeerf 0sHr2tBQdlT5S+y/Wwk0c90oyK6rSEReO6xVD6PGvtjisTnDqkHBQ7EpmJU7NI+s2Xka 5wjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oqA0yoRPjntpyzT4jdy42xhn5i7OiwBFi2GcPG8ggM4=; b=OPen7hF7cKLIaSZeDM8dIXhrGfisChfwpGACIKGF0vLGYL3jsdtXu+68pO3py9EW7B GS5WJyOdN9vQTmisvcpNDC1fCwGu0jcvbk4OIdg2zNuddIH1LSkfjJntupz8eSj6q7W9 HsGdl1gMTsgm7jMbeQvUVb26dEQ80ooic8kd+lIt7skPsne+uH9bfd2qRt0x7rMORsmR sCrBvJJCfp3NIcDthqn6mARIVdNKEn2OhjSdC4oXfCExQj4R5n/1JzZC6GBIJHPOQMm8 Vq9DI2F5usWyC1koEQE6mV2qeObdtEeZ3k6Aa+iBpPEHs+Wy8B6Edm7PQ1HV5lSNB575 BXyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nmzM9juq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si638425edx.171.2020.11.10.20.46.21; Tue, 10 Nov 2020 20:46:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nmzM9juq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725885AbgKKEo4 (ORCPT + 99 others); Tue, 10 Nov 2020 23:44:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgKKEoz (ORCPT ); Tue, 10 Nov 2020 23:44:55 -0500 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CAC4C0613D1 for ; Tue, 10 Nov 2020 20:44:55 -0800 (PST) Received: by mail-ot1-x342.google.com with SMTP id k3so971497otp.12 for ; Tue, 10 Nov 2020 20:44:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=oqA0yoRPjntpyzT4jdy42xhn5i7OiwBFi2GcPG8ggM4=; b=nmzM9juq26dDLRUhYk5tZHQq5y5pZ96w/xDDVcLz9IiyrRDW1cxKroj1M6TwmnCvWM xyBZI5KSg48waquuuvol4nibpy5BKNzXg0RuNkPLAuAQ2Iioec/asmYLjoNBqg+Ajy9g z+UBlPUhG2hfMr7opL0XrSzrMTcW1SA9utVzNphYj11DYOWTYfB26feX41ht74TBNM/m azsQPGRMiKOEa95PT3vNUTU0L6flEJtKW34uSVgfAOFljbaEFE1sasVkCREzmnlNlFI/ LR5TlsKrl6Nj4dBS0lGKPiOGJwK0NG7vP75M2Om0C3OmljeU3hfwmF7goeyMkaStPSXQ UCwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oqA0yoRPjntpyzT4jdy42xhn5i7OiwBFi2GcPG8ggM4=; b=Opkmep3isAybwSzpMxXJ5ffZPrrlGvu5d0Ml9eKQMKWM9mWQteKxaeI4+DaMV9uD13 fNMJ+9kvcDl4frnoATwV3gSg9guy0YVc8f4QI7WUkh8TAAS7WSZiy3+bLfN3EUWK42Bj UjNJuwBkZewmPhwBLXccmFvItoM+Ln3Xo3RtO4f9LOoTEFl/Hx1+YYny7oLz24G0xNN6 cVsnwhztWxr1DtFvxxNyYkZvD2/OlUnSPPKf5eJ9U7EE1KmfUvBKuLatdHj0z35NQ0iq aTusx07fVw48tQiRcuJbQGYd8stsy2Y9B0NzrquH7asV6+oZe2o31sK1I2ZE1U77RaUk gTmw== X-Gm-Message-State: AOAM530gilyhyL3/4yZXpmo9q74tX8LxJilBS8wD/Lst5nl+CGZQ62fu 96o/8nXPrVcEUcxxj5kqBLYDKg== X-Received: by 2002:a9d:6c4e:: with SMTP id g14mr17001870otq.120.1605069894248; Tue, 10 Nov 2020 20:44:54 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id r24sm271015otq.77.2020.11.10.20.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 20:44:53 -0800 (PST) Date: Tue, 10 Nov 2020 22:44:51 -0600 From: Bjorn Andersson To: Zhen Lei Cc: Rob Herring , Arnd Bergmann , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , Andy Gross , linux-arm-msm , devicetree , linux-arm-kernel , linux-kernel Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: clear the warnings caused by empty dma-ranges Message-ID: <20201111044451.GD173948@builder.lan> References: <20201016090833.1892-1-thunder.leizhen@huawei.com> <20201016090833.1892-3-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201016090833.1892-3-thunder.leizhen@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Signed-off-by: Zhen Lei Thanks for fixing this up Zhen! Reviewed-by: Bjorn Andersson 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 = ; > 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 = ; > 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 = ; > 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 = ; > 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 = ; > 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 = ; > 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 = ; > 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 = ; > 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 = ; > }; > > watchdog@b017000 { > compatible = "qcom,kpss-wdt"; > interrupts = ; > - 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 = , > ; > - reg = <0x0b121000 0x1000>, > - <0x0b122000 0x1000>; > + reg = <0x0 0x0b121000 0x0 0x1000>, > + <0x0 0x0b122000 0x0 0x1000>; > }; > > frame@b123000 { > frame-number = <1>; > interrupts = ; > - reg = <0xb123000 0x1000>; > + reg = <0x0 0xb123000 0x0 0x1000>; > status = "disabled"; > }; > > frame@b124000 { > frame-number = <2>; > interrupts = ; > - reg = <0x0b124000 0x1000>; > + reg = <0x0 0x0b124000 0x0 0x1000>; > status = "disabled"; > }; > > frame@b125000 { > frame-number = <3>; > interrupts = ; > - reg = <0x0b125000 0x1000>; > + reg = <0x0 0x0b125000 0x0 0x1000>; > status = "disabled"; > }; > > frame@b126000 { > frame-number = <4>; > interrupts = ; > - reg = <0x0b126000 0x1000>; > + reg = <0x0 0x0b126000 0x0 0x1000>; > status = "disabled"; > }; > > frame@b127000 { > frame-number = <5>; > interrupts = ; > - reg = <0x0b127000 0x1000>; > + reg = <0x0 0x0b127000 0x0 0x1000>; > status = "disabled"; > }; > > frame@b128000 { > frame-number = <6>; > interrupts = ; > - 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 > >