From patchwork Wed Apr 19 20:48:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roy Pledge X-Patchwork-Id: 9689041 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 A377760375 for ; Wed, 19 Apr 2017 21:24:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91AFC283E2 for ; Wed, 19 Apr 2017 21:24:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84AA628437; Wed, 19 Apr 2017 21:24:31 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=unavailable 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 12CC7283E2 for ; Wed, 19 Apr 2017 21:24:31 +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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1jaToP4MWBpzXvoV1SVrsz4JmdPMVw919g5AtMQ8vWs=; b=sfoCdN5nzIsA2b imChph3JN/gf7ru/cgVOSTOOPMteeEdwF6CEoPrCrsvvoQnNAgeOP2HFf94+wYorwec0B5akccGSy +jHgVKHWoxnXUJaeE2EHS8rNha1MdxMoZHnRmhr/pAfk0Src4+YaXPdHrcmjVvy4lbiWXjqNVxYDE WLVjvi/9wwdu0ZnYUSk85BFjTxK9BO4UEqrQls4/bxxvyvfaxzPdPEieh+eh5E39xtVtn78MU+fob +06VaaknrQSReBjrRTxg42JP0oTBUKokeS0YLos8retx5m6UydgFvtmFAbGx2x/Hb++PMXmSA3qLE I46tOCQ+yi7ZjubgS9jg==; 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 1d0x5S-00071f-MJ; Wed, 19 Apr 2017 21:24:30 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0x4s-0006QJ-M6 for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Apr 2017 21:23:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:Reply-To: References:In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jqK0HA33UeLDPJtcmWyPqpVS+3aaPoJEeZWUZ0RlJLs=; b=qmy16cdZyxk2RPIYgrrCy5m+L BNYyBTRE7D3g1JgSTA9+L/b0c8e98bOTYeJAW926BopzE42YiR1eUPSM0yOJxsA65eQoqL9QW+PCp p5MJBoF7zPAzSklpZjEbtixiLmLqvuJO29MH8A9S4wqGk3z6SU2UVupnmIoEGbcLBRgkaxTkxxJHc M/fRWw56y61TW8Uv7r18nZxvEXYj6mOX+A5VnYXt0lu37Sm9SltPh5DrLI+ZslpbEXp/at49V4rg6 DBvoO7EM4c++UuaI2MoOTyAKAXkaSbV+961j9VaG/+7HZ0MojdEUIND3kgwz+0UUvH1dNDXHRU22m 9mYw5G9Kg==; Received: from mail-bl2nam02on0051.outbound.protection.outlook.com ([104.47.38.51] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0wXh-0000lt-V9 for linux-arm-kernel@lists.infradead.org; Wed, 19 Apr 2017 20:49:39 +0000 Received: from BN3PR03CA0055.namprd03.prod.outlook.com (10.167.1.143) by BL2PR03MB243.namprd03.prod.outlook.com (10.255.231.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Wed, 19 Apr 2017 20:49:02 +0000 Received: from BL2FFO11FD046.protection.gbl (2a01:111:f400:7c09::179) by BN3PR03CA0055.outlook.office365.com (2a01:111:e400:7a4d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10 via Frontend Transport; Wed, 19 Apr 2017 20:49:03 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD046.mail.protection.outlook.com (10.173.161.208) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1019.14 via Frontend Transport; Wed, 19 Apr 2017 20:49:02 +0000 Received: from otc-sw1.am.freescale.net (otc-sw1.am.freescale.net [10.29.200.182]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v3JKmswo006946; Wed, 19 Apr 2017 13:49:01 -0700 From: Roy Pledge To: , , , , Subject: [PATCH v2 07/11] soc/fsl/qbman: Rework ioremap() calls for ARM/PPC Date: Wed, 19 Apr 2017 16:48:46 -0400 Message-ID: <1492634930-10765-8-git-send-email-roy.pledge@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1492634930-10765-1-git-send-email-roy.pledge@nxp.com> References: <1492634930-10765-1-git-send-email-roy.pledge@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131371085429934519; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(39840400002)(39450400003)(39400400002)(39410400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(9170700003)(105606002)(3450700001)(2201001)(104016004)(305945005)(54906002)(43066003)(33646002)(36756003)(81166006)(47776003)(8656002)(5660300001)(77096006)(38730400002)(8676002)(85426001)(53936002)(4326008)(106466001)(8936002)(50226002)(50466002)(50986999)(48376002)(86362001)(2906002)(76176999)(189998001)(356003)(2950100002)(6666003)(5003940100001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB243; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD046; 1:Nln46HXvreHy2hcGGBln7/0epGNtPE+rMtM6gwYSAhb91hPDQX/atjHK6sePfDziSNu5QOH717y0jWNkhbbNmZN/6f0AvfkgH1aqNPEg9Cb31l2QpO4HB3auB4X68jwDldFER97cUpwTlw/2Ms5ccnA5yBWLXRPd6anMoajNb7fyJ8gG8t9/KjxgMXZNwqHB0V/dgIsVO2FWrEHOrtnnErCFIa+JZAT5zJ5fMof7/doKFHwfAUvmQbIIt4e45w3Fqe1jlsg4CE8yQjDJpxRNimXLf9ZJsH8YoagbAOgfkNOu81tZgYWwwzYsYfKWJSvrv5TYariVjgboValkSjDhME+XQstg602JCpjLt0XTDICLd08Fc/F1vPL5tTzbEmo+HseUVAI4wiJaUbzYs81LamZdcWifvYrUQh8KXLrWcK/K9oLUhIk4zY2ox2oAaD12OuiPKAgTvOFxx0d+96YkgroC8x6Skz7CafvUqiAUzWWi3h/Qv9GyFNveojR9DOOwexuS0INcXq4g0T30a04SvHuzJ6s53HrHyXYwtXYwEicMoXIsS+ULeh5zAxy2EYrfgVNomBaJtqUFClCENKPSr2yHjSTFvPkCgKBL8I5eAavokUoo5cKKQwY1JJiNQTT2iEuXQVTImeez2aMmHK+4MgxdROB2Q9L9t7Vr/wbwg/ZVJ6tNRfDkRbIq2xYGipvhZyYxVb/F5xgASrcY1mtyruFcuTYBbqRMCy/fc3n1GQymASOhVtRe2b4BOQIU/0lJ MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 83f51234-240d-4067-9d60-08d487658330 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BL2PR03MB243; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB243; 3:jG7DYEs+rYAiufJEzo6ibgzxqw5ocj5qQEK5MDRxlnvxEUGChwCkdC5238IZTaLahGIW8/UlcAWI6ClVdhepjFo3lutrFW6HjRjiwNrW1IfKJpd0oal0Nr/hbDto5hwtI/isdeZ08qQWK+9MDE5tjvW9XHCYN/vVzcuNRarfbRhhZtxdTDQYM2IT5c02bBW7PIMzBjhdrSOgsX5522bnvHO54pnLJjmhSysvmeI6kuAYA0YQIeDUGyd2qYqKtDugotEsGPrYmoj3l7K6eaiV7uICI5VaCIBrXBni7/W3gphsKi4d6bgshgIH3dVGxsLyyEaoEsJM3S7IW+TEGtbZJF5X4nX/spIl0RvUqKb/mDLM769gdM2k3T0maKOG8zqBsTuWq0aCdFyHYT3F7WV35XWW5jn4mEHoWPibDR889Xp6C5UcRH2fHjHMbbcYLzX9; 25:JdiSRqdEW8EISJH+mmSnJHP5lQnO5jVzw4eVpwBXN77h78qGRix3lTXhsfZa1Mmo/MizrdwI+Kke83GLQI/JhBpWJhvcWyPjht7zet0tNdI0htR6pUjIGHbsMci5JxNgLRy0UKKaSD6Mtd4UzPxN2KyOt/+6ztt/krs3QGsMLQ3gGyVMdyLBshlQdZpu18VfLzv2aiWcAL6N3hPasW3AuHFOL34VT+5WSV7jmNpkSEBwqplQhN0BEx/lw0L1HySJlIpotUjdUFJ1RrKloVO6Hl0aLwKR+e7/ALKzErub6UlnqGvvuJ2vrZTYlP4Cd5OB5lz2PTmGZ9kByMcRJKqVaLkKfCQE9WPDWRR9Wdd5j+u9JIktxYBe2Jc7yLBSvJAXgQjWlwoVUqOeX5lPM7TJJPJ/Oqpnl8RjMCizzGjyC9Irmi3SkB3ATVsYA6NR+QElC7Pfhswhh8V4HqCnV9O3Cg== X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB243; 31:w4jlxACwMoSUAKRv7+q69dB4nV071GRG2XLtYNmP++LG+e+cnuJXghiFKakBGe0rzbzVOnntmW9eDH76BmCNrkWU/jI+iXaAQulSpDmwmCiX1g0xTWqSbwsBluPdAZbfrS8YgtKozW2Top8HvwQyXkqSrdqw+b45jkklIf7nHXoasjs5/jhzQcVBs1/QEORGvAdpQwSv+ZV8qRIWmt3qeu8xGUEAFnawqA7/eB7YZfm69dwk3T/1TFAQsTMKOYnkGmvAiSNI4kRzaKlfW7xIvA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13017025)(13015025)(8121501046)(5005006)(13023025)(13024025)(13018025)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025); SRVR:BL2PR03MB243; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB243; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB243; 4:qBLBcoF4SccHpzZvqQe8uf5Bm6Q4N1geXsB4+gPcc4Y?= =?us-ascii?Q?GHRD3bubxcFdSzF7k2cZhZZ1JzurxK6kYQa1nBfILoS15ZXZQef1My4tSvBM?= =?us-ascii?Q?O/SHI620/50kyiDn5DQVTo8MIe1qsUR91vk2CxcM4uC0HTvonJr9dKPVw+WN?= =?us-ascii?Q?XnwdZNw874UXndLxzMS1FOY1O9O6+8GrlpZAtc9GwKwlbi1tEvb+/sMEuPb5?= =?us-ascii?Q?+boDe0uwf997VanmLcfxc7/Svjs/W66XWNF2EcQ20pXIFRyNsWdQ5hx/Bt7e?= =?us-ascii?Q?Uc6JaVkLYINA3Kpz1ckXy6DdaURO3nCCIRNUIMK3cqT/flnHMEaeM2BPYfEC?= =?us-ascii?Q?j1/mG+Y53sTCEPrNdMcM3TtkHhwraBBC7obQtBOJrZu/eZ2d4cgpknCcuXJ7?= =?us-ascii?Q?Na/4t3rWIx/0tyMQJVKD6AwoaGZsOYdid+jLctLEfiE9fqudXT6X+J++1Kln?= =?us-ascii?Q?zEYlx/xxnsrV4p7+Uyk5oxIYfsGfNe86UvhVySDnzLTp2Refd2oN1RhEcPSc?= =?us-ascii?Q?qlkCD2J/aOAu7oDPeiu05AR8FSZ1H7y437wtMBUKCqPPeN7XkXwWv8mbVyAl?= =?us-ascii?Q?oNopA1UuUq6hW8AqASvNOEaPoL8fZTOLYgpinzyRZktPLv6qqSSfNBBdNeQH?= =?us-ascii?Q?zxHeHQQpPxrXN+gdqUw8GYN8y2AfdXD5ztAY2S2MuCY8xTUcjHHWbsvqaVf7?= =?us-ascii?Q?eag8D1OKuOMQ8Zn4qx+RE6EgXqgWfyCNLWKb5l4HbQKZv8zfX1ytRbiWInMi?= =?us-ascii?Q?oxdtwtyTNsjI+0Nwy85nSeGnq8u5ukaNFcG3o//OxCTFjYsIg6AHHrQhrdbF?= =?us-ascii?Q?J7ibSBwwF2f3ijDig0FLUU9OTJ3H54VCKs37qZnjts7sdWXnpSmIfzOYDCbq?= =?us-ascii?Q?RLGD9o8hI0Uv28enWeiVKSWzsYakyI7/7QacFAVQWC5Sr/8mMW1cprhpYeUZ?= =?us-ascii?Q?0FJqV4mV3Pjw7YkvgH9dFTlSy/kjh+oqxHjR0Zw=3D=3D?= X-Forefront-PRVS: 028256169F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB243; 23:cmCT1cShfWAp2sBbHky12FDOW56c3OF2OiuTwBLGcb?= =?us-ascii?Q?KTTWeRk7+75HvCWhp6TM5Qx7Ck42Nfn+Uq/Ai7K1dr/B2SyMU+jl6MbZUXs+?= =?us-ascii?Q?kpEzvyZ3GH2XxRody1SjBessVREkBaqmVPGYBQ02TfGnMW2yPym1UX+ikm/O?= =?us-ascii?Q?tpRb90TAho963wXZYyh9N2wMscmMfJJNzGj5hUdopYSx1YetbAGHrpmJUGd7?= =?us-ascii?Q?krvFtvZLJKyx2kNbpSfA2ffEF0FApOtmg3e3uaBAhMHnc5hdLdH0i328f/43?= =?us-ascii?Q?swJQdseb/DrM+zAIcQzR6XZX43qT+3VkbSY/1Y2Wvit6fcNbtH4KdlMqyg6s?= =?us-ascii?Q?mwNdXQnJPmeZir5Ys5oo2rhPlTMTaqClYI4YCXDacu1JvTpBCw9hde/VTyBB?= =?us-ascii?Q?a+JqDgRcme+IlB3NnolbPBpOgxJRBJuUh2YofB7cIJPOyzm83YNhQ2h65KoE?= =?us-ascii?Q?IbPKZPQF0F58yEvGTyPxpMZpK+1N7mxKM3go6TEGsYEZFDNB0HV1GiPsmNx7?= =?us-ascii?Q?oOLDBmZrYjKBlVvtS6DuIQHI9akBDo22ezoDfMsq4D/PY7z9eJMVT/T5c0HW?= =?us-ascii?Q?iA0L+x/R/1u7AvywEZ0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ant-OriginalArrivalTime: 19 Apr 2017 20:49:02.6346 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB243 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170419_164938_059431_CB0589F8 X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. 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: , Reply-To: roy.pledge@nxp.com Cc: Roy Pledge , madalin.bucur@nxp.com 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 Rework ioremap() for PPC and ARM. The PPC devices require a non-coherent mapping while ARM will work with a non-cachable/write combine mapping. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman_portal.c | 16 +++++++++++++--- drivers/soc/fsl/qbman/qman_portal.c | 16 +++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/drivers/soc/fsl/qbman/bman_portal.c b/drivers/soc/fsl/qbman/bman_portal.c index 8354d4d..a661f30 100644 --- a/drivers/soc/fsl/qbman/bman_portal.c +++ b/drivers/soc/fsl/qbman/bman_portal.c @@ -125,7 +125,18 @@ static int bman_portal_probe(struct platform_device *pdev) } pcfg->irq = irq; - va = ioremap_prot(addr_phys[0]->start, resource_size(addr_phys[0]), 0); +#ifdef CONFIG_PPC + /* PPC requires a cacheable/non-coherent mapping of the portal */ + va = ioremap_prot(addr_phys[0]->start, resource_size(addr_phys[0]), + (pgprot_val(PAGE_KERNEL) & ~_PAGE_COHERENT)); +#else + /* + * For ARM we can use write combine mapping. A cacheable/non shareable + * mapping will perform better but equires additional platform + * support which is not currently available + */ + va = ioremap_wc(addr_phys[0]->start, resource_size(addr_phys[0])); +#endif if (!va) { dev_err(dev, "ioremap::CE failed\n"); goto err_ioremap1; @@ -133,8 +144,7 @@ static int bman_portal_probe(struct platform_device *pdev) pcfg->addr_virt[DPAA_PORTAL_CE] = va; - va = ioremap_prot(addr_phys[1]->start, resource_size(addr_phys[1]), - _PAGE_GUARDED | _PAGE_NO_CACHE); + va = ioremap(addr_phys[1]->start, resource_size(addr_phys[1])); if (!va) { dev_err(dev, "ioremap::CI failed\n"); goto err_ioremap2; diff --git a/drivers/soc/fsl/qbman/qman_portal.c b/drivers/soc/fsl/qbman/qman_portal.c index adbaa30..e7a9eef 100644 --- a/drivers/soc/fsl/qbman/qman_portal.c +++ b/drivers/soc/fsl/qbman/qman_portal.c @@ -265,7 +265,18 @@ static int qman_portal_probe(struct platform_device *pdev) } pcfg->irq = irq; - va = ioremap_prot(addr_phys[0]->start, resource_size(addr_phys[0]), 0); +#ifdef CONFIG_PPC + /* PPC requires a cacheable/non-coherent mapping of the portal */ + va = ioremap_prot(addr_phys[0]->start, resource_size(addr_phys[0]), + (pgprot_val(PAGE_KERNEL) & ~_PAGE_COHERENT)); +#else + /* + * For ARM we can use write combine mapping. A cacheable/non shareable + * mapping will perform better but equires additional platform + * support which is not currently available + */ + va = ioremap_wc(addr_phys[0]->start, resource_size(addr_phys[0])); +#endif if (!va) { dev_err(dev, "ioremap::CE failed\n"); goto err_ioremap1; @@ -273,8 +284,7 @@ static int qman_portal_probe(struct platform_device *pdev) pcfg->addr_virt[DPAA_PORTAL_CE] = va; - va = ioremap_prot(addr_phys[1]->start, resource_size(addr_phys[1]), - _PAGE_GUARDED | _PAGE_NO_CACHE); + va = ioremap(addr_phys[1]->start, resource_size(addr_phys[1])); if (!va) { dev_err(dev, "ioremap::CI failed\n"); goto err_ioremap2;