From patchwork Wed May 4 17:16:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horia Geanta X-Patchwork-Id: 9017021 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@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 D9A80BF29F for ; Wed, 4 May 2016 17:16:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E8CDD203B4 for ; Wed, 4 May 2016 17:16:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB671203B7 for ; Wed, 4 May 2016 17:16:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753145AbcEDRQt (ORCPT ); Wed, 4 May 2016 13:16:49 -0400 Received: from mail-by2on0067.outbound.protection.outlook.com ([207.46.100.67]:12896 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752759AbcEDRQs (ORCPT ); Wed, 4 May 2016 13:16:48 -0400 Received: from DM2PR03CA0026.namprd03.prod.outlook.com (10.141.96.25) by BN1PR0301MB0705.namprd03.prod.outlook.com (10.160.78.12) with Microsoft SMTP Server (TLS) id 15.1.485.9; Wed, 4 May 2016 17:16:45 +0000 Received: from BN1BFFO11FD018.protection.gbl (2a01:111:f400:7c10::1:145) by DM2PR03CA0026.outlook.office365.com (2a01:111:e400:2428::25) with Microsoft SMTP Server (TLS) id 15.1.485.9 via Frontend Transport; Wed, 4 May 2016 17:16:45 +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=none 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 BN1BFFO11FD018.mail.protection.outlook.com (10.58.144.81) with Microsoft SMTP Server (TLS) id 15.1.485.4 via Frontend Transport; Wed, 4 May 2016 17:16:44 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u44HGenT009683; Wed, 4 May 2016 10:16:41 -0700 From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Herbert Xu , Benjamin Herrenschmidt , Paul Mackerras , "Michael Ellerman" CC: , , , "David S. Miller" , Scott Wood , Alexandru Porosanu , Tudor Ambarus , Cristian Stoica Subject: [PATCH 3/7] powerpc: add io{read,write}64 accessors Date: Wed, 4 May 2016 20:16:38 +0300 Message-ID: <1462382198-11985-1-git-send-email-horia.geanta@nxp.com> X-Mailer: git-send-email 2.4.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131068558047472523; (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)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(229853001)(19580395003)(2906002)(11100500001)(47776003)(8936002)(2870700001)(104016004)(19580405001)(106466001)(86362001)(6806005)(33646002)(85426001)(50226002)(87936001)(92566002)(23676002)(5001770100001)(105606002)(81166005)(50466002)(77096005)(36756003)(575784001)(586003)(1220700001)(4326007)(50986999)(5820100001)(5008740100001)(189998001)(7059030)(142933001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0705; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagn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aLdI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13023025)(13017025)(13024025)(13018025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:BN1PR0301MB0705; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR0301MB0705; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0705; 4:m1WOGETAX+gl93Z/vGj+93BkSbN0cLi090woX9tLL04LZEZmxgaflGpRpW/bh3UvjG+6Gu4L2vebu7adUNnPQFgkpDXQLNsVBkFGZ+OGd80JWEJtuYxaV9dgyJafQ1+Vvb2vxxwBSTLxKcLD1PoOMUDLSYFyHuBsxH0hVqcxADwuLeJ6celZg+DGSsepn5DHeuS4fpC4dTZDy3QQ+WlP1a+c6eNU4CkjTeehSL7aciiI47LgD/sE0aIEyQvb2fcZ7uTYsGuX81XHLKIoNts5KRtPqobtT9/P7rpZvUq6pfre+pa0a4YYI3o77S2IFmyccUWx5apwoX0Doj0fXUvHOD4Th/bPWOiOAdbkHjORzERPNNcbYPsoH09LHRMPbsIzS/bq8c2YsuCt+56yh8ndvugSYclP7373UXwmLk/vbB5iGgBo7SiACJyb1E+8YZ6z53QI6hjnWD5/0bcmpcHMN026AG+hP5QSociuWcvV8Vc= X-Forefront-PRVS: 093290AD39 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjFQUjAzMDFNQjA3MDU7MjM6VDNqZFU0MjlWU0doVVMrckZYWE42K2dm?= =?utf-8?B?SDdUaXU4cEc5clY5QXBrQ0E0OUlGU1RpNDNjbzJQTDJ4d2RPbWF5MjIvVVlZ?= =?utf-8?B?NUJ6bktmVWltcDRoWnNaUld0VU5LUE1QMkt6T1ZlRmR6RFllOXByT0dZMWY1?= =?utf-8?B?ZDBBVUQyUUhrUno2bDVqaFU1NkthalZkSVhyMko5ditEbENEWFdobXZyRXJu?= =?utf-8?B?ak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8?B?WGJBRWx5eWJpblY3WmFnSUFjWXZ0RWd2YnVEeXJ6UHkrMFFKeTYrWGZhMnBq?= =?utf-8?B?ZEtlWU9oV3RMNUxPTUx0U05CNVFiNytjc2hrd0NRQzlhVXdEMEZFNUJCRWpV?= =?utf-8?B?TS9zSVNrMjJubkxjcjZjSnVqVXdxSHNmeThBRWlGS3lHVmlXRHBRQVM3ZGVx?= =?utf-8?B?RWxGeGJPN3RpM0Yrc0pDQzlhTXQwZTdLNDJ3N1hnMkhJcms1MG82VjJ5Mm9J?= =?utf-8?B?M2VQMC9IeVp1dTZNZnBjU3lpdWhYTGI0Z25uUGFKY1NWSHIxM1lUejBOdk4v?= =?utf-8?Q?FsYyFhcZd9BqvPd7UCFlwbmy8IYjG?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0705; 5:p8MirNSJFtBqM3iik12J3yPtJnqh2O0tfoVfiL0e1PatrhyUbvzf/L/HOrZ7NebsgNv6/N4/FKKNKKn3z2wHqKTDrl9IPQ+rFY4r8azRAv/JoK/WpnYyaB12OnEQdZ0Y3gvH8pjlF7auuughVAtbiOGwcE91Kb1qpIN3gp3C5XQ=; 24:UDOu1x3DuivuGhfqS7Dt9ooF/OPyZZhPJd69uHLYYwXokFnm+MgUVWOVHFUNsjzww+H1IeAz6HlEHZnGVH9Y4vGdbsKsoduy8T20Fwck/9A=; 7:jwhLRW/CtdbrXT62aFZOFbS9Mu1KLY+jwh3GYnD3UGnHSPptPkKprNxJ7qJyxIwWmOBIE3OGxvDu3gNricTuPv7eV6GzK/kMqnQobaKl9SFEzg5NKieGnlleCV9kMF16HptEHg00PGT+2ihy3ZVbUFdxfgZ0oHoUszNizf/grohY8IjNTxbNOjp+ec2iBucg SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2016 17:16:44.4352 (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: BN1PR0301MB0705 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 This will allow device drivers to consistently use io{read,write}XX also for 64-bit accesses. Signed-off-by: Horia Geant? --- arch/powerpc/kernel/iomap.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/powerpc/kernel/iomap.c b/arch/powerpc/kernel/iomap.c index 12e48d56f771..3963f0b68d52 100644 --- a/arch/powerpc/kernel/iomap.c +++ b/arch/powerpc/kernel/iomap.c @@ -38,6 +38,18 @@ EXPORT_SYMBOL(ioread16); EXPORT_SYMBOL(ioread16be); EXPORT_SYMBOL(ioread32); EXPORT_SYMBOL(ioread32be); +#ifdef __powerpc64__ +u64 ioread64(void __iomem *addr) +{ + return readq(addr); +} +u64 ioread64be(void __iomem *addr) +{ + return readq_be(addr); +} +EXPORT_SYMBOL(ioread64); +EXPORT_SYMBOL(ioread64be); +#endif /* __powerpc64__ */ void iowrite8(u8 val, void __iomem *addr) { @@ -64,6 +76,18 @@ EXPORT_SYMBOL(iowrite16); EXPORT_SYMBOL(iowrite16be); EXPORT_SYMBOL(iowrite32); EXPORT_SYMBOL(iowrite32be); +#ifdef __powerpc64__ +void iowrite64(u64 val, void __iomem *addr) +{ + writeq(val, addr); +} +void iowrite64be(u64 val, void __iomem *addr) +{ + writeq_be(val, addr); +} +EXPORT_SYMBOL(iowrite64); +EXPORT_SYMBOL(iowrite64be); +#endif /* __powerpc64__ */ /* * These are the "repeat read/write" functions. Note the