Skip to contentSkip to conversation

compress/qat: add Gen 6 support

PATCH Superseded Radu Nicolau 2 participants 3 messages Nov 10 – Nov 27 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compress/qat: add Gen 6 support

Add support for Gen 6 QAT compression devices.

---
 doc/guides/compressdevs/qat_comp.rst         |   1 +
 doc/guides/cryptodevs/qat.rst                |   2 +-
 doc/guides/rel_notes/release_26_11.rst       |   4 +
 drivers/common/qat/meson.build               |   1 +
 drivers/common/qat/qat_adf/icp_qat_fw_comp.h |   5 +
 drivers/compress/qat/dev/qat_comp_pmd_gen6.c | 135 +++++++++++++++++++
 drivers/compress/qat/dev/qat_comp_pmd_gens.h |   8 ++
 drivers/compress/qat/qat_comp.c              |  21 ++-
 8 files changed, 175 insertions(+), 2 deletions(-)
 create mode 100644 drivers/compress/qat/dev/qat_comp_pmd_gen6.c
doc/guides/compressdevs/qat_comp.rst +1 -0
index 78b1ad9c23..7c6c8e1074 100644
@@ -15,6 +15,7 @@ support for the following hardware accelerator devices:
 * ``Intel QuickAssist Technology C3xxx``
 * ``Intel QuickAssist Technology DH895x``
 * ``Intel QuickAssist Technology 300xx``
+* ``Intel QuickAssist Technology 6xxx``
 
 
 Features
doc/guides/cryptodevs/qat.rst +1 -1
index 27713913ae..8c118b3c5f 100644
@@ -486,7 +486,7 @@ to see the full table)
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
    | Yes | Yes | Yes | 5   | 420xx    | linux/6.8+    | qat_420xx     | 420xx      | 4946   | 2    | 4947   | 16     |
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
-   | Yes | Yes | No  | 6   | 6xxx     | linux/6.16+   | qat_6xxx      | 6xxx       | 4948   | 1    | 4949   | 16     |
+   | Yes | Yes | Yes | 6   | 6xxx     | linux/6.16+   | qat_6xxx      | 6xxx       | 4948   | 1    | 4949   | 16     |
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
 
 * Note: Symmetric mixed crypto algorithms feature on Gen 2 works only with IDZ driver version 4.9.0+
doc/guides/rel_notes/release_26_11.rst +4 -0
index fdcf155e07..81971ee38a 100644
@@ -59,6 +59,10 @@ New Features
 
   * Added support for Gen 6 QAT devices.
 
+* **Updated Intel QuickAssist Technology (QAT) compression driver.**
+
+  * Added support for Gen 6 QAT devices.
+
 
 Removed Items
 -------------
drivers/common/qat/meson.build +1 -0
index db792864a2..c7ad535c69 100644
@@ -123,6 +123,7 @@ if qat_compress
             'dev/qat_comp_pmd_gen3.c',
             'dev/qat_comp_pmd_gen4.c',
             'dev/qat_comp_pmd_gen5.c',
+            'dev/qat_comp_pmd_gen6.c',
         ]
         sources += files(join_paths(qat_compress_relpath, f))
     endforeach
drivers/common/qat/qat_adf/icp_qat_fw_comp.h +5 -0
index da45cb8f7d..625fdc055f 100644
@@ -20,6 +20,11 @@ enum icp_qat_fw_comp_cmd_id {
 	/**< Delimiter type */
 };
 
+enum icp_qat_fw_comp_cmd_id_gen6 {
+	ICP_QAT_GEN6_FW_COMP_CMD_DEFLATE_COMP = 1,
+	ICP_QAT_GEN6_FW_COMP_CMD_DEFLATE_DECOMP = 2,
+};
+
 /**< Flag usage */
 
 #define ICP_QAT_FW_COMP_STATELESS_SESSION 0
drivers/compress/qat/dev/qat_comp_pmd_gen6.c new file +135 -0

135 lines not on this page · raw message

