summaryrefslogtreecommitdiff
path: root/drivers/crypto/hisilicon/qm.h
diff options
context:
space:
mode:
authorWeili Qian <qianweili@huawei.com>2021-03-20 19:27:45 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-03-26 20:15:57 +1100
commit6250383a2083e8f66635d441977f74e0ee4e52f7 (patch)
tree6dee2d522c26d3028003e0651273f397ae19dd69 /drivers/crypto/hisilicon/qm.h
parentc4392b46ee95be9815e682a1c8cb0aa2f92f07e2 (diff)
downloadlwn-6250383a2083e8f66635d441977f74e0ee4e52f7.tar.gz
lwn-6250383a2083e8f66635d441977f74e0ee4e52f7.zip
crypto: hisilicon/qm - set the number of queues for function
Kunpeng930 supports queue doorbell isolation. When doorbell isolation is enabled, it supports to obtain the maximum number of queues of one function from hardware register. Otherwise, the 'max_qp_num' is the total number of queues. When assigning queues to VF, it is necessary to ensure that the number of VF queues does not exceed 'max_qp_num'. Signed-off-by: Weili Qian <qianweili@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon/qm.h')
-rw-r--r--drivers/crypto/hisilicon/qm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/crypto/hisilicon/qm.h b/drivers/crypto/hisilicon/qm.h
index 5c4797b005bf..cf0290f35680 100644
--- a/drivers/crypto/hisilicon/qm.h
+++ b/drivers/crypto/hisilicon/qm.h
@@ -207,6 +207,7 @@ struct hisi_qm {
u32 qp_num;
u32 qp_in_used;
u32 ctrl_qp_num;
+ u32 max_qp_num;
u32 vfs_num;
struct list_head list;
struct hisi_qm_list *qm_list;
@@ -245,6 +246,9 @@ struct hisi_qm {
const char *algs;
bool use_sva;
bool is_frozen;
+
+ /* doorbell isolation enable */
+ bool use_db_isolation;
resource_size_t phys_base;
resource_size_t phys_size;
struct uacce_device *uacce;