From patchwork Mon May 1 21:30:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roy Pledge X-Patchwork-Id: 9706935 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 C0A40602B5 for ; Mon, 1 May 2017 21:32:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFFB5204BA for ; Mon, 1 May 2017 21:32:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4A97281C3; Mon, 1 May 2017 21:32:18 +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 481AB204BA for ; Mon, 1 May 2017 21:32:18 +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=jShVBCskcj1w2xFf4sG39u900mOlqrihSqS7Deimb8A=; b=HlV3nf8zEh0sn9 2K9L3Fft3qjlXu7HFpOAszevweAAMDCc2V9N/jhN6aBAV4ZyprP9dszpqTgYi/RdHykEjnqkdO0jz hlJhBUTllX50r/Gm49bTU/r/TjVtORtP/I9pXWDwPZ35MivP1a5uqYsfgs2mp+1x+P0U1qDTBbXSc D4SDou+LQkWfo4Sn2NT6j01P1ApSy6EG4+dYa5wVoTJpv4R/OWBphUKepFVxGpbfhNB26ZTeJfnBj mOaRYUi3Py+1WgYiwYI/BkE4OcwLY/UnmmX9TnFEMbV9K0ir5ypgcoKN0SWzLI70sCps3cnUA5G6x eooIeEqs/8oqieT7YZkA==; 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 1d5IvZ-0003QS-Iy; Mon, 01 May 2017 21:32:17 +0000 Received: from mail-bl2nam02on0041.outbound.protection.outlook.com ([104.47.38.41] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d5Iu6-0001XE-Pb for linux-arm-kernel@lists.infradead.org; Mon, 01 May 2017 21:30:50 +0000 Received: from BN6PR03CA0008.namprd03.prod.outlook.com (10.168.230.146) by DM2PR0301MB0910.namprd03.prod.outlook.com (10.160.217.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12; Mon, 1 May 2017 21:30:24 +0000 Received: from BN1AFFO11FD048.protection.gbl (2a01:111:f400:7c10::141) by BN6PR03CA0008.outlook.office365.com (2603:10b6:404:23::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12 via Frontend Transport; Mon, 1 May 2017 21:30:24 +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 BN1AFFO11FD048.mail.protection.outlook.com (10.58.53.63) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1047.9 via Frontend Transport; Mon, 1 May 2017 21:30:24 +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 v41LUGrd009537; Mon, 1 May 2017 14:30:22 -0700 From: Roy Pledge To: , , , , Subject: [PATCH v3 07/11] soc/fsl/qbman: Rework ioremap() calls for ARM/PPC Date: Mon, 1 May 2017 17:30:09 -0400 Message-ID: <1493674213-963-8-git-send-email-roy.pledge@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493674213-963-1-git-send-email-roy.pledge@nxp.com> References: <1493674213-963-1-git-send-email-roy.pledge@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131381478243747193; (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)(39410400002)(39860400002)(39400400002)(39450400003)(39840400002)(39850400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(3450700001)(8656002)(53936002)(86362001)(4326008)(106466001)(50226002)(38730400002)(2201001)(105606002)(43066003)(33646002)(77096006)(2950100002)(8676002)(6666003)(104016004)(54906002)(47776003)(2906002)(5660300001)(36756003)(305945005)(8936002)(189998001)(81166006)(50986999)(76176999)(498600001)(356003)(81156014)(48376002)(50466002)(85426001)(5003940100001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0910; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD048; 1:pdTBWXrLAVZukQFWqh2lRrul5kwxOb3LcQ23Jj8HSjuS72uL+nts5Gaa5YQ00a7aQ6gyO+WgR8xvzYnwd/vLOpeS62J7fd0h07dow2WZqcVrGjpMNIIyka4lydqev7pwAWAhbHo40jbtsCuaagcW01K/o3+CZI4GkdXRdTOY1FVLCWRDYOThK9IseIu2VGv812LytDoWUCmcNM+rjEX/Gse0m82R3dLydelyO8dwMllK6w0S3GcVdJvhsq6xR8F+QqZp4xSp8yVip7aqTJcdRyBHkahuaTj3Z9SgIWy2xFLEZO0hGaN/F6qP6o3MfLq6SP6Og3hOWgXEaw7xRlWmeFP6mzGCZe7/5HVYgFPxXTQFsdeTCo1pJ8XqCd67NFk1r8Bad3DrkMm4WeeQ7PgPMzUpp1uzQFS0r8XJ2KTbzTTE23MlrhTgOjkVqoAQM3rx+EKGWswNlyAgY1NH3uagRiamc3EAfqYAznFzFO6VwmBYRCFwpiv/tlWjhIpfTPv4upcrakYZXPeaW8NOD68f1BIYzY0aR0ijG1qDg4SntHufR6befhVJPlzi9Tu3NOS/ydANOVUFRgVnkgsbg38WNa9cfC/l1HsUXdlreLry1YhJKQlACHqMqFmzWgjIX376o1O6tdREwH06Ceb9Zoc55GOmH1ku+2/9JDB4Tv6nZ9xlfMN5EWoQWNG8astzQ/qwYNF20dPffEZ2W9G6xUPMtICk2uBvixLqWSTsO+J52szX2LS1qEC45uy8RVel3H3u MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 91251080-99e3-4b30-c579-08d490d9473f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:DM2PR0301MB0910; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0910; 3:IahLFxuxbkpoS+pH7srZSyWGBHh+23TN8KblzEvoN+ijZ34WE7T7k4j5enyFdzjJFMzoaq9oQKTLVr+p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Ou2lTOvoPMG8MH5ukiZ9gzujXTSTZRXaEn8gGwkLI4po7EZcbdasaXmJAA8qVcZ2R98cSWr6NESr/gRP3AmSP3s+1iR/6G1tE+7vw= 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)(13023025)(13024025)(13018025)(5005006)(13015025)(13017025)(8121501046)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123563025)(20161123559100)(20161123565025)(20161123556025)(20161123561025); SRVR:DM2PR0301MB0910; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB0910; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0910; 4:02XewVNlDlpswbHyoOttTMXK32XoEmgIbu88e7MM?= =?us-ascii?Q?LxblrkdFypXyNqOOWL6a27lR6WKaF+/BBoIjqOZK7xoUy3GfXlyhA5V0vOCo?= =?us-ascii?Q?sDuoeY8XjudJ8G+EZuiD0gUQN9hz2DRLZX+OCW3CG0v5E6mFoZFW+OkRLUeV?= =?us-ascii?Q?3TW+P0tjq2mLHtPN3g2fqetSxgdm7O5d3PBukS/nxSJSjRyyvRNML+8i+Jtt?= =?us-ascii?Q?vASPxklmOI1WCiuT5NQvTDRr12on1Lty7VCe/cnjgBVP3goUzWIg89MbRAS9?= =?us-ascii?Q?+yC9/DlBs6pgN7reNXcsGXLGxY+QB/7bOQPkmMpZLKpPPb+gcO25g4TrrhJ+?= =?us-ascii?Q?DYmYy32MsbjKy0cBUcvM9bJ3OxpEdQXco5scxLRg0m/0z1hdASWLoRcDgU2u?= =?us-ascii?Q?w21qhpvZvxqut/IVPvnWUGUi3PL0Ih4swBk0wnYjHoGA2JgEkW5UdhKE+LSo?= =?us-ascii?Q?685+BiUX1gpt5+hZl5kTXWqfg3345HfzNF1iaSsN/xk4Esi+oW+i3YUJTCQh?= =?us-ascii?Q?Q5jtwHGuhqDYGfkWd0JzZtKwnTvVu9CV6XieunlG9w4fEu8ShFYgYYVkakRD?= =?us-ascii?Q?pcppdOc20BJGBiijfDoqLfo+Q1i4tX1HauMrN981hENoJkTy3nw6hTgUg51q?= =?us-ascii?Q?vpZRgLGxi8B+m7GGkedSg7hYlriP5ehKRC/BPz+RxlcQ2bcR8HiGGvpQyGRs?= =?us-ascii?Q?VzsVN7NAAmt5gccGE5Ygcx7FAABFK7nUGDmiol5G+blS11e5PGbyjDrNaoVs?= =?us-ascii?Q?tSAk7MZKi3uYgzcHYTMDiU+kr42a4qVa64H4UjvQHR3OaeDN+UQ8iONQE4Re?= =?us-ascii?Q?CG6LBhLQHTXK4TjaGkHX0+vJMSVaXznjHf4ciTyUhTwI79vlw8d6b3o1w72o?= =?us-ascii?Q?eHpoI0kr72JAK6mUwNfOrFElNPnvtnhsLR3rOnAgsWo3JvU4t82qGYg+SttU?= =?us-ascii?Q?hQzJOVjnt63g7Ty5dtilok7YNmu1B09xi6W3LvRtubdIYNzTG4uL8ebB7h/Q?= =?us-ascii?Q?8h7q3/7Gcx9Vf9hinyTDpkpo?= X-Forefront-PRVS: 02945962BD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0910; 23:Y4pn7rpZdJRG2J70SdQghOXSxLK3nN28GxiERW7?= =?us-ascii?Q?+LiYSCQ6vG8JY0G0N/35SHcxBF8sHfnJZMLxfM2x684iZkI0gxmnkSzqQdbz?= =?us-ascii?Q?oIeo9beGecmJYC7RJqNpSZWd4j6Vg44nPK1JsQTAnj2TNZ/b/XZQu18jzr2R?= =?us-ascii?Q?LG0nuU2G0WyNOiWDEjOedGGUbTiU3GuiFVB1+IldCzO96DrxfjJjXxvCGO+C?= =?us-ascii?Q?LJAGY5X0j9uS45AYmO9gHgi/1u/5XZzgoHepoUmJutbR19AcD/I8uRYIhJIp?= =?us-ascii?Q?mOSJWw5SZZvPZ+Mkhkz2+wFwONF8e4L21J6LK2lQhUXNBNEhKNCIX5oYlKkj?= =?us-ascii?Q?INrdaAkjRUFYIQN9OJFD0YrGMAgKRxXD3i83yepPijfWf+Z00nfYroj6jX3X?= =?us-ascii?Q?O48cGvP95EznkLm4HW11fBs20/EwZGTea6maaGdHCdCJ0kRemROOkUSBaGx0?= =?us-ascii?Q?M5GVf6yiO0fdcSnR52bchufDFO63EmnJ3zrL1fpe5xQ8fgCfcatavuSPJUUI?= =?us-ascii?Q?Lt1s8XbI56br62RqgKt2eY07/wwZDMKgtsuMVKq+fGwm/Rs0VzCx6XUi3DYG?= =?us-ascii?Q?93Z7hXcflX2j810awU3pubcL2Rf9U4aP/m+9iuNubeS04SnwJ3w4j2hSuyD8?= =?us-ascii?Q?ioEbB+631wW945lat//nen4cTgmrfHNBPx2QVR81aTIJMdm4Ew+JZhdMyxgI?= =?us-ascii?Q?TFR1fXbbgjPNiH2P7QceQjj3zYyNf3aXRYPHfiK5bePYS3nokYnDxBVAupAw?= =?us-ascii?Q?B0KGb1wkFCb58deDbucJBkYxLgK20CXTEC94T0gLTipim2iEdiJ5QFSDpH0B?= =?us-ascii?Q?r5KuwARq76ZjXUzJOP6B8yeRNCrRHy8Z3wwtz5EqXQEizmbwzsuLYF9TXZPU?= =?us-ascii?Q?Jc76635+hllGD7QrrGo5tvOGYeBxg8WaQz4oa8/Xe06mPQEtMtaJTUCMutU3?= =?us-ascii?Q?O715dX19uLQEDGUSW81KUZvEUpI5H2W66paKNp+ik43q1lYx1hY84ZJ9cicd?= =?us-ascii?Q?I99RZAI5bceiUO+a0wp1zI5CqqPeXbgoUEFxGO4dtey7ffbaa5PPNwSMh099?= =?us-ascii?Q?y1YJju+ft2aJt6tEIA/w1H6QyD/W67mzQlQLpAU83bIBKu8KdJ2rNYG7IZmE?= =?us-ascii?Q?y+u3oSZIB6ZB8iiWVDWCFHNtT9tjIiTfmb/woKDEIfWv0DFlKxDDb36gVqus?= =?us-ascii?Q?5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DiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0910; 7:LWXkiGUgZ70T6vj4y9oLmPT8X8LbrD0ieRRKw1AVCBkhgnS1dHwsf36XSz52J4QeRdNSTV9V5/MCUEy4PVM+bES6iTrNOqNT1UkfWRiRrRdtqX9i6Tny7b3Lk0Li5wzAnSUKVoXYUTc9FdBiw/+cMZjqy/I4cfcHSrXoRpDCgAD11FmPyUNBHFG3PEMkPkcEzJxF+27phciZfcyD5po2NmicJqrzesqJsNPoyi4hGWC0UVUC0NE9Yl04wC/AXzXnOAoBc4f9pduFlBm/D0X/HwPDQgwkZicGgHJ7L2duNV5+Ime7SaW+2HR2uFhLIIYNj+2RN+Xr5AGZRtHpmzcSvw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2017 21:30:24.1407 (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: DM2PR0301MB0910 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170501_143047_368638_D2C98457 X-CRM114-Status: UNSURE ( 9.84 ) 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@nxp.com, 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 | 12 +++++++++--- drivers/soc/fsl/qbman/qman_portal.c | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/soc/fsl/qbman/bman_portal.c b/drivers/soc/fsl/qbman/bman_portal.c index 8354d4d..d37f563 100644 --- a/drivers/soc/fsl/qbman/bman_portal.c +++ b/drivers/soc/fsl/qbman/bman_portal.c @@ -125,7 +125,14 @@ 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. */ + 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 +140,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..b5463e4 100644 --- a/drivers/soc/fsl/qbman/qman_portal.c +++ b/drivers/soc/fsl/qbman/qman_portal.c @@ -265,7 +265,14 @@ 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. */ + 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 +280,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;