Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751921AbdGaK3g (ORCPT ); Mon, 31 Jul 2017 06:29:36 -0400 Received: from mail-db5eur01on0064.outbound.protection.outlook.com ([104.47.2.64]:21024 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751750AbdGaK3c (ORCPT ); Mon, 31 Jul 2017 06:29:32 -0400 From: =?iso-8859-2?Q?Horia_Geant=E3?= To: Logan Gunthorpe , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "linux-ntb@googlegroups.com" , "linux-crypto@vger.kernel.org" CC: Arnd Bergmann , Greg Kroah-Hartman , Stephen Bates Subject: Re: [PATCH v5 0/6] make io{read|write}64 globally usable Thread-Topic: [PATCH v5 0/6] make io{read|write}64 globally usable Thread-Index: AQHTBmWhL9mLDNuMpkilCH/V/pxCvw== Date: Mon, 31 Jul 2017 10:29:28 +0000 Message-ID: References: <20170726231917.6073-1-logang@deltatee.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=horia.geanta@nxp.com; x-originating-ip: [192.88.146.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0401MB2589;7:ULQZBlPB3LeVf9YZ7p6XMombPA3HuGMFKMFuugtC0VfViQl8L5UWeLTN1vQhbNsdWUjnhVBsWLY3exjjP04qN/QNWHpmru3zTxZKg85GjgRJcJco9MP5UpxrSYQ6YQKjup237gaqjdZZP9xUhbnF4Cbo2Z9cFVoVhuiHsBXxYj2VOgZ23dgR4TfVxtMaWJ+JowDxcG9pxvp0BT+XIoabpLg/T1Hyr7IdyqIJGe+jMQK8MzLHBYACr0rwHa8tCPGNm6xtabJpu++pGusUFRK80EOJP7q9YTqaQAZ/7G+apBL45sE1QCmH99iWoMj91eLnw2pFeggNlI3hxa/KRPeoMhcDeTGxRRMOpE4gjwc/qebiec2jLQaNBTOPXzC2QRSUDfGHbTxEjrOLi0uUY0ityjQXvABsafkNYxdgCOOe779nQLmEJIQrjr2vaul3lfMeEvbjYSn7FfmX1X/1g/7ywBu+VhjgDREiX4fNt+Zr/es9fEfzlRXMWocYEaHMtMGzhLT56Cf0vcrs9l6VKZP6q5J1zpG9tonaztRah2VAFe0a25hyYqOAMDzBool1dYEYxaSG2YUyvLgFgHhQV0oMVK+t5bY+9elL/pKBRqLGXwn1CCQiZc7qmhJ7xqc/y+2EkcW5It5oAmt8Tfi3dRemGTUfqiW+QaxkHCE8zQ4TRn04bDlPEVv7MmCU8V6yCW/ingR2R/N2/iEFLe9pIUV1WDdhp7qv+OzRlWYnjuEHk1Pa4+RCVHXvDFMdJK4etAPG5FClfyVVY93WhnpiT0EV0X2qASCr3YlQ2zMScr5usV4= x-ms-office365-filtering-correlation-id: c5cd3b7c-3fae-4146-c9ff-08d4d7ff0601 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:VI1PR0401MB2589; x-ms-traffictypediagnostic: VI1PR0401MB2589: x-exchange-antispam-report-test: UriScan:(185117386973197); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6055026)(6041248)(20161123564025)(20161123562025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:VI1PR0401MB2589;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VI1PR0401MB2589; x-forefront-prvs: 03853D523D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39410400002)(39850400002)(39400400002)(39840400002)(39450400003)(39860400002)(377454003)(189002)(199003)(24454002)(97736004)(105586002)(106356001)(101416001)(5250100002)(7736002)(305945005)(33656002)(4326008)(38730400002)(8676002)(81156014)(3660700001)(6436002)(6246003)(9686003)(8936002)(53936002)(81166006)(478600001)(54906002)(2906002)(25786009)(54356999)(3280700002)(76176999)(99286003)(55016002)(7696004)(53546010)(14454004)(74316002)(3846002)(102836003)(6116002)(5660300001)(50986999)(2900100001)(189998001)(68736007)(66066001)(6506006)(2201001)(229853002)(2501003)(86362001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2589;H:VI1PR0401MB2591.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-2" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2017 10:29:28.1932 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2589 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v6VATfE8026947 Content-Length: 1737 Lines: 48 On 7/27/2017 2:19 AM, Logan Gunthorpe wrote: > Changes since v4: > - Add functions so the powerpc implementation of iomap.c compiles. (As > noticed by Horia) Tested-by: Horia Geant? more exactly: crypto self-tests pass on CAAM crypto engine on NXP platforms LS1046A (ARMv8 A53), T1040 (PPC64 e5500), P4080 (PPC e500mc). > > Changes since v3: > > - I noticed powerpc didn't use the appropriate functions seeing > readq/writeq were not defined when iomap.h was included. Thus I've > included a patch to adjust this > - Fixed some mistakes with a couple of the defines in io-64-nonatomic* > headers > - Fixed a typo noticed by Horia. > > (earlier versions were drastically different) > > > Horia Geant? (1): > crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64 > > Logan Gunthorpe (5): > powerpc: io.h: move iomap.h include so that it can use readq/writeq > defs > powerpc: iomap.c: introduce io{read|write}64_{lo_hi|hi_lo} > iomap: introduce io{read|write}64_{lo_hi|hi_lo} > io-64-nonatomic: add io{read|write}64[be]{_lo_hi|_hi_lo} macros > ntb: ntb_hw_intel: use io-64-nonatomic instead of in-driver hacks > > arch/powerpc/include/asm/io.h | 6 +- > arch/powerpc/kernel/iomap.c | 40 +++++++++++ > drivers/crypto/caam/regs.h | 35 ++------- > drivers/ntb/hw/intel/ntb_hw_intel.c | 30 +------- > include/asm-generic/iomap.h | 26 +++++-- > include/linux/io-64-nonatomic-hi-lo.h | 60 ++++++++++++++++ > include/linux/io-64-nonatomic-lo-hi.h | 60 ++++++++++++++++ > lib/iomap.c | 132 ++++++++++++++++++++++++++++++++++ > 8 files changed, 322 insertions(+), 67 deletions(-) > > -- > 2.11.0 >