[PATCH 4/4] crypto/qat: disable asym and compression for new gen3 device
Ciara Power
ciara.power at intel.com
Tue Dec 19 16:51:23 CET 2023
Currently only symmetric crypto has been added for the new gen3 device,
adding a check to disable asym and comp PMDs for this device.
Signed-off-by: Ciara Power <ciara.power at intel.com>
---
drivers/compress/qat/qat_comp_pmd.c | 3 ++-
drivers/crypto/qat/qat_asym.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/compress/qat/qat_comp_pmd.c b/drivers/compress/qat/qat_comp_pmd.c
index 6fb8cf69be..bdc35b5949 100644
--- a/drivers/compress/qat/qat_comp_pmd.c
+++ b/drivers/compress/qat/qat_comp_pmd.c
@@ -687,7 +687,8 @@ qat_comp_dev_create(struct qat_pci_device *qat_pci_dev,
qat_pci_dev->name, "comp");
QAT_LOG(DEBUG, "Creating QAT COMP device %s", name);
- if (qat_comp_gen_ops->compressdev_ops == NULL) {
+ if (qat_comp_gen_ops->compressdev_ops == NULL ||
+ qat_dev_instance->pci_dev->id.device_id == 0x578b) {
QAT_LOG(DEBUG, "Device %s does not support compression", name);
return -ENOTSUP;
}
diff --git a/drivers/crypto/qat/qat_asym.c b/drivers/crypto/qat/qat_asym.c
index 2bf3060278..036813e977 100644
--- a/drivers/crypto/qat/qat_asym.c
+++ b/drivers/crypto/qat/qat_asym.c
@@ -1522,7 +1522,8 @@ qat_asym_dev_create(struct qat_pci_device *qat_pci_dev,
qat_pci_dev->name, "asym");
QAT_LOG(DEBUG, "Creating QAT ASYM device %s\n", name);
- if (gen_dev_ops->cryptodev_ops == NULL) {
+ if (gen_dev_ops->cryptodev_ops == NULL ||
+ qat_dev_instance->pci_dev->id.device_id == 0x578b) {
QAT_LOG(ERR, "Device %s does not support asymmetric crypto",
name);
return -(EFAULT);
--
2.25.1
More information about the dev
mailing list