Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4257706ybp; Mon, 14 Oct 2019 01:31:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHU08AmcYbyxcIhPiHqbyy0mlPIMlJDyxQvJNOkssAEMgFIksJ8CIesipkl65uDT13mGQB X-Received: by 2002:aa7:d341:: with SMTP id m1mr27206512edr.57.1571041891720; Mon, 14 Oct 2019 01:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571041891; cv=none; d=google.com; s=arc-20160816; b=wlLQmYs19nQbdIUYEsZLzL3XxEnQ6hyKrAi+zscdJE/UCck2ZsB1emOwDR8iDxjwyJ J9Wspa2wukwfbikJicP5FRkO9Ws5NpEjKpAtdsBEpGRZ6dFJy27+WaEVyMK2ZgiuNJDp jryJhPbIIRd2XXjNMy7E13GSRhDb7FfHuMhva9Brov2wzw7IlTsaY64OvMP40wn1VuIZ zDHbiduPYZDRJct++ZPNgEC1rtCXT6RNp5AWRsLMKYstHTyNW2yewJ+LIh7B7e2O/mbO 5agjFyI/Sd6/+6plLXTlK9OoRIJ3PzvLWJGfFf5dh4AIGUWfpP0RHtJKVU3mWMNe5hTJ noqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ml03vSrFNtcLBAZttU96rjE1h1esIc5dyS6mp7zCJfI=; b=frh41J1YVJESpmfGt5lgdezrt8HXKGXA1DUldLhYWGYRSQKhu7GTxSWMPOlesLSzSo z76B6fi0BNpc97rRJL64Yz+9zewfoDjo6/+VJLONSAO9wYbZUKdaLZTFbpU+I4EVCERw 7dKrFtmL4LzFAH2sW4x6WW+onL2NKGMagdVQDtdsfz00E2NQY6Eao6WOG0k/xgXpiCIF mT7zL4/azz5/eVIFXWs6yipkv/ROaef0HML2qJlTLrV7WU3YKrtjdhTWXODCywISPiDs TVfnFLZa2Nj8AyRy8GlU1fe5OzRSs/au6EV582oQ9luALjIcvD7KI8rDbYMzPnBTI2s8 YI6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=poW3FdOh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 34si11559569edk.26.2019.10.14.01.31.08; Mon, 14 Oct 2019 01:31:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=poW3FdOh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730442AbfJNI3O (ORCPT + 99 others); Mon, 14 Oct 2019 04:29:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:56478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbfJNI3O (ORCPT ); Mon, 14 Oct 2019 04:29:14 -0400 Received: from dragon (li937-157.members.linode.com [45.56.119.157]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 975F220673; Mon, 14 Oct 2019 08:28:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571041752; bh=4xRYNc1AsGeEeRyhMqeyE0eI5lZWBeRZlGnQlsC3iT8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=poW3FdOhnfzxFqeIBCD96TFK9ogf+8ey1lA8yG5SXAHL0D+X3YPBSgIrE4MospI+Z hb7zs1kMA8wdggiEu844GDKWPb4Rcib/9/G/2T7FwutmRJD3ym78J+PHMeoJEufODN RPspDY69Cl+C4TjFoM9KzAMs5IyG7dvkprUUGz3U= Date: Mon, 14 Oct 2019 16:28:49 +0800 From: Shawn Guo To: Nicolas Saenz Julienne Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, frowand.list@gmail.com, linux-arm-kernel@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, xen-devel@lists.xenproject.org, linux-tegra@vger.kernel.org, linux-media@vger.kernel.org, linux-pci@vger.kernel.org, Li Yang , mbrugger@suse.com, robin.murphy@arm.com, f.fainelli@gmail.com, james.quinlan@broadcom.com, wahrenst@gmx.net, Mark Rutland Subject: Re: [PATCH 07/11] dts: arm64: layerscape: add dma-ranges property to qoric-mc node Message-ID: <20191014082847.GH12262@dragon> References: <20190924181244.7159-1-nsaenzjulienne@suse.de> <20190924181244.7159-8-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190924181244.7159-8-nsaenzjulienne@suse.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 24, 2019 at 08:12:38PM +0200, Nicolas Saenz Julienne wrote: > qoriq-mc's dpmacs DMA configuration is inherited from their parent node, > which acts a bus in this regard. So far it maked all devices as > dma-coherent but no dma-ranges recommendation is made. > > The truth is that the underlying interconnect has DMA constraints, so > add an empty dma-ranges in qoriq-mc's node in order for DT's DMA > configuration code to get the DMA constraints from it. > > Signed-off-by: Nicolas Saenz Julienne Updated subject prefix as 'arm64: dts: ...', and applied the patch. Shawn > --- > > arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 1 + > arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 1 + > arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 1 + > 3 files changed, 3 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > index c676d0771762..f0d0b6145b72 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > @@ -698,6 +698,7 @@ > <0x00000000 0x08340000 0 0x40000>; /* MC control reg */ > msi-parent = <&its>; > iommu-map = <0 &smmu 0 0>; /* This is fixed-up by u-boot */ > + dma-ranges; > dma-coherent; > #address-cells = <3>; > #size-cells = <1>; > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > index 7a0be8eaa84a..fd6036b7865c 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > @@ -340,6 +340,7 @@ > <0x00000000 0x08340000 0 0x40000>; /* MC control reg */ > msi-parent = <&its>; > iommu-map = <0 &smmu 0 0>; /* This is fixed-up by u-boot */ > + dma-ranges; > dma-coherent; > #address-cells = <3>; > #size-cells = <1>; > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > index 408e0ecdce6a..3735bb139cb2 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > @@ -868,6 +868,7 @@ > msi-parent = <&its>; > /* iommu-map property is fixed up by u-boot */ > iommu-map = <0 &smmu 0 0>; > + dma-ranges; > dma-coherent; > #address-cells = <3>; > #size-cells = <1>; > -- > 2.23.0 >