Skip to contentSkip to conversation

crypto/qat: add Gen 6 support

PATCH Superseded Radu Nicolau 3 participants 4 messages Oct 16 – Oct 22

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

Add support for Gen 6 QAT devices

---
 doc/guides/cryptodevs/qat.rst                |   5 +
 doc/guides/rel_notes/release_26_11.rst       |   4 +
 drivers/common/qat/dev/qat_dev_gen6.c        |  63 ++++
 drivers/common/qat/meson.build               |   2 +
 drivers/common/qat/qat_adf/icp_qat_fw_la.h   |   7 +-
 drivers/common/qat/qat_common.h              |   1 +
 drivers/common/qat/qat_device.c              |   5 +
 drivers/crypto/qat/dev/qat_crypto_pmd_gen6.c | 337 +++++++++++++++++++
 drivers/crypto/qat/qat_sym_session.c         |  53 +--
 drivers/crypto/qat/qat_sym_session.h         |   8 +
 10 files changed, 465 insertions(+), 20 deletions(-)
 create mode 100644 drivers/common/qat/dev/qat_dev_gen6.c
 create mode 100644 drivers/crypto/qat/dev/qat_crypto_pmd_gen6.c
doc/guides/cryptodevs/qat.rst +5 -0
index 6c96c5f88d..27713913ae 100644
@@ -28,6 +28,7 @@ poll mode crypto driver support for the following hardware accelerator devices:
 * ``Intel QuickAssist Technology 4xxx``
 * ``Intel QuickAssist Technology 300xx``
 * ``Intel QuickAssist Technology 420xx``
+* ``Intel QuickAssist Technology 6xxx``
 * ``Intel QuickAssist Technology apfxx``
 
 
@@ -142,6 +143,7 @@ Limitations
   generations in the same process if planning to use for GCM.
 * The mixed algo feature on GEN2 is not supported by all kernel drivers. Check
   the notes under the Available Kernel Drivers table below for specific details.
+* Chained cipher and hash operations are not supported on GEN6 devices.
 * Out-of-place is not supported for combined Crypto-CRC DOCSIS security
   protocol.
 * ``RTE_CRYPTO_CIPHER_DES_DOCSISBPI`` is not supported for combined Crypto-CRC
@@ -182,6 +184,7 @@ poll mode crypto driver support for the following hardware accelerator devices:
 * ``Intel QuickAssist Technology 401xxx``
 * ``Intel QuickAssist Technology 300xx``
 * ``Intel QuickAssist Technology 420xx``
+* ``Intel QuickAssist Technology 6xxx``
 
 The QAT ASYM PMD has support for:
 
@@ -483,6 +486,8 @@ 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     |
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
 
 * 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 c8cc86295d..fdcf155e07 100644
@@ -55,6 +55,10 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Updated Intel QuickAssist Technology (QAT) crypto driver.**
+
+  * Added support for Gen 6 QAT devices.
+
 
 Removed Items
 -------------
drivers/common/qat/dev/qat_dev_gen6.c new file +63 -0

63 lines not on this page · raw message

drivers/common/qat/meson.build +2 -0
index b946354a42..db792864a2 100644
@@ -106,6 +106,7 @@ sources += files(
         'dev/qat_dev_gen3.c',
         'dev/qat_dev_gen4.c',
         'dev/qat_dev_gen5.c',
+        'dev/qat_dev_gen6.c',
         'dev/qat_dev_gen_lce.c',
 )
 includes += include_directories(
@@ -138,6 +139,7 @@ if qat_crypto
             'dev/qat_crypto_pmd_gen3.c',
             'dev/qat_crypto_pmd_gen4.c',
             'dev/qat_crypto_pmd_gen5.c',
+            'dev/qat_crypto_pmd_gen6.c',
             'dev/qat_crypto_pmd_gen_lce.c',
         ]
         sources += files(join_paths(qat_crypto_relpath, f))
drivers/common/qat/qat_adf/icp_qat_fw_la.h +6 -1
index 735dfb5103..366e1f2252 100644
@@ -473,7 +473,12 @@ struct icp_qat_fw_la_cipher_20_req_params {
 	uint32_t   spc_aad_sz;
 	uint64_t   spc_aad_addr;
 	uint64_t   spc_auth_res_addr;
-	uint8_t    reserved[3];
+	union {
+		uint8_t    reserved[3];
+		struct {
+			uint8_t hmac_sz;
+		};
+	};
 	uint8_t    spc_auth_res_sz;
 };
 
drivers/common/qat/qat_common.h +1 -0
index 51d20267bd..133a81c856 100644
@@ -34,6 +34,7 @@ enum qat_device_gen {
 	QAT_GEN3,
 	QAT_GEN4,
 	QAT_GEN5,
+	QAT_GEN6,
 	QAT_GEN_LCE,
 	QAT_VQAT,
 	QAT_N_GENS
drivers/common/qat/qat_device.c +5 -0
index 07a8b19583..f0ed115b30 100644
@@ -70,6 +70,9 @@ static const struct rte_pci_id pci_id_qat_map[] = {
 		{
 			RTE_PCI_DEVICE(0x8086, 0x4947),
 		},
+		{
+			RTE_PCI_DEVICE(0x8086, 0x4949),
+		},
 		{
 			RTE_PCI_DEVICE(0x8086, 0x1454),
 		},
@@ -152,6 +155,8 @@ pick_gen(const struct rte_pci_device *pci_dev)
 		return QAT_GEN4;
 	case 0x4947:
 		return QAT_GEN5;
+	case 0x4949:
+		return QAT_GEN6;
 	case 0x1454:
 		return QAT_GEN_LCE;
 	case 0x0da5:
drivers/crypto/qat/dev/qat_crypto_pmd_gen6.c new file +337 -0

337 lines not on this page · raw message

drivers/crypto/qat/qat_sym_session.c +34 -19

117 lines not on this page · raw message

drivers/crypto/qat/qat_sym_session.h +8 -0
index b18673a1f7..e4fb5cacc6 100644
@@ -204,6 +204,14 @@ qat_sym_sesssion_init_common_hdr(struct qat_sym_session *session,
 					struct icp_qat_fw_comn_req_hdr *header,
 					enum qat_sym_proto_flag proto_flags);
 
+int
+qat_sym_cd_auth_set_gen6(struct qat_sym_session *cdesc,
+		const uint8_t *authkey,
+		uint32_t authkeylen,
+		uint32_t aad_length,
+		uint32_t digestsize,
+		unsigned int operation);
+
 int
 qat_sym_validate_aes_key(int key_len, enum icp_qat_hw_cipher_algo *alg);
 int
Signature · 1 line
2.52.0
#1 lore raw

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

Add support for Gen 6 QAT devices

---
v2: added handling of OOP Auth

 doc/guides/cryptodevs/qat.rst                |   5 +
 doc/guides/rel_notes/release_26_11.rst       |   4 +
 drivers/common/qat/dev/qat_dev_gen6.c        |  63 ++++
 drivers/common/qat/meson.build               |   2 +
 drivers/common/qat/qat_adf/icp_qat_fw_la.h   |   7 +-
 drivers/common/qat/qat_common.h              |   1 +
 drivers/common/qat/qat_device.c              |   5 +
 drivers/crypto/qat/dev/qat_crypto_pmd_gen6.c | 374 +++++++++++++++++++
 drivers/crypto/qat/qat_sym_session.c         |  53 ++-
 drivers/crypto/qat/qat_sym_session.h         |   8 +
 10 files changed, 502 insertions(+), 20 deletions(-)
 create mode 100644 drivers/common/qat/dev/qat_dev_gen6.c
 create mode 100644 drivers/crypto/qat/dev/qat_crypto_pmd_gen6.c
doc/guides/cryptodevs/qat.rst +5 -0
index 6c96c5f88d..27713913ae 100644
@@ -28,6 +28,7 @@ poll mode crypto driver support for the following hardware accelerator devices:
 * ``Intel QuickAssist Technology 4xxx``
 * ``Intel QuickAssist Technology 300xx``
 * ``Intel QuickAssist Technology 420xx``
+* ``Intel QuickAssist Technology 6xxx``
 * ``Intel QuickAssist Technology apfxx``
 
 
@@ -142,6 +143,7 @@ Limitations
   generations in the same process if planning to use for GCM.
 * The mixed algo feature on GEN2 is not supported by all kernel drivers. Check
   the notes under the Available Kernel Drivers table below for specific details.
+* Chained cipher and hash operations are not supported on GEN6 devices.
 * Out-of-place is not supported for combined Crypto-CRC DOCSIS security
   protocol.
 * ``RTE_CRYPTO_CIPHER_DES_DOCSISBPI`` is not supported for combined Crypto-CRC
@@ -182,6 +184,7 @@ poll mode crypto driver support for the following hardware accelerator devices:
 * ``Intel QuickAssist Technology 401xxx``
 * ``Intel QuickAssist Technology 300xx``
 * ``Intel QuickAssist Technology 420xx``
+* ``Intel QuickAssist Technology 6xxx``
 
 The QAT ASYM PMD has support for:
 
@@ -483,6 +486,8 @@ 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     |
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
 
 * 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 c8cc86295d..fdcf155e07 100644
@@ -55,6 +55,10 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Updated Intel QuickAssist Technology (QAT) crypto driver.**
+
+  * Added support for Gen 6 QAT devices.
+
 
 Removed Items
 -------------
drivers/common/qat/dev/qat_dev_gen6.c new file +63 -0

63 lines not on this page · raw message

drivers/common/qat/meson.build +2 -0
index b946354a42..db792864a2 100644
@@ -106,6 +106,7 @@ sources += files(
         'dev/qat_dev_gen3.c',
         'dev/qat_dev_gen4.c',
         'dev/qat_dev_gen5.c',
+        'dev/qat_dev_gen6.c',
         'dev/qat_dev_gen_lce.c',
 )
 includes += include_directories(
@@ -138,6 +139,7 @@ if qat_crypto
             'dev/qat_crypto_pmd_gen3.c',
             'dev/qat_crypto_pmd_gen4.c',
             'dev/qat_crypto_pmd_gen5.c',
+            'dev/qat_crypto_pmd_gen6.c',
             'dev/qat_crypto_pmd_gen_lce.c',
         ]
         sources += files(join_paths(qat_crypto_relpath, f))
drivers/common/qat/qat_adf/icp_qat_fw_la.h +6 -1
index 735dfb5103..366e1f2252 100644
@@ -473,7 +473,12 @@ struct icp_qat_fw_la_cipher_20_req_params {
 	uint32_t   spc_aad_sz;
 	uint64_t   spc_aad_addr;
 	uint64_t   spc_auth_res_addr;
-	uint8_t    reserved[3];
+	union {
+		uint8_t    reserved[3];
+		struct {
+			uint8_t hmac_sz;
+		};
+	};
 	uint8_t    spc_auth_res_sz;
 };
 
drivers/common/qat/qat_common.h +1 -0
index 51d20267bd..133a81c856 100644
@@ -34,6 +34,7 @@ enum qat_device_gen {
 	QAT_GEN3,
 	QAT_GEN4,
 	QAT_GEN5,
+	QAT_GEN6,
 	QAT_GEN_LCE,
 	QAT_VQAT,
 	QAT_N_GENS
drivers/common/qat/qat_device.c +5 -0
index 07a8b19583..f0ed115b30 100644
@@ -70,6 +70,9 @@ static const struct rte_pci_id pci_id_qat_map[] = {
 		{
 			RTE_PCI_DEVICE(0x8086, 0x4947),
 		},
+		{
+			RTE_PCI_DEVICE(0x8086, 0x4949),
+		},
 		{
 			RTE_PCI_DEVICE(0x8086, 0x1454),
 		},
@@ -152,6 +155,8 @@ pick_gen(const struct rte_pci_device *pci_dev)
 		return QAT_GEN4;
 	case 0x4947:
 		return QAT_GEN5;
+	case 0x4949:
+		return QAT_GEN6;
 	case 0x1454:
 		return QAT_GEN_LCE;
 	case 0x0da5:
drivers/crypto/qat/dev/qat_crypto_pmd_gen6.c new file +374 -0

374 lines not on this page · raw message

drivers/crypto/qat/qat_sym_session.c +34 -19

117 lines not on this page · raw message

drivers/crypto/qat/qat_sym_session.h +8 -0
index b18673a1f7..e4fb5cacc6 100644
@@ -204,6 +204,14 @@ qat_sym_sesssion_init_common_hdr(struct qat_sym_session *session,
 					struct icp_qat_fw_comn_req_hdr *header,
 					enum qat_sym_proto_flag proto_flags);
 
+int
+qat_sym_cd_auth_set_gen6(struct qat_sym_session *cdesc,
+		const uint8_t *authkey,
+		uint32_t authkeylen,
+		uint32_t aad_length,
+		uint32_t digestsize,
+		unsigned int operation);
+
 int
 qat_sym_validate_aes_key(int key_len, enum icp_qat_hw_cipher_algo *alg);
 int
Signature · 1 line
2.52.0
Acked-by on v2 1/1
#2 lore raw

________________________________
From: Nicolau, Radu <[email protected]>
Sent: Tuesday, October 20, 2026 12:44
To: [email protected] <[email protected]>
Cc: Nicolau, Radu <[email protected]>; Ji, Kai <[email protected]>; Burakov, Anatoly <[email protected]>
Subject: [PATCH v2] crypto/qat: add Gen 6 support

Add support for Gen 6 QAT devices

---
v2: added handling of OOP Auth

 doc/guides/cryptodevs/qat.rst                |   5 +
 doc/guides/rel_notes/release_26_11.rst       |   4 +
 drivers/common/qat/dev/qat_dev_gen6.c        |  63 ++++
 drivers/common/qat/meson.build               |   2 +
 drivers/common/qat/qat_adf/icp_qat_fw_la.h   |   7 +-
 drivers/common/qat/qat_common.h              |   1 +
 drivers/common/qat/qat_device.c              |   5 +
 drivers/crypto/qat/dev/qat_crypto_pmd_gen6.c | 374 +++++++++++++++++++
 drivers/crypto/qat/qat_sym_session.c         |  53 ++-
 drivers/crypto/qat/qat_sym_session.h         |   8 +
 10 files changed, 502 insertions(+), 20 deletions(-)
 create mode 100644 drivers/common/qat/dev/qat_dev_gen6.c
 create mode 100644 drivers/crypto/qat/dev/qat_crypto_pmd_gen6.c
doc/guides/cryptodevs/qat.rst +5 -0
index 6c96c5f88d..27713913ae 100644
@@ -28,6 +28,7 @@ poll mode crypto driver support for the following hardware accelerator devices:
 * ``Intel QuickAssist Technology 4xxx``
 * ``Intel QuickAssist Technology 300xx``
 * ``Intel QuickAssist Technology 420xx``
+* ``Intel QuickAssist Technology 6xxx``
 * ``Intel QuickAssist Technology apfxx``
 
 
@@ -142,6 +143,7 @@ Limitations
   generations in the same process if planning to use for GCM.
 * The mixed algo feature on GEN2 is not supported by all kernel drivers. Check
   the notes under the Available Kernel Drivers table below for specific details.
+* Chained cipher and hash operations are not supported on GEN6 devices.
 * Out-of-place is not supported for combined Crypto-CRC DOCSIS security
   protocol.
 * ``RTE_CRYPTO_CIPHER_DES_DOCSISBPI`` is not supported for combined Crypto-CRC
@@ -182,6 +184,7 @@ poll mode crypto driver support for the following hardware accelerator devices:
 * ``Intel QuickAssist Technology 401xxx``
 * ``Intel QuickAssist Technology 300xx``
 * ``Intel QuickAssist Technology 420xx``
+* ``Intel QuickAssist Technology 6xxx``
 
 The QAT ASYM PMD has support for:
 
@@ -483,6 +486,8 @@ 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     |
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
 
 * 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 c8cc86295d..fdcf155e07 100644
@@ -55,6 +55,10 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Updated Intel QuickAssist Technology (QAT) crypto driver.**
+
+  * Added support for Gen 6 QAT devices.
+
 
 Removed Items
 -------------
drivers/common/qat/dev/qat_dev_gen6.c new file +63 -0

63 lines not on this page · raw message

drivers/common/qat/meson.build +2 -0
index b946354a42..db792864a2 100644
@@ -106,6 +106,7 @@ sources += files(
         'dev/qat_dev_gen3.c',
         'dev/qat_dev_gen4.c',
         'dev/qat_dev_gen5.c',
+        'dev/qat_dev_gen6.c',
         'dev/qat_dev_gen_lce.c',
 )
 includes += include_directories(
@@ -138,6 +139,7 @@ if qat_crypto
             'dev/qat_crypto_pmd_gen3.c',
             'dev/qat_crypto_pmd_gen4.c',
             'dev/qat_crypto_pmd_gen5.c',
+            'dev/qat_crypto_pmd_gen6.c',
             'dev/qat_crypto_pmd_gen_lce.c',
         ]
         sources += files(join_paths(qat_crypto_relpath, f))
drivers/common/qat/qat_adf/icp_qat_fw_la.h +6 -1
index 735dfb5103..366e1f2252 100644
@@ -473,7 +473,12 @@ struct icp_qat_fw_la_cipher_20_req_params {
         uint32_t   spc_aad_sz;
         uint64_t   spc_aad_addr;
         uint64_t   spc_auth_res_addr;
-       uint8_t    reserved[3];
+       union {
+               uint8_t    reserved[3];
+               struct {
+                       uint8_t hmac_sz;
+               };
+       };
         uint8_t    spc_auth_res_sz;
 };
 
drivers/common/qat/qat_common.h +1 -0
index 51d20267bd..133a81c856 100644
@@ -34,6 +34,7 @@ enum qat_device_gen {
         QAT_GEN3,
         QAT_GEN4,
         QAT_GEN5,
+       QAT_GEN6,
         QAT_GEN_LCE,
         QAT_VQAT,
         QAT_N_GENS
drivers/common/qat/qat_device.c +5 -0
index 07a8b19583..f0ed115b30 100644
@@ -70,6 +70,9 @@ static const struct rte_pci_id pci_id_qat_map[] = {
                 {
                         RTE_PCI_DEVICE(0x8086, 0x4947),
                 },
+               {
+                       RTE_PCI_DEVICE(0x8086, 0x4949),
+               },
                 {
                         RTE_PCI_DEVICE(0x8086, 0x1454),
                 },
@@ -152,6 +155,8 @@ pick_gen(const struct rte_pci_device *pci_dev)
                 return QAT_GEN4;
         case 0x4947:
                 return QAT_GEN5;
+       case 0x4949:
+               return QAT_GEN6;
         case 0x1454:
                 return QAT_GEN_LCE;
         case 0x0da5:
drivers/crypto/qat/dev/qat_crypto_pmd_gen6.c new file +374 -0

374 lines not on this page · raw message

drivers/crypto/qat/qat_sym_session.c +34 -19

117 lines not on this page · raw message

drivers/crypto/qat/qat_sym_session.h +8 -0
index b18673a1f7..e4fb5cacc6 100644
@@ -204,6 +204,14 @@ qat_sym_sesssion_init_common_hdr(struct qat_sym_session *session,
                                         struct icp_qat_fw_comn_req_hdr *header,
                                         enum qat_sym_proto_flag proto_flags);
 
+int
+qat_sym_cd_auth_set_gen6(struct qat_sym_session *cdesc,
+               const uint8_t *authkey,
+               uint32_t authkeylen,
+               uint32_t aad_length,
+               uint32_t digestsize,
+               unsigned int operation);
+
 int
 qat_sym_validate_aes_key(int key_len, enum icp_qat_hw_cipher_algo *alg);
 int

--
2.52.0

Applied
#3 lore raw
Quoted 8 lines

From: Nicolau, Radu <[email protected]>
Sent: Tuesday, October 20, 2026 12:44
To: [email protected] <[email protected]>
Cc: Nicolau, Radu <[email protected]>; Ji, Kai <[email protected]>; Burakov, Anatoly <[email protected]>
Subject: [PATCH v2] crypto/qat: add Gen 6 support

Quoted 5 lines

Add support for Gen 6 QAT devices

---

Applied to dpdk-next-crypto