]> git.droids-corp.org - dpdk.git/commitdiff
compress/qat: add compression on DH895x
authorTomasz Jozwiak <tomaszx.jozwiak@intel.com>
Fri, 21 Dec 2018 09:15:22 +0000 (10:15 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 10 Jan 2019 15:57:22 +0000 (16:57 +0100)
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>
doc/guides/compressdevs/qat_comp.rst
drivers/compress/qat/qat_comp.c
drivers/compress/qat/qat_comp_pmd.c

index aee3b99b04bc0900cf9ee6834139df5280f86b14..567a1fc806301503ccec396607d2fd7caaba3f45 100644 (file)
@@ -9,6 +9,7 @@ support for the following hardware accelerator devices:
 
 * ``Intel QuickAssist Technology C62x``
 * ``Intel QuickAssist Technology C3xxx``
+* ``Intel QuickAssist Technology DH895x``
 
 
 Features
index bb006104f2151ab71769d6ecb26c07bcb7d06288..e745d13624c12c55fcfd222fc2f5d09bd367c9c5 100644 (file)
@@ -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(
index ea93077213e5246239a6afbed85ef59addcaef23..27c885625f5c44cf31d05ac5d382add70bc3bf77 100644 (file)
@@ -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;