drivers/compress/qat/dev/qat_comp_pmd_gens.h +8 -0
index e329fe3e18..6a0b281abd 100644
@@ -41,4 +41,12 @@ qat_comp_dev_config_gen4(struct rte_compressdev *dev,
 
 extern struct rte_compressdev_ops qat_comp_ops_gen1;
 
+int
+qat_comp_create_templates_gen6(struct qat_comp_xform *qat_xform,
+		const struct rte_memzone *interm_buff_mz,
+		const struct rte_comp_xform *xform,
+		const struct qat_comp_stream *stream,
+		enum rte_comp_op_type op_type,
+		enum qat_device_gen qat_dev_gen);
+
 #endif /* _QAT_COMP_PMD_GENS_H_ */
drivers/compress/qat/qat_comp.c +20 -1
index 559948a46a..35fa513631 100644
@@ -18,6 +18,7 @@
 #include "qat_logs.h"
 #include "qat_comp.h"
 #include "qat_comp_pmd.h"
+#include "dev/qat_comp_pmd_gens.h"
 
 static void
 qat_comp_fallback_to_fixed(struct icp_qat_fw_comp_req *comp_req)
@@ -814,7 +815,7 @@ qat_comp_create_req_hdr(struct icp_qat_fw_comn_req_hdr *header,
 }
 
 static int
-qat_comp_create_templates(struct qat_comp_xform *qat_xform,
+qat_comp_create_templates_genx(struct qat_comp_xform *qat_xform,
 			  const struct rte_memzone *interm_buff_mz,
 			  const struct rte_comp_xform *xform,
 			  const struct qat_comp_stream *stream,
@@ -933,6 +934,24 @@ qat_comp_create_templates(struct qat_comp_xform *qat_xform,
 	return 0;
 }
 
+static int
+qat_comp_create_templates(struct qat_comp_xform *qat_xform,
+			  const struct rte_memzone *interm_buff_mz,
+			  const struct rte_comp_xform *xform,
+			  const struct qat_comp_stream *stream,
+			  enum rte_comp_op_type op_type,
+			  enum qat_device_gen qat_dev_gen)
+{
+	if (qat_dev_gen == QAT_GEN6)
+		return qat_comp_create_templates_gen6(qat_xform,
+			interm_buff_mz, xform, stream, op_type,
+			qat_dev_gen);
+
+	return qat_comp_create_templates_genx(qat_xform,
+			interm_buff_mz, xform, stream, op_type,
+			qat_dev_gen);
+}
+
 /**
  * Create driver private_xform data.
  *
Signature · 1 line
2.52.0
Acked-by on v1 1/1
#1 lore raw

________________________________
From: Nicolau, Radu <[email protected]>
Sent: 10 November 2026 15:15
To: [email protected] <[email protected]>
Cc: Nicolau, Radu <[email protected]>; Ji, Kai <[email protected]>; Fan Zhang <[email protected]>; Ashish Gupta <[email protected]>
Subject: [PATCH] compress/qat: add Gen 6 support

Add support for Gen 6 QAT compression devices.

---
 doc/guides/compressdevs/qat_comp.rst         |   1 +
 doc/guides/cryptodevs/qat.rst                |   2 +-
 doc/guides/rel_notes/release_26_11.rst       |   4 +
 drivers/common/qat/meson.build               |   1 +
 drivers/common/qat/qat_adf/icp_qat_fw_comp.h |   5 +
 drivers/compress/qat/dev/qat_comp_pmd_gen6.c | 135 +++++++++++++++++++
 drivers/compress/qat/dev/qat_comp_pmd_gens.h |   8 ++
 drivers/compress/qat/qat_comp.c              |  21 ++-
 8 files changed, 175 insertions(+), 2 deletions(-)
 create mode 100644 drivers/compress/qat/dev/qat_comp_pmd_gen6.c
doc/guides/compressdevs/qat_comp.rst +1 -0
index 78b1ad9c23..7c6c8e1074 100644
@@ -15,6 +15,7 @@ support for the following hardware accelerator devices:
 * ``Intel QuickAssist Technology C3xxx``
 * ``Intel QuickAssist Technology DH895x``
 * ``Intel QuickAssist Technology 300xx``
+* ``Intel QuickAssist Technology 6xxx``
 
 
 Features
doc/guides/cryptodevs/qat.rst +1 -1
index 27713913ae..8c118b3c5f 100644
@@ -486,7 +486,7 @@ to see the full table)
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
    | Yes | Yes | Yes | 5   | 420xx    | linux/6.8+    | qat_420xx     | 420xx      | 4946   | 2    | 4947   | 16     |
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
-   | Yes | Yes | No  | 6   | 6xxx     | linux/6.16+   | qat_6xxx      | 6xxx       | 4948   | 1    | 4949   | 16     |
+   | Yes | Yes | Yes | 6   | 6xxx     | linux/6.16+   | qat_6xxx      | 6xxx       | 4948   | 1    | 4949   | 16     |
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
 
 * Note: Symmetric mixed crypto algorithms feature on Gen 2 works only with IDZ driver version 4.9.0+
doc/guides/rel_notes/release_26_11.rst +4 -0
index fdcf155e07..81971ee38a 100644
@@ -59,6 +59,10 @@ New Features
 
   * Added support for Gen 6 QAT devices.
 
+* **Updated Intel QuickAssist Technology (QAT) compression driver.**
+
+  * Added support for Gen 6 QAT devices.
+
 
 Removed Items
 -------------
drivers/common/qat/meson.build +1 -0
index db792864a2..c7ad535c69 100644
@@ -123,6 +123,7 @@ if qat_compress
             'dev/qat_comp_pmd_gen3.c',
             'dev/qat_comp_pmd_gen4.c',
             'dev/qat_comp_pmd_gen5.c',
+            'dev/qat_comp_pmd_gen6.c',
         ]
         sources += files(join_paths(qat_compress_relpath, f))
     endforeach
drivers/common/qat/qat_adf/icp_qat_fw_comp.h +5 -0
index da45cb8f7d..625fdc055f 100644
@@ -20,6 +20,11 @@ enum icp_qat_fw_comp_cmd_id {
         /**< Delimiter type */
 };
 
+enum icp_qat_fw_comp_cmd_id_gen6 {
+       ICP_QAT_GEN6_FW_COMP_CMD_DEFLATE_COMP = 1,
+       ICP_QAT_GEN6_FW_COMP_CMD_DEFLATE_DECOMP = 2,
+};
+
 /**< Flag usage */
 
 #define ICP_QAT_FW_COMP_STATELESS_SESSION 0
drivers/compress/qat/dev/qat_comp_pmd_gen6.c new file +135 -0

135 lines not on this page · raw message

drivers/compress/qat/dev/qat_comp_pmd_gens.h +8 -0
index e329fe3e18..6a0b281abd 100644
@@ -41,4 +41,12 @@ qat_comp_dev_config_gen4(struct rte_compressdev *dev,
 
 extern struct rte_compressdev_ops qat_comp_ops_gen1;
 
+int
+qat_comp_create_templates_gen6(struct qat_comp_xform *qat_xform,
+               const struct rte_memzone *interm_buff_mz,
+               const struct rte_comp_xform *xform,
+               const struct qat_comp_stream *stream,
+               enum rte_comp_op_type op_type,
+               enum qat_device_gen qat_dev_gen);
+
 #endif /* _QAT_COMP_PMD_GENS_H_ */
drivers/compress/qat/qat_comp.c +20 -1
index 559948a46a..35fa513631 100644
@@ -18,6 +18,7 @@
 #include "qat_logs.h"
 #include "qat_comp.h"
 #include "qat_comp_pmd.h"
+#include "dev/qat_comp_pmd_gens.h"
 
 static void
 qat_comp_fallback_to_fixed(struct icp_qat_fw_comp_req *comp_req)
@@ -814,7 +815,7 @@ qat_comp_create_req_hdr(struct icp_qat_fw_comn_req_hdr *header,
 }
 
 static int
-qat_comp_create_templates(struct qat_comp_xform *qat_xform,
+qat_comp_create_templates_genx(struct qat_comp_xform *qat_xform,
                           const struct rte_memzone *interm_buff_mz,
                           const struct rte_comp_xform *xform,
                           const struct qat_comp_stream *stream,
@@ -933,6 +934,24 @@ qat_comp_create_templates(struct qat_comp_xform *qat_xform,
         return 0;
 }
 
+static int
+qat_comp_create_templates(struct qat_comp_xform *qat_xform,
+                         const struct rte_memzone *interm_buff_mz,
+                         const struct rte_comp_xform *xform,
+                         const struct qat_comp_stream *stream,
+                         enum rte_comp_op_type op_type,
+                         enum qat_device_gen qat_dev_gen)
+{
+       if (qat_dev_gen == QAT_GEN6)
+               return qat_comp_create_templates_gen6(qat_xform,
+                       interm_buff_mz, xform, stream, op_type,
+                       qat_dev_gen);
+
+       return qat_comp_create_templates_genx(qat_xform,
+                       interm_buff_mz, xform, stream, op_type,
+                       qat_dev_gen);
+}
+
 /**
  * Create driver private_xform data.
  *

--
2.52.0

#2 lore raw

PATCH v2 1/1 compress/qat: add Gen 6 support

In reply to Radu Nicolau

Add support for Gen 6 QAT compression devices.

---
v2: updated target version to 27.03

 doc/guides/compressdevs/qat_comp.rst         |   1 +
 doc/guides/cryptodevs/qat.rst                |   2 +-
 doc/guides/rel_notes/release_27_03.rst       |   3 +
 drivers/common/qat/meson.build               |   1 +
 drivers/common/qat/qat_adf/icp_qat_fw_comp.h |   5 +
 drivers/compress/qat/dev/qat_comp_pmd_gen6.c | 135 +++++++++++++++++++
 drivers/compress/qat/dev/qat_comp_pmd_gens.h |   8 ++
 drivers/compress/qat/qat_comp.c              |  21 ++-
 8 files changed, 174 insertions(+), 2 deletions(-)
 create mode 100644 drivers/compress/qat/dev/qat_comp_pmd_gen6.c
doc/guides/compressdevs/qat_comp.rst +1 -0
index 78b1ad9c23..7c6c8e1074 100644
@@ -15,6 +15,7 @@ support for the following hardware accelerator devices:
 * ``Intel QuickAssist Technology C3xxx``
 * ``Intel QuickAssist Technology DH895x``
 * ``Intel QuickAssist Technology 300xx``
+* ``Intel QuickAssist Technology 6xxx``
 
 
 Features
doc/guides/cryptodevs/qat.rst +1 -1
index 27713913ae..8c118b3c5f 100644
@@ -486,7 +486,7 @@ to see the full table)
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
    | Yes | Yes | Yes | 5   | 420xx    | linux/6.8+    | qat_420xx     | 420xx      | 4946   | 2    | 4947   | 16     |
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
-   | Yes | Yes | No  | 6   | 6xxx     | linux/6.16+   | qat_6xxx      | 6xxx       | 4948   | 1    | 4949   | 16     |
+   | Yes | Yes | Yes | 6   | 6xxx     | linux/6.16+   | qat_6xxx      | 6xxx       | 4948   | 1    | 4949   | 16     |
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
 
 * Note: Symmetric mixed crypto algorithms feature on Gen 2 works only with IDZ driver version 4.9.0+
doc/guides/rel_notes/release_27_03.rst +3 -0
index a91813faca..5b4174db3f 100644
@@ -54,6 +54,9 @@ New Features
      This section is a comment. Do not overwrite or remove it.
      Also, make sure to start the actual text at the margin.
      =======================================================
+* **Updated Intel QuickAssist Technology (QAT) compression driver.**
+
+  * Added support for Gen 6 QAT devices.
 
 
 Removed Items
drivers/common/qat/meson.build +1 -0
index db792864a2..c7ad535c69 100644
@@ -123,6 +123,7 @@ if qat_compress
             'dev/qat_comp_pmd_gen3.c',
             'dev/qat_comp_pmd_gen4.c',
             'dev/qat_comp_pmd_gen5.c',
+            'dev/qat_comp_pmd_gen6.c',
         ]
         sources += files(join_paths(qat_compress_relpath, f))
     endforeach
drivers/common/qat/qat_adf/icp_qat_fw_comp.h +5 -0
index da45cb8f7d..625fdc055f 100644
@@ -20,6 +20,11 @@ enum icp_qat_fw_comp_cmd_id {
 	/**< Delimiter type */
 };
 
+enum icp_qat_fw_comp_cmd_id_gen6 {
+	ICP_QAT_GEN6_FW_COMP_CMD_DEFLATE_COMP = 1,
+	ICP_QAT_GEN6_FW_COMP_CMD_DEFLATE_DECOMP = 2,
+};
+
 /**< Flag usage */
 
 #define ICP_QAT_FW_COMP_STATELESS_SESSION 0
drivers/compress/qat/dev/qat_comp_pmd_gen6.c new file +135 -0

135 lines not on this page · raw message

drivers/compress/qat/dev/qat_comp_pmd_gens.h +8 -0
index e329fe3e18..6a0b281abd 100644
@@ -41,4 +41,12 @@ qat_comp_dev_config_gen4(struct rte_compressdev *dev,
 
 extern struct rte_compressdev_ops qat_comp_ops_gen1;
 
+int
+qat_comp_create_templates_gen6(struct qat_comp_xform *qat_xform,
+		const struct rte_memzone *interm_buff_mz,
+		const struct rte_comp_xform *xform,
+		const struct qat_comp_stream *stream,
+		enum rte_comp_op_type op_type,
+		enum qat_device_gen qat_dev_gen);
+
 #endif /* _QAT_COMP_PMD_GENS_H_ */
drivers/compress/qat/qat_comp.c +20 -1
index 559948a46a..35fa513631 100644
@@ -18,6 +18,7 @@
 #include "qat_logs.h"
 #include "qat_comp.h"
 #include "qat_comp_pmd.h"
+#include "dev/qat_comp_pmd_gens.h"
 
 static void
 qat_comp_fallback_to_fixed(struct icp_qat_fw_comp_req *comp_req)
@@ -814,7 +815,7 @@ qat_comp_create_req_hdr(struct icp_qat_fw_comn_req_hdr *header,
 }
 
 static int
-qat_comp_create_templates(struct qat_comp_xform *qat_xform,
+qat_comp_create_templates_genx(struct qat_comp_xform *qat_xform,
 			  const struct rte_memzone *interm_buff_mz,
 			  const struct rte_comp_xform *xform,
 			  const struct qat_comp_stream *stream,
@@ -933,6 +934,24 @@ qat_comp_create_templates(struct qat_comp_xform *qat_xform,
 	return 0;
 }
 
+static int
+qat_comp_create_templates(struct qat_comp_xform *qat_xform,
+			  const struct rte_memzone *interm_buff_mz,
+			  const struct rte_comp_xform *xform,
+			  const struct qat_comp_stream *stream,
+			  enum rte_comp_op_type op_type,
+			  enum qat_device_gen qat_dev_gen)
+{
+	if (qat_dev_gen == QAT_GEN6)
+		return qat_comp_create_templates_gen6(qat_xform,
+			interm_buff_mz, xform, stream, op_type,
+			qat_dev_gen);
+
+	return qat_comp_create_templates_genx(qat_xform,
+			interm_buff_mz, xform, stream, op_type,
+			qat_dev_gen);
+}
+
 /**
  * Create driver private_xform data.
  *
Signature · 1 line
2.52.0