Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02408E9271C for ; Thu, 5 Oct 2023 17:29:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231580AbjJER3t (ORCPT ); Thu, 5 Oct 2023 13:29:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231866AbjJER3X (ORCPT ); Thu, 5 Oct 2023 13:29:23 -0400 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 628DB268E; Thu, 5 Oct 2023 10:26:52 -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 1qoLYf-003l8K-3c; Thu, 05 Oct 2023 18:26:18 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Thu, 05 Oct 2023 18:26:21 +0800 Date: Thu, 5 Oct 2023 18:26:21 +0800 From: Herbert Xu To: Longfang Liu Cc: wangzhou1@hisilicon.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: hisilicon/qm - fix PF queue parameter issue Message-ID: References: <20230928085722.39087-1-liulongfang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230928085722.39087-1-liulongfang@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Sep 28, 2023 at 04:57:22PM +0800, Longfang Liu wrote: > If the queue isolation feature is enabled, the number of queues > supported by the device changes. When PF is enabled using the > current default number of queues, the default number of queues may > be greater than the number supported by the device. As a result, > the PF fails to be bound to the driver. > > After modification, if queue isolation feature is enabled, when > the default queue parameter is greater than the number supported > by the device, the number of enabled queues will be changed to > the number supported by the device, so that the PF and driver > can be properly bound. > > Fixes: 8bbecfb402f7 ("crypto: hisilicon/qm - add queue isolation support for Kunpeng930") > Signed-off-by: Longfang Liu > --- > drivers/crypto/hisilicon/hpre/hpre_main.c | 5 +++++ > drivers/crypto/hisilicon/qm.c | 18 ++++++++++++------ > drivers/crypto/hisilicon/qm_common.h | 1 - > drivers/crypto/hisilicon/sec2/sec_main.c | 5 +++++ > drivers/crypto/hisilicon/zip/zip_main.c | 5 +++++ > include/linux/hisi_acc_qm.h | 7 +++++++ > 6 files changed, 34 insertions(+), 7 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