From patchwork Mon Feb 8 17:59:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suravee Suthikulpanit X-Patchwork-Id: 8253631 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 33A58BEEE5 for ; Mon, 8 Feb 2016 18:02:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 62CC5203AD for ; Mon, 8 Feb 2016 18:02:27 +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 7D48A20380 for ; Mon, 8 Feb 2016 18:02:26 +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 1aSq79-0002BX-5g; Mon, 08 Feb 2016 18:00:43 +0000 Received: from mail-bl2on0055.outbound.protection.outlook.com ([65.55.169.55] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aSq6R-0000FK-Jn for linux-arm-kernel@lists.infradead.org; Mon, 08 Feb 2016 18:00:02 +0000 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=amd.com; Received: from ssuthiku-ubuntu-lt.amd.com (165.204.77.1) by SN1PR12MB0446.namprd12.prod.outlook.com (10.162.105.14) with Microsoft SMTP Server (TLS) id 15.1.403.16; Mon, 8 Feb 2016 17:59:34 +0000 From: Suravee Suthikulpanit To: , , , , , Subject: [PATCH V2 03/12] dtb: amd: Fix DMA ranges in device tree Date: Mon, 8 Feb 2016 11:59:08 -0600 Message-ID: <1454954357-8395-4-git-send-email-Suravee.Suthikulpanit@amd.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454954357-8395-1-git-send-email-Suravee.Suthikulpanit@amd.com> References: <1454954357-8395-1-git-send-email-Suravee.Suthikulpanit@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN1PR0501CA0010.namprd05.prod.outlook.com (25.163.126.148) To SN1PR12MB0446.namprd12.prod.outlook.com (25.162.105.14) X-MS-Office365-Filtering-Correlation-Id: a0f651bc-7f69-4a83-8c5a-08d330b19b5b X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0446; 2:QEBPU+HAxRWU2da66LzX1SEsecCGLpmu5oVh7nq3OG7j+gU5cGWORvzJB9HKOpn41GAfbKmYU/WT5mM4TBEBX3WKQlae+X0sT7fSbIG+2AxLZcc1tTiDWk/fg/3QXVOpccgmQe0BWg+BjeO0W+dQh1kWTz6dbEStLhJYRdD7+btsnlec5n7W0f3OVZSv4pyg; 3:I5geXvtwfUIr5qQgFV6xkCvPhmxft5WgTiOhVQU6+EqSiaWeksawwgx4clat97DjkBccKwsN9PZ94NKZi9ZADl7MeTrCi6pW1uryVCF9L7zJ4ZtsTjmFY8wRbzKJVc9S; 25:HOyvlzuEEDv3hepFQA3NwdewhTNUh/XyNTi49G6mz1Ez14ba1jlambpx5fstARhE1jUSEX0sUSro7fzWk9F2QlCo7+O8pnGcITixI23tGvd8Uj74w9/B3BhWverEEEDtYtJhzjKNVXXqV13RQnuRVGKQQPDKCqsgFAlh1BGTmB0ajWZGwsjlZK3KqxnqoCv8d4G4Sqv4kDuK43llCBNO2xk2DUBDaRekT1/kLPz80HPttEBW5D+nZgpyInMqswstRKmG6P/SNEqQPH2HG8rCYQYSTEsEEWnEM1eh1ANxXUTfu93pNjrw2NKFp7ZYcH0n X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0446; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0446; 20:lJx+3LD+unESAfKh1LzHF8emOEwY97TactCNe1N4RJIdvjfR/nkj91QGzJnwE6SpRQdipLXJJ/fWDQ7eJ8KWOe47t7qsqetQhccNlbWdnR89/Y5rSCUx90dEtK9kLAhl00FUtufRrK638/McTUuChz+5nNZh+7GLKqS9aauYwLXHD/YKEu/lLRsE6tCuOvIw0UlQJfahYTy2M2HFR81WZDU8ssL210AGgWPQlViEQ9KiwwaUIDL5LbqXYeguhllJ0cQyUnEm4ufNAFZsNpGbC8D93VMH/FnlmcNAnzLYi1A/bIyI4vA1s3kUBXwGvO2rvPqcfg2vugHJbk06FMw+QYSN35MP7j/sr/Gm+5aZdm8ZfC2ZGNYfDyTiIyAQywNjS+pLPBZyeUALL8LAEC6ZSz40teWkTt9kaM/0OIgy4HB2reurEy4MqerAtTzDqbPmcf6ZSWCi15XtjhCtn7eMg/ojvNKPMxBwbAxoYql+iTAmLQUiK8V0zBgSdoZck7G8; 4:pYii4qP+mLmypi+h7RHyDEoUQz3qF6HfmW89Pj3Uk4U1PimFITr2ySsOB1BQFtuCh+wFuqwW32H3PuWpwL0fnWRgko1s19h3dQsKiMPR1lRU5jndHZxhaVPQj6Gfut1Q0e4kaZT5qoz5GTLW9lz4VCoqYdYi/gt/lWDJmo9elTxoTcQF9+LIiIYQrB/HYvXGQOAEgdNAvFXsHWmu1R2RqYkt9zEF3YSsk1puL0MGbu85c/TEO52skoHZF2YWPUuCO3MmGHdKvGeduf3k/483QTMd8KPlOCq19C3ELhNefR5OK85t/8SpQba1Q2XZ7GEtw4M8LEpKtTMyOGIX0/LJaGZxaek1TWUqXHnUW9m6S2gSzD7Zb8TBZeADEupLHV9UDAW8cvjYgeYY66v2kscnrMM/+8roXTC0pQFukWxr1bI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:SN1PR12MB0446; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0446; X-Forefront-PRVS: 084674B2CF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(77096005)(50986999)(76176999)(19580405001)(122386002)(86362001)(575784001)(66066001)(19580395003)(42186005)(50226001)(87976001)(189998001)(53416004)(5008740100001)(5001770100001)(6116002)(5004730100002)(229853001)(5003940100001)(47776003)(586003)(3846002)(1096002)(40100003)(48376002)(2950100001)(92566002)(2906002)(4326007)(50466002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0446; H:ssuthiku-ubuntu-lt.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0446; 23:HmQru0lNYQoXF2zRecR37Pj0Kdi6U+Z3FCxdOBS1XAN4IWGcQfGZ9BvVjeGbPSR6b9aq1zBbdtgpBwp2LkLOeErs5NxZ4z9TP2xbuf1/RLEGLm4Y09/1LEm/ze2Vff91LHk2tC98Rl6VMafR/4vbpsCYJvuaw9z60KwMF6VIvY1DPXcvmrSWltRi6tvs7Go8cj4mNHVgsIOsQ7jHTNkAbK5Alf3qkVi+NtsEec5q1A/6wK2C555nT0niEzH5fpBoriMTZmaQRKH+YXmYiCcSKu64thcDTlfDqmN13xjeEUb9/6+MjGeMmno5nsZ3MKw1s9SshlhiobFQ3hB8mkJJzoLJkwwCiEHst0Blf/eUVCCdhEK+ZSqeDIRCPO6NqlLZRUul46nCGebuerrskeep5vaJPTbe1afjPgcNmesJIYge/V+m6+40Cp7ErHwgpJ99neN+3x3/lS+UB2g/IcsyXXL1ZF3JcMYcd8z/l/FWXynY3UMaxdzmDyKwNFKpUavEDSPKFJ/9EEC9ae7n4P8VIRgYjsjIF6SdD8es0q0IrVbPfXhnP5+R7hWlB6+RI3HoVymlFCSNX+IDYlx915Ufa3h5TfIGtb34Bg7zl3daohfgQi3L5GzeOXOr9rM/9xuictQbztFr4BcFU65timRq6803nSu+xqVkbE5/UeScEGxLuQJglhPQI4NREzXy62UTY37oTsD7g2hwIxSInX1WIisFMiA6f+pYTkz1sfksaCAOwUa/fb1kTmuGhoY3/XSe99r43RwOVgtHsIMoUuoyeM/nllRqdijBwCYR6nuMT4nC0GzNxeFs5/S4Jo4+amTttFu93XrZCEsc3kTilmivJqOrD4vfi/hiHrZQJmoRqFzzZB9ne0MvFO0P2iUsF4ZSB5kbVtZsaX2KBS9a9RKAfC4O0mQJLCf/WiBmlzeKhZg= X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0446; 5:BY7xV0N88wpF9LYxKpvsx12ykV3+uGzn8Wg4zdQtg6Z78CRoSLqXyMFTCeFiHUjaqFaOtSvC5O0hzy5MGtVtDBCv/tM2FhSGa7XjJbmLYvRokwBjx23Scp+5q5M54evlJM2WronT+PG0WeIWjITfIQ==; 24:jGdTkOoUp/dv+b4U8j47vh6nGABDCDELbrG+qczy4Oft1bgmNwXI60chR+l4SgT1C+ALOSHmB3PBhI3hJHsL0pebGdrorQFvCnfwwZX/O+8=; 20:jiRvfH5PEWPSlW4e8EckWSfp3CZvOzsK373hlWLQx3+HTzAaeUB/kuWJprxOqoSocWRE5pjJm/4hS+sSEbyOpSkILjcdLPuOiLnaCoB6QbwJ7SDVamTVcQQ+wmmaBVaxpOURKDevweM5XzdfiKO101SJLntCOSHWpIw4+5IceRzOJJCLriwA0kWxFWTJbNwlnTsN9K4ZTkHnN9K9rPrPQPrTjEtNG9VzlJDUY+QKojVNh4Do+YFpDgrXxobP/JY7 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2016 17:59:34.9902 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0446 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160208_100000_088261_A13D0D28 X-CRM114-Status: UNSURE ( 7.96 ) 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.5 required=5.0 tests=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 Fix DMA ranges of smb0 and pcie0 nodes in AMD Seattle SOC. Signed-off-by: Suravee Suthikulpanit --- arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi b/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi index fdd0c96..5c73117 100644 --- a/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi +++ b/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi @@ -55,8 +55,12 @@ #size-cells = <2>; ranges; - /* DDR range is 40-bit addressing */ - dma-ranges = <0x80 0x0 0x80 0x0 0x7f 0xffffffff>; + /* + * dma-ranges is 40-bit address space containing: + * - GICv2m MSI register is at 0xe0080000 + * - DRAM range [0x8000000000 to 0xffffffffff] + */ + dma-ranges = <0x0 0x0 0x0 0x0 0x100 0x0>; /include/ "amd-seattle-clks.dtsi" @@ -159,7 +163,7 @@ <0x1000 0x0 0x0 0x4 &gic0 0x0 0x0 0x0 0x123 0x1>; dma-coherent; - dma-ranges = <0x43000000 0x80 0x0 0x80 0x0 0x7f 0xffffffff>; + dma-ranges = <0x43000000 0x0 0x0 0x0 0x0 0x100 0x0>; ranges = /* I/O Memory (size=64K) */ <0x01000000 0x00 0x00000000 0x00 0xefff0000 0x00 0x00010000>,