From patchwork Wed Jan 27 21:11:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suravee Suthikulpanit X-Patchwork-Id: 8142971 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8215B9F9E8 for ; Wed, 27 Jan 2016 21:18:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AD1392026F for ; Wed, 27 Jan 2016 21:18:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C1A452026C for ; Wed, 27 Jan 2016 21:18:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOXSz-0000Bv-Ah; Wed, 27 Jan 2016 21:17:29 +0000 Received: from mail-bl2on0058.outbound.protection.outlook.com ([65.55.169.58] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOXOS-0003dk-BZ for linux-arm-kernel@lists.infradead.org; Wed, 27 Jan 2016 21:12:50 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Suravee.Suthikulpanit@amd.com; Received: from ssuthiku-ubuntu-lt.amd.com (165.204.77.1) by BLUPR12MB0434.namprd12.prod.outlook.com (10.162.92.14) with Microsoft SMTP Server (TLS) id 15.1.390.13; Wed, 27 Jan 2016 21:12:24 +0000 From: Suravee Suthikulpanit To: , , , , , Subject: [PATCH 11/13] dtb: amd: Add PCIe SMMU device tree node Date: Wed, 27 Jan 2016 15:11:59 -0600 Message-ID: <1453929121-12171-12-git-send-email-Suravee.Suthikulpanit@amd.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453929121-12171-1-git-send-email-Suravee.Suthikulpanit@amd.com> References: <1453929121-12171-1-git-send-email-Suravee.Suthikulpanit@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BLUPR11CA0006.namprd11.prod.outlook.com (10.141.240.16) To BLUPR12MB0434.namprd12.prod.outlook.com (25.162.92.14) X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0434; 2:+Co3zgw1nLJ1lPQdn5BPwU2Ex15z1KWN2k9Lm/AzjGVZ0MsO+p7SSvQ+GckXS+42Po/GSyLvxWD64eTPjM6voQyTNAYU8AFJch3Mj54Wq6xrSVNL9my18sDJP7GIgN4ghsvRII0/EsZ6Ipna89VrPg==; 3:pv+4QTLmc1fRgkU3su6jgYV5gPSp8SZeG7lZotOtT1iNBDQAYMhf+wqsFrXXFTmei1Bvoa9qlgEkFWaTOwUaymvz94haA9KyqBEV81dbhsAS/L9AGW2sAuBl6GNBHAwL; 25:j9Z4WqfmZGqrIljCw/3EhUMVMdTPE/h20z6yd4ca9fDlNuY2qZq5h1VY5PeDR12MR11LSg5CYXi2TCHiP7fDpyd2TctOKepSKmgv3yug2FBfcp6N+lwzvXS7vGetsn3vv4u8w1T5sqoFDicO0/n4bixDWzi3qHUKmzMc4zZkWhB701qWOuCit1cCgkCjo6DK5E21EOGODsm9Y18VClp39nMj8kZab4LijPzc9Nx3H1o0LZHJ5Jfw2sdrBYP/K0rM X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0434; X-MS-Office365-Filtering-Correlation-Id: c67184e2-7246-4397-4051-08d3275e8dc4 X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0434; 20:MZTlGpDeJmi+llzrrogauozCsnPVo6weI75PQpgF8pmllu32VX7Ibk1AOug0FatN07Qqvida4hlzyNXHvjsB3f4CjdObXJ69XdmwhFiYjda0LusbmjmmBIa3y/D/K6fWs+egU+QGJ4MhVfIJjeTsrNg7xmppHbkV3wDFB5siM1X+aN0PyH7+3MfSXlqOvd2GOzn3T04plSd3Q8RsPWsK4kwLFvnf+zzr6SnlYujdbA832vT47VM4UuNBcELUzYtybjU5Ck1vNOky8j/WoHcQjySrSHxedfTcODzgBzxfd+D6ML6FoTdzBibs+FIMcJygzEKJJIjsDWl1xqrkkvQT14gvY1FDPGNlPrh7JiuPOYRRqZpUnWYM2/zsaJDF3dYP9nFj8P8E4deE75uFI7YZgodkSouHKou/VfHKISLBGctwIBdQh1IF6a005W4LL61LG7Oq+erMfy9aZxh6jHTeQTShroD0B0uJacrK3Gf5mHV/see69HbJFyESdjSEvhEg; 4:0d6XF1/Aax/f8bHB/qmHifIXpf11pGjglgdPB/mi1ZfOw7rsx3ADUUkkChVmgxh2uHj6o4jiXH7g0Rg+5j2opr4uqRifYJ6LXScrbKdE36H2T3ZWS9wGsoK9+4St5kQMOlc4u7YEI4KI7TgOMlzNai1b3SuaEF5Jp9bj6E+T5FJo0tYWYMc1+creBUOtXAdj9eKOHMcE1gP09umMdmb2wb4CN68TIWy3tHNv9MFo4jWghYBy3t+tPZ6y39+4huSl8WDVYzFZSRcMgjLLLJqvMCS97nXn6HraJlbWzC/F4iOat6N7sM/FuGbZCJJ7YSuzVazolCkU/3x9kECiUXsZ132c6tL8sRS0POuVQVe0kv+QdT4QEYf5cZcP4epD7guyV3ECZ4DjVQRzizDR2PFtRyPWgjgn6tX7At8Jybc1VaY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BLUPR12MB0434; BCL:0; PCL:0; RULEID:; SRVR:BLUPR12MB0434; X-Forefront-PRVS: 0834BAF534 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(189002)(199003)(47776003)(97736004)(53416004)(5001770100001)(101416001)(586003)(48376002)(5008740100001)(5004730100002)(122386002)(42186005)(6116002)(3846002)(105586002)(50466002)(19580395003)(3470700001)(189998001)(19580405001)(1096002)(77096005)(66066001)(87976001)(106356001)(36756003)(575784001)(2950100001)(50986999)(86362001)(229853001)(76176999)(40100003)(5003940100001)(4326007)(2906002)(50226001)(92566002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR12MB0434; H:ssuthiku-ubuntu-lt.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR12MB0434; 23:x9CPaXMMJB8pg7O4/5jUWzG94/44Ha7TTjEtMcXVv?= =?us-ascii?Q?FukmwCHm5vNLns1uuKKGULi7En1uIQPD3gHoxhd3M/a/CSfw+iTfKCbhGGe+?= =?us-ascii?Q?/rULkpMF0XPXsYK7A57Fee+8vfgCvgMDjkwfTsReMt0OMXg74YLsyfJ5Cgew?= =?us-ascii?Q?jYK2WguhHE4Y+qGJLCp1Xg+C2QujDoQEs5q76QbHkuvD9cV6fD3Z68HKRdq2?= =?us-ascii?Q?SFgh6rxWGQFVYmg3PTO0cs4Vvf5tdAFHitr8+aYDZPZwAMr1lzXZsOlTzZdV?= =?us-ascii?Q?r1XmuS67culx/FsmEv/I/8+n73Q/eBpAfq8sW0eEPsC29y2Xbdlrv/cG/jxb?= =?us-ascii?Q?Qt+Ed/F5yZQsXyh0vEnTvw7ixWxPCfeZyxp2IfrKhH5G02aBQQxQpn3tUwET?= =?us-ascii?Q?m/Qoat6bit1s1ZIw9PxfBx1Tnu0WMyVusoXhVJUEIFc6cQu2MaQjWMRjjdOY?= =?us-ascii?Q?Aht1aHc/U+dysP59weLstzvNkz80d/zFh1BAVDw+k+xNnMqyXBOngDY96DiG?= =?us-ascii?Q?gf7rPqNezt/7qY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XzCZY+2d/ut040Q1dYsH6xZG+Gjldk9DTXaPptt/9Z9gM79OKT+O5byE8euG8q9r2kMbldfHNOyJKleAuw3L/NwyjVw7VJj30uhAECh+z0N46Alct64s1H7uDBKo8l7+fs43S+YUAVsVo+DT5 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2016 21:12:24.0573 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0434 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160127_131248_623230_D470FC97 X-CRM114-Status: UNSURE ( 8.25 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, brijeshkumar.singh@amd.com, thomas.lendacky@amd.com, linux-kernel@vger.kernel.org, arm@kernel.org, leo.duran@amd.com, Suravee Suthikulpanit , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Suravee Suthikulpanit Add PCIe SMMU device tree node for AMD Seattle SOC. Signed-off-by: Suravee Suthikulpanit --- arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi b/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi index a7fc059..bfccfea 100644 --- a/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi +++ b/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi @@ -210,6 +210,7 @@ device_type = "pci"; bus-range = <0 0x7f>; msi-parent = <&v2m0>; + #stream-id-cells = <16>; reg = <0 0xf0000000 0 0x10000000>; interrupt-map-mask = <0xf800 0x0 0x0 0x7>; @@ -230,6 +231,28 @@ <0x03000000 0x01 0x00000000 0x01 0x00000000 0x7f 0x00000000>; }; + pcie0_smmu: smmu@e0a00000 { + compatible = "arm,mmu-401"; + reg = <0 0xe0a00000 0 0x10000>; + #global-interrupts = <1>; + interrupts = /* Uses combined intr for both + * global and context + */ + <0 333 4>, + <0 333 4>; + /* Note: + * SID[2:0] = PCIe function number + * SID[7:3] = PCIe device number + * SID[14:8] = PCIe bus number + */ + mmu-masters = <&pcie0 + /* 1:00:[0,3] */ 256 257 258 259 + /* 2:00:[0,3] */ 512 513 514 515 + /* 3:00:[0,3] */ 768 769 770 771 + /* 4:00:[0,3] */ 1024 1025 1026 1027 + >; + }; + /* Perf CCN504 PMU */ ccn: ccn@0xe8000000 { compatible = "arm,ccn-504";