Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp306836ybi; Thu, 1 Aug 2019 19:31:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmp8wBjqgqdrSQnSgrGeA0T7TDx3x0Bz2AMpTd1neDy8h+Akxv5wHNq5lXsTUbiu+Zlcvp X-Received: by 2002:a17:902:e282:: with SMTP id cf2mr130583216plb.301.1564713063900; Thu, 01 Aug 2019 19:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564713063; cv=none; d=google.com; s=arc-20160816; b=CBXVwXaJGcyDTPkLMTppLJXBByMGjY1F9yuaghE5paw3u8ACvEN4jowvAfN3UKJ1Db nFQmQY0KxlSHZB7C5Mb3uQU9JXOqQXMEVrbEQNh4L7hO7J42EL7X2A3s5OwC/K2JeujI Zu7AHZ626PnoPWR6Kj83EgzHCvsagb1lSCsdyc+CfLy8sgj0lx8XjvW7WdH1eTVOse7E 004JbFG6i1NxVXxopK7zv3WziA6BvFsb3SM9Je1na0Kl2UmQ5xGKvfShdhYrLe+uIgwp viidOvwINtu/nZPQsjMfXGqwr85NlpOAAMjV7uTmOIqMRBhedyGwOXxwEXTcY5TEY8xC bxQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=sxOoL1ho1h38V4YxURMa5zr18DZw74+3K9aGxLSZXVE=; b=j3AD0XP3i+LXFE0gbe/zVXqBiQTqT25SGR0Of0SL8wsqc3d11tzw+gWNV9lbQLdf/Z z+q49bzTPMi2CnQbUaeacgFXMPevDWEjl3MFzlQC02aSazfZLLM7lujReeqiw7KjyBDm KrWyM2ZTM5y3Km9ujKQ+AC0hz6b6XGiCoP0OfdqGrSpuDIWBi4/gQ6EfJ5WwebGMHrJ1 mhRcBWk4nieetR8AzRyLl2AwDEwTSzf3S8JMxMWHd2H3cnBnGl3axMJqe15Qvlczw9Ah 5zME0JR7y7Wgf8hUAVYvfJPddHfW80g1uqh8+eWFht+ZDrSSd0Y00ati+ofXWlvIzVjw NebQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=YjzdNqoP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si37923287pfk.201.2019.08.01.19.30.48; Thu, 01 Aug 2019 19:31:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=YjzdNqoP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731922AbfHBAUa (ORCPT + 99 others); Thu, 1 Aug 2019 20:20:30 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:58317 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbfHBAUa (ORCPT ); Thu, 1 Aug 2019 20:20:30 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4607960P1Sz9sBF; Fri, 2 Aug 2019 10:20:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1564705226; bh=+ve0AekgqeeerfEkv1cIPb21hnwgyPwKRGIXqIAzqJk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YjzdNqoPwyZUWcWwEkhgLFWielvXQDNt1oh/h/3f7OZHuhkvwAEnmS0NsS2aSWgx2 B2V300+TDrUdlC7OpBnVfPKCtyHspBYyVrIkzS2oKTUABP3kFuebLKXOxoWobTLpWa uyp1LPoZKiFNdZfqftKot8ImxnEgY49kSfG4gIejZSVnSdHNAJI+OD6KU5ayeGi4SZ ZQ5fjPNon1XBDUGhd/xAMdshCfRYN1u0zLF00rzcq6t+AaRto8nMHC3HX3UxSm3XyC svZz2CrudgIRmQGzt7iCXoPxqo4vqvQbB04QRPB8Hx8WS8TAJMoIzMr45mqliclP3J U7WmrRBAl+DRQ== Date: Fri, 2 Aug 2019 10:20:19 +1000 From: Stephen Rothwell To: Herbert Xu Cc: Ard Biesheuvel , Heiko Carstens , Linux Next Mailing List , Linux Kernel Mailing List , linux-s390 , Harald Freudenberger , Patrick Steuer , Ondrej Mosnacek Subject: Re: linux-next: Tree for Jul 31 - s390 crypto build breakage Message-ID: <20190802102019.6a789c51@canb.auug.org.au> In-Reply-To: References: <20190731163915.3fdfcb14@canb.auug.org.au> <20190731085819.GA3488@osiris> <20190731110816.GA20753@gondor.apana.org.au> <20190731111520.GC3488@osiris> <20190731113216.GA21068@gondor.apana.org.au> <20190731114453.GD3488@osiris> <20190801122849.GB4163@osiris> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/wVw44K.uM21QiDqGKSG=HiW"; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/wVw44K.uM21QiDqGKSG=HiW Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Herbert, On Thu, 1 Aug 2019 20:28:56 +0300 Ard Biesheuvel wrote: > > On Thu, 1 Aug 2019 at 15:28, Heiko Carstens w= rote: > > > > On Wed, Jul 31, 2019 at 01:44:54PM +0200, Heiko Carstens wrote: =20 > > > On Wed, Jul 31, 2019 at 09:32:16PM +1000, Herbert Xu wrote: =20 > > > > On Wed, Jul 31, 2019 at 01:15:20PM +0200, Heiko Carstens wrote: =20 > > > > > > > > > > However that doesn't fix the simd.h header file breakage with the > > > > > second patch :) =20 > > > > > > > > That fix should be there now too. =20 > > > > > > Yes, works now. Thank you! =20 > > > > Still not... with linux-next as of today I get this (s390 defconfig): > > > > ERROR: "crypto_aegis128_decrypt_chunk_simd" [crypto/aegis128.ko] undefi= ned! > > ERROR: "crypto_aegis128_update_simd" [crypto/aegis128.ko] undefined! > > ERROR: "crypto_aegis128_encrypt_chunk_simd" [crypto/aegis128.ko] undefi= ned! > > scripts/Makefile.modpost:105: recipe for target 'modules-modpost' failed > > =20 >=20 > Hello Heiko, >=20 > Apologies for the breakage. The first two fixes addressed obvious > shortcomings in my code, but with this issue, I'm a bit puzzled tbh. > The calls to these missing functions should be optimized away, since > have_simd never gets assigned if CONFIG_CRYPTO_AEGIS128_SIMD is not > defined, but for some reason, this isn't working. Which version of GCC > are you using? >=20 > Also, could you please try whether the patch below fixes the problem? Tha= nks >=20 > https://lore.kernel.org/linux-crypto/20190729074434.21064-1-ard.biesheuve= l@linaro.org/ It might be time to revert all this series and try again. The implementation seems to have not been well thought through from a kernel building point of view. For a start the two commits 7cdc0ddbf74a ("crypto: aegis128 - add support for SIMD acceleration") ecc8bc81f2fb ("crypto: aegis128 - provide a SIMD implementation based on = NEON intrinsics") seem to be in the wrong order (function used in the first before being defined in the second). There are a series of declarations of external functions in crypto/aegis128-core.c that should be in a header file. And there was the assumption that asm/simd.h was available everywhere. Also crypto_aegis128_decrypt_chunk_simd() is referenced in a structure initialisation (unprotected by any CONFIG_ variable - and so will be referenced even if it does not exist). The compiler will have a hard time knowing that "have_simd" is effectively a constant zero (and crypto_simd_usable() is not constant). --=20 Cheers, Stephen Rothwell --Sig_/wVw44K.uM21QiDqGKSG=HiW Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl1DgcMACgkQAVBC80lX 0Gwx/Af/cVufoIrfiSSSl7Y9kjmf50nbufyfwr0bVq1E4/cox6s3YYwm5YjksyAv 0Va0rY0BckXUkkFT6wi27uqVnX61synIjcUUDB4Gossa1LtK3+BlBqyWc2i8KYWk f04gN4Q8Y+CriSJPMkuXXy6mi0fp/kdxbfiJe4kag2Hs+5XCpVnDt3vwk4CP3Eci iasyqK5spS0ZcUBr8T6KmtiW8QmkO7wtdNnJOjeCFcioNihAu+KAK6yhaKtjAsIW /9uU761Bvzow2XqRp8uf71FXfWbiMKcJzJ+/ln5te2AS+4PFhU5vZtYeIYEZUN0w tuGhZn+FzLeLjMP1ZoPUVFCy4b0qFw== =WIXM -----END PGP SIGNATURE----- --Sig_/wVw44K.uM21QiDqGKSG=HiW--