linux/drivers/crypto/hisilicon
Longfang Liu 0a7f9238f3 crypto: hisilicon/qm - fix PF queue parameter issue
[ Upstream commit 5831fc1fd4 ]

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: 8bbecfb402 ("crypto: hisilicon/qm - add queue isolation support for Kunpeng930")
Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-11-20 11:52:06 +01:00
..
hpre crypto: hisilicon/qm - fix PF queue parameter issue 2023-11-20 11:52:06 +01:00
sec crypto: hisilicon - Kunpeng916 crypto driver don't sleep when in softirq 2022-07-08 15:21:16 +08:00
sec2 crypto: hisilicon/qm - fix PF queue parameter issue 2023-11-20 11:52:06 +01:00
trng crypto: hisilicon/trng - fix local variable type 2022-06-17 17:19:20 +08:00
zip crypto: hisilicon/qm - fix PF queue parameter issue 2023-11-20 11:52:06 +01:00
debugfs.c crypto: hisilicon/qm - split a debugfs.c from qm 2023-11-20 11:52:06 +01:00
Kconfig crypto: ccree,hisilicon - Fix dependencies to correct algorithm 2023-01-07 11:11:52 +01:00
Makefile crypto: hisilicon/qm - split a debugfs.c from qm 2023-11-20 11:52:06 +01:00
qm.c crypto: hisilicon/qm - fix PF queue parameter issue 2023-11-20 11:52:06 +01:00
qm_common.h crypto: hisilicon/qm - fix PF queue parameter issue 2023-11-20 11:52:06 +01:00
sgl.c crypto: hisilicon: Wipe entire pool on error 2023-03-10 09:33:50 +01:00