From patchwork Thu Aug 31 09:27:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Bhushan X-Patchwork-Id: 9931641 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EF0B1603B4 for ; Thu, 31 Aug 2017 09:30:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3C62288CD for ; Thu, 31 Aug 2017 09:30:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D84E8288D3; Thu, 31 Aug 2017 09:30:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6085C288CE for ; Thu, 31 Aug 2017 09:30:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=YVUFzxNVqR0ZVOG2vGChO+xSgo17k7E20qpWlY3WZ78=; b=m0GO+4svXsmk2J wb34SH273uzgfSenqgj+mHMJIS0ueN4kJ7h7mK5Pe5jNG4SrXBBqf4GCnkiRv93sSdy0dawdup5qf 3N443mtgdq62h403D7Kxefl8xxCHjKqwVOLkqPVw/hlyKZvmXGGWZjcCZ4ojhIGuf/cYqm1eQ/cZi 6Q823U2knK5mb80TNMfgtZShY9TCARVi78Hu5HenQKvM9MH95hS91fAOErgz3icrpt3hXRNStGBID GcY0CcEXIx5w0kAvncyqMy88NQTj/sYUfvCXE8UNZV/GVvyVnLbNdSOpCPslXKAUXaBnUAF4/BF8B QFN54fpTyjNTlexJwYQw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dnLnw-00017G-7Z; Thu, 31 Aug 2017 09:30:28 +0000 Received: from mail-dm3nam03on061d.outbound.protection.outlook.com ([2a01:111:f400:fe49::61d] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dnLnn-0007zo-Jo for linux-arm-kernel@lists.infradead.org; Thu, 31 Aug 2017 09:30:26 +0000 Received: from BN6PR03CA0024.namprd03.prod.outlook.com (10.168.230.162) by DM5PR03MB3324.namprd03.prod.outlook.com (10.174.241.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Thu, 31 Aug 2017 09:29:57 +0000 Received: from BY2FFO11FD026.protection.gbl (2a01:111:f400:7c0c::199) by BN6PR03CA0024.outlook.office365.com (2603:10b6:404:23::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10 via Frontend Transport; Thu, 31 Aug 2017 09:29:57 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD026.mail.protection.outlook.com (10.1.15.215) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Thu, 31 Aug 2017 09:29:57 +0000 Received: from localhost.localdomain.ap.freescale.net ([10.232.14.21]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v7V9Tqs3008604; Thu, 31 Aug 2017 02:29:53 -0700 From: Bharat Bhushan To: , , , , , , , , , Subject: [PATCH v2] ARM64: dts: ls208xa: Add iommu-map property for pci Date: Thu, 31 Aug 2017 14:57:17 +0530 Message-ID: <1504171637-15670-1-git-send-email-Bharat.Bhushan@nxp.com> X-Mailer: git-send-email 1.9.3 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131486453975938901; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(36756003)(50466002)(97736004)(53936002)(4326008)(50226002)(48376002)(47776003)(498600001)(5003940100001)(81166006)(77096006)(86362001)(6666003)(72206003)(81156014)(8676002)(105606002)(356003)(305945005)(106466001)(50986999)(8936002)(189998001)(626005)(104016004)(5660300001)(68736007)(8656003)(7416002)(85426001)(2201001)(2906002)(921003)(83996005)(1121003)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB3324; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD026; 1:KA06QI9uxazy4FosDS4lSL16gqOmmKxILnqGBnHujNoFbO5X4A5QHgeyW7M5p6tIz9gP1svQA4RwdMLoNgeFtjh3sJ2si9GBbWkprLOIljZquxt62GvSHp82ikByiGTW MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 13bb231e-eb86-41fc-f755-08d4f052d879 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM5PR03MB3324; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB3324; 3:fb/0vvUDR+IAGUWDZ0x2QOaCR3lN65e87HMTqVhKV+FnAIAZPVzONFYYuVTLdCupxYJzSH7YSfh75E830MYErhJy9Jo30YwLjNE1f2Sz+8VUvWcxSaBhw9Pv+6Sdb5nHcHpdWmrOwC4C3yeafYLyiAeeaMP9X33Srw9SPIbGNKwTMjQ+9qyp9Bd8kBS1P8EwkVjqF7yKbEYmRPO9r28K3m2tRoXvVDMXpZWVgTym/ZuuAd7nXQKgsjTFUak3Jwko3MyG446Orj1kSqRBDcqJS3RLYm0wtQgOrtNqJvr30NhBlqfPDF3sHrIavE90Z8zj4EfUwl1CAJr8hqaloobGtR2JO0cv83W791vK5YgwevE=; 25:XASuGN6HANv1q1czIcb3Y1OZFRj5Ow2AKbCVvNMgcKJMABLZ+JLc/xc30XnVCrrw4bkB6d0LHTpmttWRCEoWjMeY7rpdIv12dWNiU/j/LiWu7747YnakXwcV2pwMU6eTthE6YpQQ5cggqM6Bi6ky9lnmbb3AMlSn2JX0jlB3RLc+JQgDzuBwcyC/1ZaWCnzZbV70uXdimM94ml3y1xkUlzRRWuYHe/d/Mx9I7LsqAFnI16MnO5YEs+Xa6ldKxrThs0EFGX+BnqsRgdixGg8OZIbsdyo5wDhB+Mclp1X+O5Zd9Ffd/HGvObJHvtRtCp2UXszIyFwjOxzZDsDY8AECFQ== X-MS-TrafficTypeDiagnostic: DM5PR03MB3324: X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB3324; 31:671rMdN/h4hNmTPZ63GHkogP14JdIeDMnl8vTW4bvonZG/+Bei95L5sECDapG4NLvOrAZHRfs5OpIahLENIalgBVuZ6ydVB6EIReFMH6GpA7S5Ncnno8AJ2Cyehue+OoYFR3SqnIWgN21qZ/T1wwO8H1LwMuw1d+p2qTlEFcwWpJcp3G6f0YzjQk6J1dv/cDyWIVUIzsW2MfXpsn8QySErIj3Qb3rLj4YL+d6RQ+kpA=; 4:9eAX6wLxZWpJvGsAkIITQonB97LyL4fNn4qMBAiuLR0o4WnKmM2YZRHMIgf8DSEej6aArqovaBcKO2OXN0u2hQPEDyDt+wtShdgHRlsmPAbbXbnSv6itdQNRTfMd+WYmVJD/wB3dOlT2YqGD23pEpzNkLSeWUtQ2ByDqVTxUTZJYnBOdNjZDesU89UrXGxqHd6gCRjAI62vEv0q8TjA87rHaGmALD02zdcg3VRkmMlu89RFbQKDa0KWsvkaSVHccFqf2zsog2msxjEab9suv5Z9anOCxbNvXT2wMJwJ66Mk= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(13018025)(5005006)(13016025)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123559100)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123563025)(20161123561025)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB3324; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB3324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qziIplWALughsVMcWvX8R0uKP83EqNY6JkUSbFukvFVWqYZsmYAM2nb8cpYiqx2TYD8rZucH6hIglmrgf0gixkSsPSrusfPlVYdalSyr4srpPDPQbfMiD4Fc8NyvFix9WYK1azRFWTizZQcGasLWgYQCJWxY1TXh7oTNfiFda3pV8vYQyNkG9vwHPuDRYUvefpF1hx/v16WvDs3tjPVY+vOlDKFddNHN3wNKoko= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2017 09:29:57.3910 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB3324 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170831_023019_793309_DE62753A X-CRM114-Status: GOOD ( 10.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bharat Bhushan Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds iommu-map property for PCIe, which enables SMMU for these devices on LS208xA devices. Signed-off-by: Bharat Bhushan --- v1->v2 - Corrected "RM64" to "ARM64" arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi index 94cdd30..67cf605 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi @@ -606,6 +606,7 @@ num-lanes = <4>; bus-range = <0x0 0xff>; msi-parent = <&its>; + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 7>; interrupt-map = <0000 0 0 1 &gic 0 0 0 109 4>, @@ -627,6 +628,7 @@ num-lanes = <4>; bus-range = <0x0 0xff>; msi-parent = <&its>; + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 7>; interrupt-map = <0000 0 0 1 &gic 0 0 0 114 4>, @@ -648,6 +650,7 @@ num-lanes = <8>; bus-range = <0x0 0xff>; msi-parent = <&its>; + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 7>; interrupt-map = <0000 0 0 1 &gic 0 0 0 119 4>, @@ -669,6 +672,7 @@ num-lanes = <4>; bus-range = <0x0 0xff>; msi-parent = <&its>; + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 7>; interrupt-map = <0000 0 0 1 &gic 0 0 0 124 4>,