Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935016AbdGTMgN (ORCPT ); Thu, 20 Jul 2017 08:36:13 -0400 Received: from mail-eopbgr00061.outbound.protection.outlook.com ([40.107.0.61]:11388 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934643AbdGTMgL (ORCPT ); Thu, 20 Jul 2017 08:36:11 -0400 From: =?iso-8859-2?Q?Horia_Geant=E3?= To: Logan Gunthorpe , Michael Ellerman , "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 , "Benjamin Herrenschmidt" , Paul Mackerras , Nicholas Piggin , Suresh Warrier , "Oliver O'Halloran" Subject: Re: [PATCH v4 1/5] powerpc: io.h: move iomap.h include so that it can use readq/writeq defs Thread-Topic: [PATCH v4 1/5] powerpc: io.h: move iomap.h include so that it can use readq/writeq defs Thread-Index: AQHS/+ayH0lM2RtJFk+vtUmsDPLhAQ== Date: Thu, 20 Jul 2017 12:36:07 +0000 Message-ID: References: <20170718165528.7383-1-logang@deltatee.com> <20170718165528.7383-2-logang@deltatee.com> <87iniphsug.fsf@concordia.ellerman.id.au> <15b6ea7d-5817-c0cd-aee4-c8a52d8808f9@deltatee.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: deltatee.com; dkim=none (message not signed) header.d=none;deltatee.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [192.88.146.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0401MB2589;7:6S0SXU1FtAohOb4uabJf5Mlw+pT9h3SgDJueLJAiTQwKI2lX1QBa/+FTAxo24fup5zGD4aDCqKIdGKpNXR10A5Imjn8FZKiaxYThdn15C1+bhDInuAcZlNuR+S8RuCKoiuIAFDXMQn8cjrVz7HZF0HY5GujYNYz4y+9kNQnBt8MJxEyEynDgMlcI1YbCUBD4fTZM7Q7FjPHHYKRo0s5Zz2Uoq/WYWYRWhk7Rnc5Eue/GUrXf+hInZHPFSKtb33rzSI6MDUcSHF8w+/cPB/n27KKsNNCrlcbY4iysouzmplTxVczF1cc7v888oo4coPgltm4RUB2ORDLghZhu+j5hxmpD8x+UFI/En17kW0P1+o7BCuXCZYAAHbjnKF5FEb7KoJLWE+Idw53Y93KkveJ+aXZWTzeKD51cKrzoOT2a4L/c/3w1ge3ljyiJ1nIaarjU64qBonELshqCdLwVPyH5opy88WSbthzsFK6irknbWBDMJGQB1u46JzTpgLT+LAxV1FmODEmEXWH6tjnBKid05PzT1Lm33iluS77Hj01MOCgAKjU5yiOsStIV5BOrzRVPUGdol0SRngNb55+OUxYzSuRxqBGFoEofenfNWjKPBVWCXBrjOnEQo69URT5J76KapcoXDGYkm1YTsUqhalBt7IAxBqEd2DfA9BTwHKDlz+v9JsFtf9tnYbV7/8kWNv2XqITSaQF7vBgGdJk6GjZiAl17hG/5haGKjiOFCtJcy0s76CELeJGpkgI4k81x70sX2q0S0+/1739qUSruLziMgLs4uunkn0+w+/s1CoV3WVQ= x-ms-office365-filtering-correlation-id: be4d187e-d39c-4a13-8f9f-08d4cf6be4c8 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:VI1PR0401MB2589; x-ms-traffictypediagnostic: VI1PR0401MB2589: x-exchange-antispam-report-test: UriScan:(236129657087228); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(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: 0374433C81 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39410400002)(39860400002)(39400400002)(39450400003)(39850400002)(39840400002)(377454003)(24454002)(7736002)(3280700002)(7416002)(50986999)(8936002)(2900100001)(3660700001)(2201001)(5660300001)(76176999)(2906002)(54356999)(6436002)(305945005)(7696004)(66066001)(93886004)(86362001)(81166006)(74316002)(6116002)(3846002)(38730400002)(478600001)(6246003)(8676002)(39060400002)(25786009)(54906002)(102836003)(9686003)(55016002)(99286003)(53546010)(33656002)(229853002)(14454004)(6506006)(189998001)(2501003)(5250100002)(53936002)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2589;H:VI1PR0401MB2591.eurprd04.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;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: 20 Jul 2017 12:36:07.1475 (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 v6KCaKq7019406 Content-Length: 1944 Lines: 51 On 7/20/2017 1:27 PM, Horia Geant? wrote: > On 7/19/2017 7:04 PM, Logan Gunthorpe wrote: >> >> >> On 18/07/17 11:57 PM, Michael Ellerman wrote: >>> Seems fair enough, have you tested it at all? >> >> It's only been compile tested and the kbuild robot has beat up on it a bit. >> > Looks like the patch set does not compile on PPC (.config generated > using make corenet64_smp_defconfig): > > [...] > LD vmlinux.o > MODPOST vmlinux.o > drivers/crypto/caam/jr.o: In function `rd_reg64': > /home/b05471/repos/cryptodev-2.6/drivers/crypto/caam/regs.h:154: > undefined reference to `.ioread64be_lo_hi' > /home/b05471/repos/cryptodev-2.6/drivers/crypto/caam/regs.h:151: > undefined reference to `.ioread64_lo_hi' > /home/b05471/repos/cryptodev-2.6/drivers/crypto/caam/regs.h:151: > undefined reference to `.ioread64_lo_hi' > /home/b05471/repos/cryptodev-2.6/drivers/crypto/caam/regs.h:154: > undefined reference to `.ioread64be_lo_hi' > drivers/crypto/caam/jr.o: In function `wr_reg64': > /home/b05471/repos/cryptodev-2.6/drivers/crypto/caam/regs.h:141: > undefined reference to `.iowrite64_lo_hi' > /home/b05471/repos/cryptodev-2.6/drivers/crypto/caam/regs.h:141: > undefined reference to `.iowrite64_lo_hi' > /home/b05471/repos/cryptodev-2.6/drivers/crypto/caam/regs.h:144: > undefined reference to `.iowrite64be_lo_hi' > /home/b05471/repos/cryptodev-2.6/drivers/crypto/caam/regs.h:144: > undefined reference to `.iowrite64be_lo_hi' > make: *** [vmlinux] Error 1 > include/asm-generic/iomap.h is included before include/linux/io-64-nonatomic-lo-hi.h: include/linux/io.h -> arch/powerpc/include/asm/io.h -> include/asm-generic/iomap.h Thus, the "extern" version of ioread64_lo_hi and friends will be used (and not the inline version from io-64-nonatomic-lo-hi.h). But for this kernel .config: -CONFIG_GENERIC_IOMAP=n and -there is no implementation of io{read|write}64[be]{_lo_hi|_hi_lo} in arch/powerpc/kernel/iomap.c Regards, Horia