From patchwork Thu May 5 15:36:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horia Geanta X-Patchwork-Id: 9025511 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 DA77B9F30C for ; Thu, 5 May 2016 15:38:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0A09F203AA for ; Thu, 5 May 2016 15:38:32 +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 31220203A4 for ; Thu, 5 May 2016 15:38:31 +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 1ayLKQ-0008Oy-OI; Thu, 05 May 2016 15:36:38 +0000 Received: from mail-by2on0067.outbound.protection.outlook.com ([207.46.100.67] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ayLKL-0008MJ-FB for linux-arm-kernel@lists.infradead.org; Thu, 05 May 2016 15:36:34 +0000 Received: from DM2PR03CA0050.namprd03.prod.outlook.com (10.141.96.49) by BN1PR0301MB0708.namprd03.prod.outlook.com (10.160.78.14) with Microsoft SMTP Server (TLS) id 15.1.492.11; Thu, 5 May 2016 15:36:11 +0000 Received: from BL2FFO11FD043.protection.gbl (2a01:111:f400:7c09::118) by DM2PR03CA0050.outlook.office365.com (2a01:111:e400:2428::49) with Microsoft SMTP Server (TLS) id 15.1.485.9 via Frontend Transport; Thu, 5 May 2016 15:36:11 +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=none 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 BL2FFO11FD043.mail.protection.outlook.com (10.173.161.139) with Microsoft SMTP Server (TLS) id 15.1.485.4 via Frontend Transport; Thu, 5 May 2016 15:36:11 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u45Fa7P1029303; Thu, 5 May 2016 08:36:08 -0700 From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Herbert Xu , Catalin Marinas , Will Deacon Subject: [PATCH v2 3/8] arm64: add io{read,write}64be accessors Date: Thu, 5 May 2016 18:36:04 +0300 Message-ID: <1462462564-27731-1-git-send-email-horia.geanta@nxp.com> X-Mailer: git-send-email 2.4.4 In-Reply-To: <1462462435-27403-1-git-send-email-horia.geanta@nxp.com> References: <1462462435-27403-1-git-send-email-horia.geanta@nxp.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131069361714174108; (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)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(1220700001)(2950100001)(189998001)(23676002)(11100500001)(36756003)(5001770100001)(4326007)(47776003)(86362001)(2906002)(2870700001)(50986999)(76176999)(586003)(77096005)(105606002)(6806005)(19580395003)(33646002)(19580405001)(106466001)(229853001)(8936002)(87936001)(5820100001)(81166005)(5008740100001)(92566002)(104016004)(85426001)(50466002)(50226002)(7059030)(142933001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0708; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD043; 1:gEIXir2tPnItDwOIJJW/+gnV6HUhS8W3XqCzyIs4HlTtn7DlgzJCGxntl4kxIjJAe7ZvNC/rSPbE14Rm++WuY0+fvvgoVdumcVqz7M6Ufi2ZtwsDckRRZHDUU94rBCMvohHOmZlynhB3oEnU5v9Zp9jpMbux5eU63PqukehXVaYcJx5HncEMX2SdhVF6qwsQpcNzJeePel/0llCUklPoNFmVN/0wfitIynD/HzajzCT99C4FMaV+QSaRZh9CPQ5LYdDnqmZVdSbmrK+6F0rXBuO2YUbeoj8poa7/OFKIlEPMJnO28V5efv1/ZuFo1O4cY1RRu3VawOFxZHMEZbSbLLrX7vDMzNRo60wPanJ+4v5dF2+H3rlmwaY0TgbwLV4P8QTGA4/eHeLmi5s+P23H+wXbb5beyUbJGKQX3qEu05VFVwizCN84iCnljZilo3HHcLdBaAvrxNQm85vq1kYzXgMy0qYElNfA2EItcVHS9cm9ho1zldhecrgIpUk1rtERcKHHAyoZOiZL5n0O1tbk66uG7zd5Q1ysCMse1up0Y5uwVXw4Kb3y6DUjYC/5BkflFxHm83QwxhxrpOSnYH7qqiQHf/WSzyogLR+ePYjrwm0RGtXDkyjfcSTnAxADvVu9H8pALi4VXRjRek4Js+20up1IfuIo1+2T1N4E3bD0MMKdGpRNBVjCdMm1NXLNa3pqGVTpDEbdw8SmMqW0ZGgF2/UOxeOtjmze3juUI7uP+HA= X-MS-Office365-Filtering-Correlation-Id: cd953427-8336-4fb1-b73b-08d374fafc5d X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0708; 2:/UYQdQg8ZO4VwuntbzsaC72TeUeSK2jXaAaQkkq30BDCSWWXcIZa/K+I5J+z+lSwPmPbAybHymtyV3P3vWwp6vSygvw8ZThMMekXKfWWs+Cr5fTF/iBZonapgCwAlSVEX5nULinBIOxVNmfGIiJ0QMNItgE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J4VrCP0YkCiBDgR/TCoWaiqdDAoKYUo02pNR6IvLcAljoeD6WzsvUXpWg7/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13024025)(13015025)(13018025)(13017025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:BN1PR0301MB0708; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR0301MB0708; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0708; 4:pD3+iyae1oypmoYYhwOi8fTUEgLIXrYdv7I6fk3GZMZ+TWANMqD5Dqvk5UspI3J6/FtDnNs9VMmt6LFqq8Nk+6/4q7uti3t2U8kbGVOyv8OfJBG7ae17kITXkHWG2EqnfiINz8tXlBwqw2Yt8dw7SyLUAaTSL0p0by3KySWYiaFjGJ2WsGJwziogH9QSctJ/jwxLxhnxXhRrcvmyAo/rHf250po1NeBSFITMZBXPoLAe7FGIl1iSu5lOFmk90kEPRi+OnGIZ/qDVPErqT+I4UUtJ75xtJp++FvqQaieegMxVbIzHoGJiAcHJSAi3wWufLocDvQ3QUF5z5RXJdg4oMni8uisrrZ7kKkO7qMkB7pXpFHXfeum82ZJcpuPgzjcgSzC0EiB2VcaCcboZhFEPdWN6mYdEGRgW+sTq5Yf5IN1lU4CR+RxD6SC8qO8YTG93Y2se6qf3kUyc9aMEsc7dTAT2n/i1wwT7xnctbq5kJE0= X-Forefront-PRVS: 0933E9FD8D X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjFQUjAzMDFNQjA3MDg7MjM6QXhOdU9zcGhvZ0EycmVCcmFPcHR2SWFv?= =?utf-8?B?UXNLZnBNRlFiNU9HNHNmVWo0UkhkcXZ5cTdlWU1vRjFHRjNlTWtxTTNmQnFP?= =?utf-8?B?U2NML3c5YTRhLzZyYVZaRlJzc0tHYlYzZ0xkRVBTOFFQV3ptQjhEVlZmek9Q?= =?utf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QTJOTlTMl8uTujGt SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2016 15:36:11.0742 (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: BN1PR0301MB0708 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160505_083633_728589_CCB4AD5B X-CRM114-Status: GOOD ( 10.49 ) 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: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Cristian Stoica , Scott Wood , linux-crypto@vger.kernel.org, Tudor Ambarus , "David S. Miller" , Alexandru Porosanu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.3 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 This will allow device drivers to consistently use io{read,write}XXbe also for 64-bit accesses. Signed-off-by: Alex Porosanu Signed-off-by: Horia Geant? Acked-by: Catalin Marinas --- arch/arm64/include/asm/io.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index 44be1e03ed65..9b6e408cfa51 100644 --- a/arch/arm64/include/asm/io.h +++ b/arch/arm64/include/asm/io.h @@ -174,13 +174,15 @@ extern void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size); #define iounmap __iounmap /* - * io{read,write}{16,32}be() macros + * io{read,write}{16,32,64}be() macros */ #define ioread16be(p) ({ __u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(); __v; }) #define ioread32be(p) ({ __u32 __v = be32_to_cpu((__force __be32)__raw_readl(p)); __iormb(); __v; }) +#define ioread64be(p) ({ __u64 __v = be64_to_cpu((__force __be64)__raw_readq(p)); __iormb(); __v; }) #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force __u16)cpu_to_be16(v), p); }) #define iowrite32be(v,p) ({ __iowmb(); __raw_writel((__force __u32)cpu_to_be32(v), p); }) +#define iowrite64be(v,p) ({ __iowmb(); __raw_writeq((__force __u64)cpu_to_be64(v), p); }) /* * Convert a physical pointer to a virtual kernel pointer for /dev/mem