Re: [PATCH] crypto: hisilicon/qm - fix PF queue parameter issue

From: Herbert Xu
Date: Thu Oct 05 2023 - 13:29:53 EST


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 <liulongfang@xxxxxxxxxx>
> ---
> 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 <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt