summaryrefslogtreecommitdiff
path: root/drivers/compress
diff options
context:
space:
mode:
authorTomasz Jozwiak <tomaszx.jozwiak@intel.com>2018-12-21 10:15:22 +0100
committerPablo de Lara <pablo.de.lara.guarch@intel.com>2019-01-10 16:57:22 +0100
commite2e35849ea78ca54627ae86c58cb9c253ca59a91 (patch)
tree063e3344c209967db7c07d487e762ca22f08d931 /drivers/compress
parente5eecd3dc83817c92e4946db4829914c097b0744 (diff)
downloaddpdk-next-eventdev-e2e35849ea78ca54627ae86c58cb9c253ca59a91.zip
dpdk-next-eventdev-e2e35849ea78ca54627ae86c58cb9c253ca59a91.tar.gz
dpdk-next-eventdev-e2e35849ea78ca54627ae86c58cb9c253ca59a91.tar.xz
compress/qat: add compression on DH895x
This patch enables compression on DH895x HW series and updates supported hardware accelerator devices list. Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com>
Diffstat (limited to 'drivers/compress')
-rw-r--r--drivers/compress/qat/qat_comp.c2
-rw-r--r--drivers/compress/qat/qat_comp_pmd.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/drivers/compress/qat/qat_comp.c b/drivers/compress/qat/qat_comp.c
index bb00610..e745d13 100644
--- a/drivers/compress/qat/qat_comp.c
+++ b/drivers/compress/qat/qat_comp.c
@@ -270,7 +270,7 @@ static int qat_comp_create_templates(struct qat_comp_xform *qat_xform,
ICP_QAT_FW_COMP_NOT_AUTO_SELECT_BEST,
ICP_QAT_FW_COMP_NOT_ENH_AUTO_SELECT_BEST,
ICP_QAT_FW_COMP_NOT_DISABLE_TYPE0_ENH_AUTO_SELECT_BEST,
- ICP_QAT_FW_COMP_DISABLE_SECURE_RAM_USED_AS_INTMD_BUF);
+ ICP_QAT_FW_COMP_ENABLE_SECURE_RAM_USED_AS_INTMD_BUF);
comp_req->cd_pars.sl.comp_slice_cfg_word[0] =
ICP_QAT_HW_COMPRESSION_CONFIG_BUILD(
diff --git a/drivers/compress/qat/qat_comp_pmd.c b/drivers/compress/qat/qat_comp_pmd.c
index ea93077..27c8856 100644
--- a/drivers/compress/qat/qat_comp_pmd.c
+++ b/drivers/compress/qat/qat_comp_pmd.c
@@ -484,10 +484,6 @@ static const struct rte_driver compdev_qat_driver = {
int
qat_comp_dev_create(struct qat_pci_device *qat_pci_dev)
{
- if (qat_pci_dev->qat_dev_gen == QAT_GEN1) {
- QAT_LOG(ERR, "Compression PMD not supported on QAT dh895xcc");
- return 0;
- }
if (qat_pci_dev->qat_dev_gen == QAT_GEN3) {
QAT_LOG(ERR, "Compression PMD not supported on QAT c4xxx");
return 0;