Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp453875rdb; Thu, 5 Oct 2023 10:33:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFpEhuElAj1JQFJFbGwMPZfsiXPQBoE/pCuO8EXX00dEBQUEW8+cD3TiSSQ8UI1nBKxJfkr X-Received: by 2002:a05:6a20:3d1d:b0:166:654e:549d with SMTP id y29-20020a056a203d1d00b00166654e549dmr6984409pzi.37.1696527213797; Thu, 05 Oct 2023 10:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696527213; cv=none; d=google.com; s=arc-20160816; b=IHxkxY/aDIvz4r+s6oXtI1BdtLVMAWK3yCE5Mu56oDTq4sqSWiNxmLO3X75ZLEVEuy dMYPtryxqMvlHkJt2jMhzkPLVy/8gTJFA4XfofSZrviig8zRTzm8o1er11TgstF14ufN 139t536uQM9/kKql/EmQ5Iiw93j21vrQUltCvcjzckgOH25LVAMBF5Ke4oIsAweCNyc4 5kPgTD//3Drp3wZq3aUy9tQif+JDLur16dFYq+1Lpi8sSwQNhjP1JN6VhtBaa1ucxmKK b880q5mhR0WrmJG012917/RxF3ZhVBeJJopKAVZW+yMs4c8mzI9J9JqhZcB2xhTOsQhp l87g== 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=stV0dbjgT4Q73sn4O3TY6Mbd2d01eVUc+PDL7maLYEQ=; fh=9VdNi/4do67TnxLGi/v1xEFcWICmToJCay6iblVxNb4=; b=rTfKRtuRy2jvCw0HRIR8WDCj2X/fnF7Dy1r+awpVDN1QiahYD8/+MiEFzOUeaGa1Bz ZwMW3CT+55PSJZUccl4Lve+pvNRjkjlRaBGBLpsIMIWxhxhcjLMBuM1DEj4twtkQyXPk JbNOcTjAdwomnO3DAHj1owKHcIDCFJhLyYibnLQBrxcrTzVWqnyEPGXwlaiyAXzKC8vd PtSkS86sLcPV8eWzBsIpDuQO4Tejv8gdxiRUUZtHh3esOD6okdlK5F7UTrurC+w1Dfae XnF1KGhMtefibFS5Eh6x9a8d8Cq3AuDuMoX5DLHceDUaIpCAsNWAXp+5opBqdg8T0xgF 6l2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id a22-20020a637f16000000b00573f885c4easi1818687pgd.753.2023.10.05.10.33.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 10:33:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C527D831C81D; Thu, 5 Oct 2023 10:33:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229488AbjJERaF (ORCPT + 99 others); Thu, 5 Oct 2023 13:30:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjJER30 (ORCPT ); Thu, 5 Oct 2023 13:29:26 -0400 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3884E9; Thu, 5 Oct 2023 10:26:59 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1qoLYx-003l8V-Mu; Thu, 05 Oct 2023 18:26:36 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Thu, 05 Oct 2023 18:26:39 +0800 Date: Thu, 5 Oct 2023 18:26:39 +0800 From: Herbert Xu To: Weili Qian Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, liulongfang@huawei.com Subject: Re: [PATCH] crypto: hisilicon/qm - check function qp num before alg register Message-ID: References: <20230928092147.49950-1-qianweili@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230928092147.49950-1-qianweili@huawei.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 10:33:33 -0700 (PDT) On Thu, Sep 28, 2023 at 05:21:47PM +0800, Weili Qian wrote: > When the Kunpeng accelerator executes tasks such as encryption > and decryption have minimum requirements on the number of device > queues. If the number of queues does not meet the requirement, > the process initialization will fail. Therefore, the driver checks > the number of queues on the device before registering the algorithm. > If the number does not meet the requirements, the driver does not register > the algorithm to crypto subsystem, the device is still added to the > qm_list. > > Signed-off-by: Weili Qian > --- > drivers/crypto/hisilicon/hpre/hpre_crypto.c | 25 ++++++++++- > drivers/crypto/hisilicon/hpre/hpre_main.c | 14 +++--- > drivers/crypto/hisilicon/qm.c | 47 +++++++-------------- > drivers/crypto/hisilicon/sec2/sec_crypto.c | 31 ++++++++++++-- > drivers/crypto/hisilicon/sec2/sec_main.c | 24 +++++------ > drivers/crypto/hisilicon/zip/zip_crypto.c | 24 ++++++++++- > drivers/crypto/hisilicon/zip/zip_main.c | 14 +++--- > include/linux/hisi_acc_qm.h | 18 +++++++- > 8 files changed, 134 insertions(+), 63 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt