Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2435112pxu; Sat, 28 Nov 2020 14:03:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYKMyILjvX/n9zblUkmAi12ZuT7Qc+vGkumv4FLdHT99t5mjUSZVcjJsAW+zRz3fwhiqka X-Received: by 2002:aa7:dd01:: with SMTP id i1mr3354361edv.386.1606600985005; Sat, 28 Nov 2020 14:03:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606600984; cv=none; d=google.com; s=arc-20160816; b=B+8uJtCCSX+YP4VaNtd4iU4NJsX3CEdQGsDsZqIHaLZd9FEOCrridk7u6DNr1D4tqE mjNRgJH51p/AEsQRbu2+xD0sJwwNK75a1xRUj4apAZj8IPZfIOGRTef6hWxlui51jTPN GuEBcW2YoY8XIGDZuVw9ifPATykhyZeYhbf4qEUsKHWqLm56CNkdFJQAaRs7IGI8BFK0 3rOq4IzY7bY0H3MBtwv26h9+tLdrU6qE7apxzWLge/pXfxqXLxbl0uVsM2/TpNLZx6Ma q3UiB9m5yzEy1tBR7GOtkMtd/Y4D/iPHySBEO5k3tV20To47hUFsYry8rzXmRilZXug+ 1G+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5LHuujUPol3xvuT8tvJeY4FkCdR7rzo3wUAlQCxHEU4=; b=bGfI9kj3CZTol6o+lgvEzH/CoX/Fi6CJRb31Bd83dxz2Z3KP/sb3q0gBNLK+PJbBEd 1vwTvJbgLfXBat28uLAbvtDpyDp8SmdwgHOLOaR4EGhQ6yTNr6LRTHkHa5saoF7heyoY zjILu6llZQcJ95cUy8f8KOc79z8rqFfvYncBy4QjSj/f3E9f5Idwcygh3d/3DLqTs8vT cz+wkmwvXStfiMwZwoqYiCO0ycwaAcQVULrNcd2znIRJWX8rhOlJXsL40V8BktWgJl2W B4F2IeepslrodNDVXhzHiwVUl5mU2u2iesuaqvU6/1cjP1P93rjUh5vyYJazdjJk/r53 vuJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YYiDQv9k; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dx21si9179989ejb.627.2020.11.28.14.02.42; Sat, 28 Nov 2020 14:03:04 -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=@kernel.org header.s=default header.b=YYiDQv9k; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731556AbgK1Vvq (ORCPT + 99 others); Sat, 28 Nov 2020 16:51:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:48484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731614AbgK1Syg (ORCPT ); Sat, 28 Nov 2020 13:54:36 -0500 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1056421D7F; Sat, 28 Nov 2020 09:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606557535; bh=IV7SKkTEc9uVMaziNS3MY2bbX2PI+wASsFkaPqx7XFY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YYiDQv9kz4m3Kpob/hfPm4MKiHYe/aOK4W63bLieTTH4rlm+wPA0MmEWZXz33kBxq krhPvcxzeJoMQ6ewyc0CnEu9w4eUaiEiXt3o44rZPqjjW4GpmVl4zICkvuLvn7di6y U32a3mZA5cqfmCsJTIfURM7rqg4Pyh3eyaqf6+UI= Received: by mail-ot1-f49.google.com with SMTP id h19so6817308otr.1; Sat, 28 Nov 2020 01:58:55 -0800 (PST) X-Gm-Message-State: AOAM531md5B8MYK6aAaumsYtjyvHRuN4anFakQFqFjNQOS8bGz50lDtH pDF8lwbDBNLBg5mOozXEBK7MoD8/GO75DbbjpF8= X-Received: by 2002:a9d:be1:: with SMTP id 88mr9531159oth.210.1606557534394; Sat, 28 Nov 2020 01:58:54 -0800 (PST) MIME-Version: 1.0 References: <20201016090833.1892-1-thunder.leizhen@huawei.com> <20201016090833.1892-2-thunder.leizhen@huawei.com> <20201128045328.2411772-1-f.fainelli@gmail.com> In-Reply-To: <20201128045328.2411772-1-f.fainelli@gmail.com> From: Arnd Bergmann Date: Sat, 28 Nov 2020 10:58:38 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges To: 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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