Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5455941rwe; Tue, 18 Apr 2023 07:09:11 -0700 (PDT) X-Google-Smtp-Source: AKy350bhuQcgUr/SDGeaRrpkD6BpGPpuZtJlMUHoLkTZE5iAapExUwGyg0emZgZfIN+T2VRJSa6K X-Received: by 2002:a05:6a20:7d9f:b0:e8:dcca:d9cb with SMTP id v31-20020a056a207d9f00b000e8dccad9cbmr17711318pzj.5.1681826951611; Tue, 18 Apr 2023 07:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681826951; cv=none; d=google.com; s=arc-20160816; b=dHBRd8y7hao9lO9XZ8UcjDKhGZry6D2td/8bgJ7gIzs1ZZ7ussNvbBBMMq9ifggBwO qJriB5uNtCljZrc5SCc2HfERnmmh4BZ7CFe2eCzTDt5ybS9Lq4E2p6cY6GZi1uKvRf2I 9gq6ob6uonKoFYW2KbW/uxO98/F4sVm1nGDp/cdGzu3oPrm54TVJ2yDN9M3AOtimwOt+ bIMIyt8IMTMMRLD00LxD5im6yPM6dOc1EbxYBTe4wYfsOncI3pHv+tQcB0IUZ6JATVge sEGTIaIU/5cZ42kaNq4oobAOu96RIugkvv8Q5y5sADGpQFsl6sj7AQ80qeWsA2p6afr7 +fBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=/8//VAlE2uhp/66g7dh044IFaY306g8VtCZwMwlb8+k=; b=PFICCbLWwfYcnmwB89rsneyoHd7nQmvS0YIQMq4izBAOkeoEq+yUWqvKug4f7n/5/l mUjT5Iz67fOQrSrO7my0P8MYMYVHRG8lFzh7yTdKRzZjyyGIoVUGtvE+PDT2Hm2H8LOO +Otkcdb87UBqyR4iotKOpQ8Bsakkha88GvkChFHq72jPAdLc4pQ9E1RFJqpallf8ByvO G5tZ5g5PP0InQW8h+edEKqJhkb0l4aVjG1UrN6sbSRF6hn8kVHci6atyCd7XgPWAksI9 ZZ+OwouH3dIiTPJLwavOKUVy9eRlzJssOUiLxddoUB85bhV8wdq//bNcKNk8G/5NqQ3r u6XQ== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a63d346000000b00509461bbf1csi13389457pgi.79.2023.04.18.07.08.32; Tue, 18 Apr 2023 07:09:11 -0700 (PDT) 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231625AbjDRNve (ORCPT + 99 others); Tue, 18 Apr 2023 09:51:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbjDRNvc (ORCPT ); Tue, 18 Apr 2023 09:51:32 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB88B5582; Tue, 18 Apr 2023 06:51:29 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [7.221.188.12]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Q14zl6wnWzsRJd; Tue, 18 Apr 2023 21:49:55 +0800 (CST) Received: from [10.67.110.176] (10.67.110.176) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 18 Apr 2023 21:51:25 +0800 Subject: Re: [PATCH 5.10 1/4] crypto: api - Fix built-in testing dependency failures To: Greg KH CC: , , , References: <20230415101158.1648486-1-cuigaosheng1@huawei.com> <20230415101158.1648486-2-cuigaosheng1@huawei.com> <2023041513-sloppily-external-4c18@gregkh> <3f6315cc-4684-2121-3556-0ace47c29b35@huawei.com> <2023041809-silicon-backspace-327d@gregkh> From: cuigaosheng Message-ID: <501026a4-f847-0153-4d15-f1e0278e39d7@huawei.com> Date: Tue, 18 Apr 2023 21:51:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <2023041809-silicon-backspace-327d@gregkh> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.110.176] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500012.china.huawei.com (7.221.188.12) X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 2023/4/18 17:28, Greg KH wrote: > On Sun, Apr 16, 2023 at 03:22:18PM +0800, cuigaosheng wrote: >> On 2023/4/15 23:07, Greg KH wrote: >>> On Sat, Apr 15, 2023 at 06:11:55PM +0800, Gaosheng Cui wrote: >>>> From: Herbert Xu >>>> >>>> When complex algorithms that depend on other algorithms are built >>>> into the kernel, the order of registration must be done such that >>>> the underlying algorithms are ready before the ones on top are >>>> registered. As otherwise they would fail during the self-test >>>> which is required during registration. >>>> >>>> In the past we have used subsystem initialisation ordering to >>>> guarantee this. The number of such precedence levels are limited >>>> and they may cause ripple effects in other subsystems. >>>> >>>> This patch solves this problem by delaying all self-tests during >>>> boot-up for built-in algorithms. They will be tested either when >>>> something else in the kernel requests for them, or when we have >>>> finished registering all built-in algorithms, whichever comes >>>> earlier. >>>> >>>> Reported-by: Vladis Dronov >>>> Signed-off-by: Herbert Xu >>>> Signed-off-by: Gaosheng Cui >>>> --- >>>> crypto/algapi.c | 73 +++++++++++++++++++++++++++++++++-------------- >>>> crypto/api.c | 52 +++++++++++++++++++++++++++++---- >>>> crypto/internal.h | 10 +++++++ >>>> 3 files changed, 108 insertions(+), 27 deletions(-) >>> What is the git commit id of this, and the other 3 patches, in Linus's >>> tree? That is required to have here, as you know. >>> >>> thanks, >>> >>> greg k-h >>> . >> Thanks for taking time to review these patch. >> >> These patches are in Linus's tree, reference as follows: >> Reference 1: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=adad556efcdd42a1d9e060cbe5f6161cccf1fa28 >> Reference 2: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cad439fc040efe5f4381e3a7d583c5c200dbc186 >> Reference 3: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e42dff467ee688fe6b5a083f1837d06e3b27d8c0 >> Reference 4: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=beaaaa37c664e9afdf2913aee19185d8e3793b50 > Please resend the patches with the git commit id in the changelog > somewhere, as is normally done (there are thousands of examples on the > mailing list.) > > Also be sure that you are also backporting the patches to newer kernel > releases so that someone does not upgrade and have a regression (i.e. if > a patch is also needed in 5.15.y send a backport for that too.) > > Thanks, > > greg k-h > . As I did more testing, I found that the patch set conflicted with SIMD, so we needed a more appropriate solution to fix it, please ignore this patch set, thanks. Thanks for your time again!