Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2991553pxb; Sun, 8 Nov 2020 22:20:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzT9b6JF4Qcr4VTjNCI/oo7ZIgjxt6DxrfccUuSJzvT00Vo/TBT+Bo7ZX5a4p4cDN0Vzxiu X-Received: by 2002:aa7:d84a:: with SMTP id f10mr14058210eds.163.1604902836410; Sun, 08 Nov 2020 22:20:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604902836; cv=none; d=google.com; s=arc-20160816; b=1DbDcqIsKCFRggfWj4fQ50XSEW+AlXm+nDJSU7gtdslMBl7j/Cpq1hMyRmtOOOpp3j jwPnGD+Pb6LtLcE2TmfWAHmlg1l+Q5JWbEHwQNQNrxMuPpqncmIecYFPqVCQ7rE43xGW zvyhps8ZEKE+dOyzV1HHcgRpsjscUicm5n9iDtn/VQNeYCwytbcJGxspbaRmbXsuHlQY ZvHR7LK7m+iQMVxDCJWWAMQ0twkfGKwZdvilW4oTLTJ6Nq0Jqg4v7UYaYMSPOq7Sxzge zzdtuYzWY94TrwO1HJWUE1ibUiIWs1cfPCj/dHSkT6ryxooUHyJQR8yEXopTHGlMn1yS abhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=8dp4F95wIlphsNwZ65peMCJRaMmKowh/aiDGwibjFk0=; b=DXP3vmOr5Kd8+2DwY9MwCh8OmmioOL9nbUN2QKc0CpWiVATZiKxr+OPNOk1CyPuLuI a9LASRNAGsNxUzklIVikjKKE4WGDIRueseK83Lt263llScx1o5Bvj/0GEQvjJ6ZDasle Yu64wMJ6BLBBTNOUuzXNe3n72imDsChDkY7lB6m1S1+vQGPyMWkHfRHmAaG0D/wHJmNX B0zt8bFm7lujhm/NDH1111frR56LxkIei5UH32akmPP4QNefE4Kxtdws9x+5AlEmYzUR cX+y+TOvvuErieZ48Jn0CCZ46gcV6gxjIACpagYTyaAffjx/RV717zyIKGAVqMnxU0Fu M9XQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si6156162ejb.604.2020.11.08.22.20.14; Sun, 08 Nov 2020 22:20:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729560AbgKIGSZ (ORCPT + 99 others); Mon, 9 Nov 2020 01:18:25 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7616 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729552AbgKIGSZ (ORCPT ); Mon, 9 Nov 2020 01:18:25 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CV15J5S3gzLwMf; Mon, 9 Nov 2020 14:18:12 +0800 (CST) Received: from [127.0.0.1] (10.174.178.230) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 9 Nov 2020 14:18:21 +0800 Subject: Re: [PATCH v2 1/2] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges From: "Leizhen (ThunderTown)" To: Arnd Bergmann CC: Florian Fainelli , Rob Herring , Ray Jui , Scott Branden , bcm-kernel-feedback-list , Andy Gross , Bjorn Andersson , linux-arm-msm , devicetree , linux-arm-kernel , linux-kernel References: <20201016090833.1892-1-thunder.leizhen@huawei.com> <20201016090833.1892-2-thunder.leizhen@huawei.com> <0eee3fd2-7400-7de7-27a7-7fcaa0955854@gmail.com> <07ab3bdd-dcb1-5a59-d813-f82451b3f028@huawei.com> Message-ID: <5980552d-6e96-fd9f-c758-1b1e9f57100e@huawei.com> Date: Mon, 9 Nov 2020 14:18:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <07ab3bdd-dcb1-5a59-d813-f82451b3f028@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.178.230] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, everybody: How do we deal with this problem? I updated the kernel to the latest and the problem still persists. make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j24 dtbs 2>err.txt vim err.txt 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) arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #address-cells (1) differs from / (2) arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #size-cells (1) differs from / (2) arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #address-cells (1) differs from / (2) arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #size-cells (1) differs from / (2) arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #address-cells (1) differs from / (2) arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but its #size-cells (1) differs from / (2) On 2020/10/26 10:21, Leizhen (ThunderTown) wrote: > > > On 2020/10/23 15:17, Arnd Bergmann wrote: >> On Sun, Oct 18, 2020 at 4:10 AM Leizhen (ThunderTown) >> wrote: >>> On 2020/10/17 3:27, Florian Fainelli wrote: >>>> On 10/16/20 11:23 AM, Arnd Bergmann wrote: >>>>> On Fri, Oct 16, 2020 at 6:48 PM Florian Fainelli wrote: >>>>>> On 10/16/20 4:01 AM, Arnd Bergmann wrote: >>>>>>> On Fri, Oct 16, 2020 at 11:09 AM Zhen Lei wrote: >>>>>>>> >>>>>>>> Suggested-by: Arnd Bergmann >>>>>>>> Signed-off-by: Zhen Lei >>>>>>> >>>>>>> Acked-by: Arnd Bergmann >>>>>>> >>>>>>> I see that at least the 'bcd' and 'xhci' devices in fact try to >>>>>>> use 64-bit DMA. It would be good to test this on actual >>>>>>> hardware to ensure that it works correctly when this is enabled. >>>>>>> >>>>>>> Ideally avoiding the swiotlb bounce buffering should only >>>>>>> make it faster here, but there are many chips on which >>>>>>> 64-bit DMA is broken in some form. >>>>>> >>>>>> Is this change really an improvement though? This 'usb' pseudo bus node >>>>>> could just keep being defined with #address-cells = <1> and #size-cells >>>>>> = <1> so as to satisfy the 'reg' definition however we could just adjust >>>>>> dma-ranges to indicate full 64-bit addressing capability. Would not that >>>>>> work? >>>>> >>>>> When #address-cells is '1', you cannot specify dma-ranges that >>>>> go beyond a 32-bit address range. >>>> >>>> Would not it be enough to remove the 'dma-ranges' property though? Sorry >>>> for being slow here. >>> >>> Remove the 'dma-ranges' property should also work. After all, it is equivalent >>> to the original empty dma-ranges scheme. In addition, since the IOMMU nodes are >>> defined, it should be enabled. >> >> Are you sure? I was expecting the IOMMU not to get used here since >> the devices do contain list an 'iommus' property. > > OK,If the SMMU maybe disabled, then your proposal is necessary. > >> >> Arnd >> >> . >>