From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS,UPPERCASE_50_75,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DD88C43387 for ; Fri, 11 Jan 2019 08:40:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 111E821783 for ; Fri, 11 Jan 2019 08:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547196016; bh=Ir5LcYORTVmfAHbEccXx7YKVzz1BAY2oSkZeax4a+rg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=IAebjRZxm4LbWkaaFGcZN4MqyJwGan/HcUM31s5Vz9MTyCnyhn5sbdzMDxc0Kkc+P ZCj7utNQEE0aP/mPkg8OhPFJ0A2UKDp5d/djPE8E0o0xyhZrNG90m/x9PuxEYXO8aw tUYBYQk8c+vlK8dJaoEmXyCNCTUMFHCuYPUvID9Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731031AbfAKIkP (ORCPT ); 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