Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp345339pxb; Thu, 17 Feb 2022 05:31:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkR7pO1WgfNYI1dnNgbH7pI+T6VNnueSBZq/zKzwuGf94jWDrjRonu5r8rJS4Hw9WgRdTZ X-Received: by 2002:a05:6a00:148b:b0:4e0:1001:1063 with SMTP id v11-20020a056a00148b00b004e010011063mr3162954pfu.15.1645104715055; Thu, 17 Feb 2022 05:31:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645104715; cv=none; d=google.com; s=arc-20160816; b=DxICwfHzpFS/x/VQ5gwQDxhgAHsJ53JKQNTWrkMWOeVNynEp6V2+H5teFafAGmwhjV oqQwwI6UEWywUvpqhPwcKox5vYIWUSrC/nO2aK/tGVypg+KID9hcZZMH9nrDx44QKn+7 lLKpa4x5SJPwmTWCFOAjaEgRLoebGea74FFX4Cc/cVZSwSvoP881N2IOfeHEM+ReW2sA 2Y5g5fRCG8xAdJFecXE9lYp8B+d+DxPUl7gmCADxCRjoqbYoLyFz+6inAXMqF+4+BdiF ++uKVMshArCtdzndjutlJJhAzehIWetQsDLmZnBXS2TRPFDCkcJCIcMMoDOUy2NPWcMJ eEKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=BWifxgAR/Z495cVFocnolcIW5XpC70uze6lvb8LtCTg=; b=ub3UKhf9X9s//rWILLX9OtHfvacfsBWZvdZ20x3xTklVpzYeCU55TyYRAcdOXnwOMX duX/AfgSvxOSJ7kcKa1zv2+iRcoVbMQkci9hhuDFbsGTGPU6imMAmzpOKTpd0wNy4oOm hUUj5Q/HtPwcVjOPnHxYswyK5fAcGQ73BbPjCaA2DNK6rb2XgY1Qtis9Kega9C5XLopG 4PoSxd/FKAvMRkwxzDGC9JYNEyfaQEHEezWe7h2mP6m9OZuSpiljhXwI53rl1OCXLfWf EP3Q8zzpKyHpz6Go/liHnWeWTqRUUM/KgdT/cLoaYb3FZFzKlSFXo48TR6faCYb5vAKv 1ejA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=QjyBknuE; dkim=neutral (no key) header.i=@suse.cz header.b=kqtJMiiu; 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 f9si12884994plt.111.2022.02.17.05.31.27; Thu, 17 Feb 2022 05:31:54 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=QjyBknuE; dkim=neutral (no key) header.i=@suse.cz header.b=kqtJMiiu; 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 S239704AbiBQK7J (ORCPT + 99 others); Thu, 17 Feb 2022 05:59:09 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239606AbiBQK6t (ORCPT ); Thu, 17 Feb 2022 05:58:49 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66E3317A90; Thu, 17 Feb 2022 02:58:03 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 2D10A21991; Thu, 17 Feb 2022 10:58:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1645095481; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BWifxgAR/Z495cVFocnolcIW5XpC70uze6lvb8LtCTg=; b=QjyBknuEto9Q9s36hn0fOg9mYBlkG30wBXmAflfbDDykG40GO+NGmXHi2GDybQ/PZPCHxU Gxkwt6vzmnavAmxHHjoJ3doHeWQEpezRyHN+eXcm1t0lrx3z7OXBXnwxd4dXZaQP7iR6ib yGGN4enmc1Ch9Z0Fsd12v4qOexLInxE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1645095481; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BWifxgAR/Z495cVFocnolcIW5XpC70uze6lvb8LtCTg=; b=kqtJMiiuDYJxUG1xYWedaAyqSl6ER1f5n+1Aza1p+QfHxJQB14HQ358hl+AbmAWdVG83XH yNNiCWRtqCK2okAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D20C013DD8; Thu, 17 Feb 2022 10:58:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WBGmMTgqDmJdTgAAMHmgww (envelope-from ); Thu, 17 Feb 2022 10:58:00 +0000 From: Petr Vorel To: linux-crypto@vger.kernel.org Cc: Petr Vorel , Nicolai Stange , Herbert Xu , leitao@debian.org, Nayna Jain , Paulo Flabiano Smorigo , linuxppc-dev@lists.ozlabs.org, linux-kbuild@vger.kernel.org Subject: [PATCH v3 2/2] crypto: vmx - add missing dependencies Date: Thu, 17 Feb 2022 11:57:51 +0100 Message-Id: <20220217105751.6330-3-pvorel@suse.cz> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220217105751.6330-1-pvorel@suse.cz> References: <20220217105751.6330-1-pvorel@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 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(+) diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 923fa1effb4a..0eafb2a49f04 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -764,7 +764,11 @@ config CRYPTO_DEV_QCOM_RNG config CRYPTO_DEV_VMX tristate "Power VMX cryptographic acceleration instructions driver" depends on PPC64 && VSX + select CRYPTO_AES + select CRYPTO_CBC + select CRYPTO_CTR select CRYPTO_GHASH + select CRYPTO_XTS help Support for VMX cryptographic acceleration instructions on Power8 CPU. This module supports acceleration for AES and GHASH in hardware. If you -- 2.35.1