Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2807553pxu; Mon, 14 Dec 2020 11:19:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJygWkS5JSDjusS4L6yM8tzJqYU3vWuxHH9ihNV9FyZs/mHDAQhdM7U73Q2D1ebg8YbwLlmk X-Received: by 2002:aa7:cd15:: with SMTP id b21mr26621355edw.114.1607973591018; Mon, 14 Dec 2020 11:19:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607973590; cv=none; d=google.com; s=arc-20160816; b=ZHyLFL8bJHYFBoVQDNJguuhXmK+y+WEnirikTQ2ETj/dCxG3g/f7vNi/kU7AehDgGN i8UZ5bnKHOowJmXKuIweNIgLQZC0xNRNtg5godeXlc3c/DkZDluWAV+e8L9a3p0oxYwr XvJ8R8j4VMHdndArMo4er/Yu+11/PHaW4rJBpyUYcrodWfj9pPZajMhLXLuEEa848/K4 Zdp/g+sDyC65+f+8Wjvyom3Z1NV/LN7SNgl0/gWINhTkhy/uRvBUylC/EI1eq6Z2FuSE qyClE6xsJ1MVfq5zRMdh8NzKsT+yy/+AOh3aAhOCmYf2w/rmizWXFqZrwnW4AKPuFRDG umqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=PbHIoowEwk1+QuzmlrOTZ78Tqj9YlZm5ImEKqH9Gngo=; b=Ygu8qLwBHZ93c8p82VozGqyBldurbMdGlATw1JVe3ZPw3aE4G3XYOj3IyyD5YVVH4W 4OjgTyH2smXm2JZ+NmjPJI6c49F8XDevIPElXKzmHozywbSrWi4ofaZvbOz5+CrxAMGP vDzRptcduW/AFOG3oD+9RyyJfYFs0FIp996RgmgXQV3HT1eHMjsFpEmZOKlcd7FXGB0E zJghrVvWmAy88cIIuFUTXeKzi5GOI6oeCMsbeF5DiLpOqHgNN/jHgeZmzxY1f4MXzzBM Kjdp380rtKBdgVLCFUm0Ehfx7KEQCmo2R7hYWY1lkxMmlp0leqnywEG9nrPwVAWbS74P 0z8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=hOcIo39w; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw4si10260719ejb.196.2020.12.14.11.19.27; Mon, 14 Dec 2020 11:19:50 -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=@broadcom.com header.s=google header.b=hOcIo39w; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2501965AbgLNTNM (ORCPT + 99 others); Mon, 14 Dec 2020 14:13:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440496AbgLNTJy (ORCPT ); Mon, 14 Dec 2020 14:09:54 -0500 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EB8FC0613D3 for ; Mon, 14 Dec 2020 11:09:12 -0800 (PST) Received: by mail-pj1-x1044.google.com with SMTP id v1so6834667pjr.2 for ; Mon, 14 Dec 2020 11:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to; bh=PbHIoowEwk1+QuzmlrOTZ78Tqj9YlZm5ImEKqH9Gngo=; b=hOcIo39w0JWIK7UfG7FdoF1NqCY4WwnQEQ6bx5eX3GOSmP4QECDYsLKNeTIzZOd3oF NYHvAFvSim/LnCkmiqUiV3vNW9+G/IWCDLyE5SU+OhxNr7FUXfEhf5Crhx+j2bVq6FX0 Dd5rmxQ5A0uVMgi6eaTsa6I88HGnIwXFrniYk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=PbHIoowEwk1+QuzmlrOTZ78Tqj9YlZm5ImEKqH9Gngo=; b=TA1Q8a5S5txsD6ehCrB9rEJS3QdeSSk+yPiPvnhVvNOAVBsHchxYN4hLzJONpS4UZh V9EkQQCS4Amu9e5RHFWuuUZcOq2/21D9FD+DJAsGdRXihVDGtr0fjVGg9alZG70R0r9S AFWn4GcIM8r0VaoAHT95OmKJpLS4pWhuOVPzFYF5gvY6oEo5m0oiqkuKK6M2lS02IlLG DpGIZFQWXspB4IuWW2m78WpDklkJ2R6uW1vfEBt1GHm6y9C7HzBHDygxlztQWPmsN+Au v/H8vA95j5zQcByIRWxrW69zK2+sbf/am9DJ+0q884+PdEO9sx3at15asKoqDV4jr+lc 40xA== X-Gm-Message-State: AOAM533B/oSki7gj+W6umNgLTtc6DaAuz7DMsEg13m5SMqsYBnP/yq6F ScwLRR9p7sHYHp/Ii3rNlsE70jujldLj7dLCxy5/VdSbstj2stmcmE06Li8m7TyMpbOpApzJBp3 avmPlx926yvhF44g= X-Received: by 2002:a17:90a:f683:: with SMTP id cl3mr26833050pjb.136.1607972951894; Mon, 14 Dec 2020 11:09:11 -0800 (PST) Received: from [10.136.50.213] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id y19sm20621855pfp.211.2020.12.14.11.09.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Dec 2020 11:09:10 -0800 (PST) Subject: Re: [PATCH v2 1/2] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges To: Arnd Bergmann , Florian Fainelli Cc: bcm-kernel-feedback-list , Zhen Lei , Rob Herring , Arnd Bergmann , Ray Jui , Scott Branden , Andy Gross , Bjorn Andersson , linux-arm-msm , devicetree , linux-arm-kernel , linux-kernel , Bharat Gooty References: <20201016090833.1892-1-thunder.leizhen@huawei.com> <20201016090833.1892-2-thunder.leizhen@huawei.com> <20201128045328.2411772-1-f.fainelli@gmail.com> From: Ray Jui Message-ID: <9c6c6b7e-8c39-8c49-5c87-9b560c027841@broadcom.com> Date: Mon, 14 Dec 2020 11:09:07 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000a3893205b67160cf" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000a3893205b67160cf Content-Type: text/plain; charset="UTF-8" Content-Language: en-US + Bharat On 11/28/2020 1:58 AM, Arnd Bergmann wrote: > On Sat, Nov 28, 2020 at 5:53 AM Florian Fainelli wrote: >> >> On Fri, 16 Oct 2020 17:08:32 +0800, 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/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) >>> >>> 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 >>> --- >> >> Applied to devicetree-arm64/next, thanks! > > The notification may have gone missing, but I had merged it into v5.10-fixes > already, and as of today, it's in mainline, so you can drop it from your > next branch, or just leave it in if you want to avoid taking things out of > your tree. > > Arnd > It looks like this patch might have caused a regression on Stingray USB. Bharat, could you please confirm? The fix would be to properly define the dma-ranges to be 32-bit (0x0 ~ 0xffffffff) since IOMMU is disabled on this device and the device's DMA engine is on a 32-bit bus. Thanks, Ray -- This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it. --000000000000a3893205b67160cf Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQMwYJKoZIhvcNAQcCoIIQJDCCECACAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2IMIIE6DCCA9CgAwIBAgIOSBtqCRO9gCTKXSLwFPMwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UE CxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMT Ckdsb2JhbFNpZ24wHhcNMTYwNjE1MDAwMDAwWhcNMjQwNjE1MDAwMDAwWjBdMQswCQYDVQQGEwJC RTEZMBcGA1UEChMQR2xvYmF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