X-Received: by 2002:a17:906:85b:b0:69d:eb3:8a7c with SMTP id f27-20020a170906085b00b0069d0eb38a7cmr1018981ejd.427.1645646781694; Wed, 23 Feb 2022 12:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645646781; cv=none; d=google.com; s=arc-20160816; b=VObZODLogtTfm/c3pG478JXHXSV5L71LKgX4fEHkUxeQI1ePVlgBjsZMXbyNy4lVJ8 +Z6+yePJWpA+imohvpnqlhbALG2DrnO/qQI6YCWdiLTrowH7i2ZIZN67SQ6uIryAKmzc Aml8TLVOWKENXDzFUKt4Yzj2SBV7qB7VgzBds81MbfFlmps6X6Wky4IByczgKvxbH0Iw 1M3IF0NNZ8kDWFGi8Sl/MmbYzAKMpaaxlzkQlbc9TNrTs+bSCl306ondCeK9LA38tbTF 2UTqIWl1heMWO+i/cDwbBtxrbUU9hjH/63390/FELLN2uirhXCNtrVsRv5m2qwQb09/p RnRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bk9Pf0okfus+rbHDbpJuWdMbLWpFbIJSyXFd/iCpHGU=; b=h/znP8Z+V0+uR7Lp3eoxqXw1J/fjNnS1W3ywNlgiM9PypZ4cg6gkISUB3PitX4J3fL T4Oxgfhn4We01O7Ffqcs1cQ54SZAjsLvgH13ZjVf/ixkB0d5yTuUj97iEWBfaNJmjhp5 lFI+Y09A0+t9vZSG+qHlNp4CGLwhpsjoYVBwsUNWeObHmC8UxqfJpsk00qyABdkrsaLL PkwIfZlaDH0/8kwLYaLTiyntdEsf2q/QpbIbv8rxDtJq6jxpMqFtDW69LpeMgPdr1gA4 bOz7eYfQNzQoa5HlW2ffSux+vastNP0pHl2QCi9b57YkuvOGSSsOhche4Zkb1EeQXtZN KDoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z18si277547ejx.237.2022.02.23.12.05.56; Wed, 23 Feb 2022 12:06:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237877AbiBWDaH (ORCPT + 99 others); Tue, 22 Feb 2022 22:30:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237874AbiBWDaG (ORCPT ); Tue, 22 Feb 2022 22:30:06 -0500 X-Greylist: delayed 1894 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 22 Feb 2022 19:29:40 PST Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0058639141; Tue, 22 Feb 2022 19:29:39 -0800 (PST) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1nMhrU-0006Db-0w; Wed, 23 Feb 2022 13:58:41 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 23 Feb 2022 14:58:40 +1200 Date: Wed, 23 Feb 2022 14:58:39 +1200 From: Herbert Xu To: Petr Vorel Cc: linux-crypto@vger.kernel.org, Nicolai Stange , leitao@debian.org, Nayna Jain , Paulo Flabiano Smorigo , linuxppc-dev@lists.ozlabs.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH v3 2/2] crypto: vmx - add missing dependencies Message-ID: References: <20220217105751.6330-1-pvorel@suse.cz> <20220217105751.6330-3-pvorel@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220217105751.6330-3-pvorel@suse.cz> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Feb 17, 2022 at 11:57:51AM +0100, Petr Vorel wrote: > vmx-crypto module depends on CRYPTO_AES, CRYPTO_CBC, CRYPTO_CTR or > CRYPTO_XTS, thus add them. > > These dependencies are likely to be enabled, but if > CRYPTO_DEV_VMX=y && !CRYPTO_MANAGER_DISABLE_TESTS > and either of CRYPTO_AES, CRYPTO_CBC, CRYPTO_CTR or CRYPTO_XTS is built > as module or disabled, alg_test() from crypto/testmgr.c complains during > boot about failing to allocate the generic fallback implementations > (2 == ENOENT): > > [ 0.540953] Failed to allocate xts(aes) fallback: -2 > [ 0.541014] alg: skcipher: failed to allocate transform for p8_aes_xts: -2 > [ 0.541120] alg: self-tests for p8_aes_xts (xts(aes)) failed (rc=-2) > [ 0.544440] Failed to allocate ctr(aes) fallback: -2 > [ 0.544497] alg: skcipher: failed to allocate transform for p8_aes_ctr: -2 > [ 0.544603] alg: self-tests for p8_aes_ctr (ctr(aes)) failed (rc=-2) > [ 0.547992] Failed to allocate cbc(aes) fallback: -2 > [ 0.548052] alg: skcipher: failed to allocate transform for p8_aes_cbc: -2 > [ 0.548156] alg: self-tests for p8_aes_cbc (cbc(aes)) failed (rc=-2) > [ 0.550745] Failed to allocate transformation for 'aes': -2 > [ 0.550801] alg: cipher: Failed to load transform for p8_aes: -2 > [ 0.550892] alg: self-tests for p8_aes (aes) failed (rc=-2) > > Fixes: c07f5d3da643 ("crypto: vmx - Adding support for XTS") > Fixes: d2e3ae6f3aba ("crypto: vmx - Enabling VMX module for PPC64") > > Suggested-by: Nicolai Stange > Signed-off-by: Petr Vorel > --- > changes v2->v3: > * more less the same, just in drivers/crypto/Kconfig (previously it was > in drivers/crypto/vmx/Kconfig) > * change commit subject to be compatible > > drivers/crypto/Kconfig | 4 ++++ > 1 file changed, 4 insertions(+) Please respin this patch to add the selects to the existing tristate. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt