Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp433610imu; Fri, 11 Jan 2019 03:04:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN7kts0luucCtPPcwFgyDU5l28mQeZ9KRM4PrlltirokgPKkMf4OeqI9I1hnQi/bZXBHjJA6 X-Received: by 2002:a17:902:32c3:: with SMTP id z61mr14165200plb.114.1547204664425; Fri, 11 Jan 2019 03:04:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547204664; cv=none; d=google.com; s=arc-20160816; b=PfR58r2XVhCXefGcF0lZadFfNU52hStUK1wMvp/i1rDWjJzwb/5CCN6up7X8IQQv5t byH6B8ZRHjQPRf/5nca59mkJp8bisumxWDqhrhlolxJqCoWo+nOejdfYPLakQJj4fFFJ tRYVww4aO/ZaMQUm8xNjnqG/DnzmVncnjbr4SlHu2q+6wpaFSaiogZP5At3Jb18zeak4 NWoH57sjYcGaV3cDhNG33B2RhWgvL7vCeZsmDGuIKzcop61otWsZNaJdcZ0uToQ5b62K 7PiAP5Z/A32+Y2zkTVMODvb4Lfy97ZQzRjZ7qNoj65MdwTd9vDvwJnvfiJfziyFLm5IR 8JQQ== 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=l92La96gF40ZCRDJ26L90ZAGZRu/STy8GYFgoUPWQEo=; b=RNcAiJ11iNCL15Cj5zpcTM9Rob5nHETL5ysfe1+4d7Ln+O+MKebLBwmNprq8+yyQWT AYbW0/F4iqnSVKQcCxq+WX52zxKzbH0iHnHGLtVD8cR5qi5MljEKk4zyK72yUxNDvEI3 GR1Nkil1EYPzmWOMpN5a7r/zKOjcV6xWrxMcPbJp2mFjLb0xkgF39ucJEaHwwzQaNr3/ WnjpuZe0tFpIxaxchqEQnoMyj6RtsHgAMUuvKjd5tL2S2D1fLg4D+MbucL2cW3r/f8Ac PI7BfpzU/VBQobnwozBHBnq2Mb6MZJTTbz/+TdDpDGFJ48Tv+2XuznzzGSpC3RJwfslP QjOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y+K055ac; 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 b11si25975889pfo.240.2019.01.11.03.04.03; Fri, 11 Jan 2019 03:04:24 -0800 (PST) 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=Y+K055ac; 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 S1731023AbfAKIkP (ORCPT + 99 others); Fri, 11 Jan 2019 03:40:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:33332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729121AbfAKIkO (ORCPT ); Fri, 11 Jan 2019 03:40:14 -0500 Received: from dragon (li1566-229.members.linode.com [139.162.86.229]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B42CC20872; Fri, 11 Jan 2019 08:40:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547196013; bh=Ir5LcYORTVmfAHbEccXx7YKVzz1BAY2oSkZeax4a+rg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y+K055acjsd+osfRXd3VL20996e4HLNlZ6HN6nw/LRUcBUEPGBPIOqKxPsS5cXk/c /KjczyNv7WCwE6yypk3f1NBarYV8ZJOxqcP16POLGJF2z3FaqhKHn9n769P2MOQW4x Ns7YcMjyHsQGXXezHlcCkKL/YmEACwQPdnhy9qMw= Date: Fri, 11 Jan 2019 16:39:58 +0800 From: Shawn Guo To: Nipun Gupta Cc: Leo Li , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "robin.murphy@arm.com" , "will.deacon@arm.com" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/2] arm64: dts: ls1088: add smmu device node Message-ID: <20190111083956.GF32649@dragon> References: <1545109016-1779-1-git-send-email-nipun.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1545109016-1779-1-git-send-email-nipun.gupta@nxp.com> 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, Dec 18, 2018 at 04:51:58AM +0000, Nipun Gupta wrote: > This patch also adds the iommu-map property in fsl-mc node, so > that fsl-mc can use iommu. > > Signed-off-by: Nipun Gupta > --- > These patches are based over: > git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git, > as there are couple of changes related to fsl-mc bus in this tree: > https://lore.kernel.org/patchwork/patch/1021020/ > > arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 92 +++++++++++++++++++++++++- > 1 file changed, 91 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > index de93b42..dec0c2d 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > @@ -576,6 +576,7 @@ > reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */ > <0x00000000 0x08340000 0 0x40000>; /* MC control reg */ > msi-parent = <&its>; > + iommu-map = <0 &smmu 0 0>; /* This is fixed-up by u-boot */ > #address-cells = <3>; > #size-cells = <1>; > > @@ -641,6 +642,96 @@ > }; > }; > }; > + > + smmu: iommu@5000000 { We are trying to keep the nodes with unit-address sorted in the address. I move the node to where it should be, and applied both patches. Shawn > + compatible = "arm,mmu-500"; > + reg = <0 0x5000000 0 0x800000>; > + #iommu-cells = <1>; > + stream-match-mask = <0x7C00>; > + #global-interrupts = <12>; > + // global secure fault > + interrupts = , > + // combined secure > + , > + // global non-secure fault > + , > + // combined non-secure > + , > + // performance counter interrupts 0-7 > + , > + , > + , > + , > + , > + , > + , > + , > + // per context interrupt, 64 interrupts > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > }; > > firmware { > @@ -649,5 +740,4 @@ > method = "smc"; > }; > }; > - > }; > -- > 1.9.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel