Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp690512pxb; Tue, 5 Apr 2022 18:56:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqzSk+ezXkRNozDcg/65sWHMXB9D3kO2imj56KDadkH2lIddY2vDkvaxoGBDZrIJkp1swW X-Received: by 2002:a63:2683:0:b0:382:65ea:d5aa with SMTP id m125-20020a632683000000b0038265ead5aamr5111033pgm.579.1649210198527; Tue, 05 Apr 2022 18:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649210198; cv=none; d=google.com; s=arc-20160816; b=XyWMCxfBuXSriJdURDgQgRkInQsOqeQ82lrqdhBz1TdCOF5tA8ep0ONjGzQjNbg1jh olzJWN7Hxzz+3SQ1d0iSg62qgP8E1981NCiNf/OJ2Rp+HK3jp1uUPJ9/ArjAzKuza2xz wPHrlp7bX60P1tvS2F8bTZKJCT/64+jr2/7RYeoiKZmv/pDiS8TOVF1jICnEwUePU6Bp gQIHG4Mt8CTLhgQzqO1x1wIaIKjDEwnW1w3GIAamxRYsaG8g3UBiMH5hJAIhEUOqmEpB cub8nQMGiVNfDl02FSKnRT3z/2ieLj8dfOQI5+75qlsymlzc78CNMpMtpJuj/VMTiB98 b1lA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FI5uBxgrxQeHdM1SC246jBJ7lNnm+ttILtMr7RjqIQE=; b=kmxFn7AzHR1py5XuPR92s4SADH9Gj8HWpMIA0SjOx8a6pPVLvdN+sVKTJllzYJeVZb y30ZppfvZozNHj73886o6WInVyFwOZibi9I74y3wQfp9s2CxvniQSTx7yRSysX2k7z6M xt/KD7eQiFJXieG5850Q+oOjmj8JDfAblYHlEMpZYCg7yKFl29f6uUFeyecZ4KiV9CsL 7PT19dx49Lmq5Szf7SoZMX9GP0G5up4nJbjfwRaO0ZwYLQ1qWoD/ru8HSVuXi8hNk44M FNa1PUVmAwUnRzD0am+BAUHRi0JKYKHo6/lzqTRDvp9xOgrLEyfdosVCyseOOWZ84odI GafQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZrtfIKgf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a17090a6ac500b001c6855ece44si3521032pjm.184.2022.04.05.18.56.24; Tue, 05 Apr 2022 18:56:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=ZrtfIKgf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378626AbiDELep (ORCPT + 99 others); Tue, 5 Apr 2022 07:34:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244680AbiDEIwc (ORCPT ); Tue, 5 Apr 2022 04:52:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D971D8F49; Tue, 5 Apr 2022 01:41:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E7FA8B81A32; Tue, 5 Apr 2022 08:41:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35506C385A0; Tue, 5 Apr 2022 08:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148116; bh=PCrH6URjmuB5guwZhaskUFJLccnRisVbZQOv3UYszQI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZrtfIKgfUR6Duk3mW/Orra7115xKJs+JGd0QIdxaGq1cFGN6w5b/5OeDF4LIec8dl 5oIX2tQQI/huquvH/QERapgUu9E9V6aXKYTJRmGZuYgv153+W/J0mYYY1tPRA0sWz6 fAjVuLFiMHwjMeX8JWeVsUK8X0+7D96nwioVc4B0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolai Stange , Petr Vorel , Herbert Xu , Sasha Levin Subject: [PATCH 5.16 0240/1017] crypto: vmx - add missing dependencies Date: Tue, 5 Apr 2022 09:19:13 +0200 Message-Id: <20220405070401.381137081@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-kernel@vger.kernel.org From: Petr Vorel [ Upstream commit 647d41d3952d726d4ae49e853a9eff68ebad3b3f ] 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 Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/vmx/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/crypto/vmx/Kconfig b/drivers/crypto/vmx/Kconfig index c85fab7ef0bd..b2c28b87f14b 100644 --- a/drivers/crypto/vmx/Kconfig +++ b/drivers/crypto/vmx/Kconfig @@ -2,7 +2,11 @@ config CRYPTO_DEV_VMX_ENCRYPT tristate "Encryption acceleration support on P8 CPU" depends on CRYPTO_DEV_VMX + select CRYPTO_AES + select CRYPTO_CBC + select CRYPTO_CTR select CRYPTO_GHASH + select CRYPTO_XTS default m help Support for VMX cryptographic acceleration instructions on Power8 CPU. -- 2.34.1