Skip to contentSkip to conversation

common/qat: enable gen4 c devices

PATCH In review Ciara Power 4 participants 9 messages Aug 11, 2023 – Oct 11, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common/qat: enable gen4 c devices

This commit enables QAT 2.0c devices in the
Intel QuickAssist Technology PMD.

---
 doc/guides/cryptodevs/qat.rst          | 4 ++++
 doc/guides/rel_notes/release_23_11.rst | 3 +++
 drivers/common/qat/qat_device.c        | 4 ++++
 3 files changed, 11 insertions(+)
doc/guides/cryptodevs/qat.rst +4 -0
index afdfb0bd22..fc5a212d00 100644
@@ -457,6 +457,10 @@ to see the full table)
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
    | Yes | No  | No  | 4   | 401xxx   | IDZ/ N/A      | qat_401xxx    | 4xxx       | 4942   | 2    | 4943   | 16     |
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
+   | Yes | Yes | Yes | 4   | 402xxx   | linux/6.4+    | qat_402xxx    | 4xxx       | 4944   | 2    | 4945   | 16     |
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
+   | Yes | No  | No  | 4   | 402xxx   | IDZ/ N/A      | qat_402xxx    | 4xxx       | 4944   | 2    | 4945   | 16     |
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
 
 * Note: Symmetric mixed crypto algorithms feature on Gen 2 works only with IDZ driver version 4.9.0+
 
doc/guides/rel_notes/release_23_11.rst +3 -0
index 4411bb32c1..3bdd51a4a5 100644
@@ -72,6 +72,9 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Added support for QAT 2.0c devices to Intel QuickAssist Technology PMD.**
+
+  * QAT 2.0c (4944) devices are now enabled for QAT.
 
 Removed Items
 -------------
drivers/common/qat/qat_device.c +4 -0
index 2675f0d9d1..cbf1e6a988 100644
@@ -50,6 +50,9 @@ static const struct rte_pci_id pci_id_qat_map[] = {
 		{
 			RTE_PCI_DEVICE(0x8086, 0x4943),
 		},
+		{
+			RTE_PCI_DEVICE(0x8086, 0x4945),
+		},
 		{.device_id = 0},
 };
 
@@ -202,6 +205,7 @@ qat_pci_device_allocate(struct rte_pci_device *pci_dev,
 		break;
 	case 0x4941:
 	case 0x4943:
+	case 0x4945:
 		qat_dev_gen = QAT_GEN4;
 		break;
 	default:
Signature · 1 line
2.25.1
#1 lore raw

Hello Ciara,

Quoted 3 lines · Ciara Power

This commit enables QAT 2.0c devices in the
Intel QuickAssist Technology PMD.

It is hard to make a link between the commit title "gen 4 c devices", the table below "402xxx" and the release notes "QAT 2.0c". Can you use a single designation of this new device?

Quoted 13 lines
---
 doc/guides/cryptodevs/qat.rst          | 4 ++++
 doc/guides/rel_notes/release_23_11.rst | 3 +++
 drivers/common/qat/qat_device.c        | 4 ++++
 3 files changed, 11 insertions(+)
doc/guides/cryptodevs/qat.rst +0 -0
index afdfb0bd22..fc5a212d00 100644

doc/guides/cryptodevs/qat.rst to see the full table) · line 463

Quoted 7 lines
doc/guides/cryptodevs/qat.rst +4 -0
@@ -457,6 +457,10 @@ to see the full table)
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
    | Yes | No  | No  | 4   | 401xxx   | IDZ/ N/A      | qat_401xxx    | 4xxx       | 4942   | 2    | 4943   | 16     |
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
+   | Yes | Yes | Yes | 4   | 402xxx   | linux/6.4+    | qat_402xxx    | 4xxx       | 4944   | 2    | 4945   | 16     |
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
+   | Yes | No  | No  | 4   | 402xxx   | IDZ/ N/A      | qat_402xxx    | 4xxx       | 4944   | 2    | 4945   | 16     |
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+

Is there such a kernel module named qat_402xxx upstream? I can only find qat_4xxx.

Quoted 8 lines
doc/guides/cryptodevs/qat.rst +0 -0
 * Note: Symmetric mixed crypto algorithms feature on Gen 2 works only with IDZ driver version 4.9.0+
 
doc/guides/rel_notes/release_23_11.rst +0 -0
index 4411bb32c1..3bdd51a4a5 100644

doc/guides/rel_notes/release_23_11.rst New Features · line 77

Quoted 6 lines
doc/guides/rel_notes/release_23_11.rst +3 -0
@@ -72,6 +72,9 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Added support for QAT 2.0c devices to Intel QuickAssist Technology PMD.**
+
+  * QAT 2.0c (4944) devices are now enabled for QAT.

Missing an empty line.

Quoted 28 lines
doc/guides/rel_notes/release_23_11.rst +0 -0
 Removed Items
 -------------
drivers/common/qat/qat_device.c +4 -1
index 2675f0d9d1..cbf1e6a988 100644
@@ -50,6 +50,9 @@ static const struct rte_pci_id pci_id_qat_map[] = {
                {
                        RTE_PCI_DEVICE(0x8086, 0x4943),
                },
+               {
+                       RTE_PCI_DEVICE(0x8086, 0x4945),
+               },
                {.device_id = 0},
 };
 
@@ -202,6 +205,7 @@ qat_pci_device_allocate(struct rte_pci_device *pci_dev,
                break;
        case 0x4941:
        case 0x4943:
+       case 0x4945:
                qat_dev_gen = QAT_GEN4;
                break;
        default:
--

2.25.1

Signature · 1 line
David Marchand
#2 lore raw

Hi David,

Quoted 11 lines
Quoted 1 line
    +-----+-----+-----+-----+----------+---------------+---------------+------------+---

-----+------+--------+--------+

Quoted 1 line

| Yes | No | No | 4 | 401xxx | IDZ/ N/A | qat_401xxx | 4xxx |

4942 | 2 | 4943 | 16 |

Quoted 4 lines

+-----+-----+-----+-----+----------+---------------+---------------+--
----------+--------+------+--------+--------+
+ | Yes | Yes | Yes | 4 | 402xxx | linux/6.4+ | qat_402xxx | 4xxx |

4944 | 2 | 4945 | 16 |

Quoted 1 line

+ +-----+-----+-----+-----+----------+---------------+---------------+------------+--

------+------+--------+--------+

Quoted 9 lines
Quoted 1 line

+ | Yes | No | No | 4 | 402xxx | IDZ/ N/A | qat_402xxx | 4xxx |

4944 | 2 | 4945 | 16 |

Quoted 3 lines

+
+ +-----+-----+-----+-----+----------+---------------+---------------+
+ ------------+--------+------+--------+--------+

Is there such a kernel module named qat_402xxx upstream? I can only find qat_4xxx.

Good catch, you're right, there is no kernel module 402xxx. These devices fall under the original 4xxx driver. Will update here, and send a fix for the 401xxx entry later.

Have sent a v2 addressing the above comments:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/

Thanks,
Ciara

#3 lore raw

Hello Ciara,

Quoted 17 lines · Ciara
Quoted 17 lines
Quoted 1 line
    +-----+-----+-----+-----+----------+---------------+---------------+------------+---

-----+------+--------+--------+

Quoted 1 line

| Yes | No | No | 4 | 401xxx | IDZ/ N/A | qat_401xxx | 4xxx |

4942 | 2 | 4943 | 16 |

Quoted 4 lines

+-----+-----+-----+-----+----------+---------------+---------------+--
----------+--------+------+--------+--------+
+ | Yes | Yes | Yes | 4 | 402xxx | linux/6.4+ | qat_402xxx | 4xxx |

4944 | 2 | 4945 | 16 |

Quoted 1 line

+ +-----+-----+-----+-----+----------+---------------+---------------+------------+--

------+------+--------+--------+

Quoted 1 line

+ | Yes | No | No | 4 | 402xxx | IDZ/ N/A | qat_402xxx | 4xxx |

4944 | 2 | 4945 | 16 |

Quoted 3 lines

+
+ +-----+-----+-----+-----+----------+---------------+---------------+
+ ------------+--------+------+--------+--------+

Quoted 6 lines
Quoted 3 lines

Is there such a kernel module named qat_402xxx upstream? I can only find qat_4xxx.

Good catch, you're right, there is no kernel module 402xxx. These devices fall under the original 4xxx driver. Will update here, and send a fix for the 401xxx entry later.

I noticed this patch for 402xxx pulled in the main branch. Don't forget to send the fix on 401xxx entry please.

Signature · 1 line
David Marchand
#4 lore raw

PATCH v2 1/1 common/qat: enable QAT 2.0c devices

In reply to Ciara Power

This commit enables QAT 2.0c devices in the
Intel QuickAssist Technology PMD.
These are 4th Generation QAT, 402xx devices.

---
v2:
- Fixed kernel module.
- Modified commit to align naming of new QAT device.

---
 doc/guides/cryptodevs/qat.rst          | 4 ++++
 doc/guides/rel_notes/release_23_11.rst | 4 ++++
 drivers/common/qat/qat_device.c        | 4 ++++
 3 files changed, 12 insertions(+)
doc/guides/cryptodevs/qat.rst +4 -0
index afdfb0bd22..730113da33 100644
@@ -457,6 +457,10 @@ to see the full table)
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
    | Yes | No  | No  | 4   | 401xxx   | IDZ/ N/A      | qat_401xxx    | 4xxx       | 4942   | 2    | 4943   | 16     |
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
+   | Yes | Yes | Yes | 4   | 402xx    | linux/6.4+    | qat_4xxx      | 4xxx       | 4944   | 2    | 4945   | 16     |
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
+   | Yes | No  | No  | 4   | 402xx    | IDZ/ N/A      | qat_4xxx      | 4xxx       | 4944   | 2    | 4945   | 16     |
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+--------+------+--------+--------+
 
 * Note: Symmetric mixed crypto algorithms feature on Gen 2 works only with IDZ driver version 4.9.0+
 
doc/guides/rel_notes/release_23_11.rst +4 -0
index 4411bb32c1..72dfb3fbf0 100644
@@ -72,6 +72,10 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Added support for QAT 2.0c devices to Intel QuickAssist Technology PMD.**
+
+  * QAT 2.0c (4944) devices are now enabled for QAT.
+
 
 Removed Items
 -------------
drivers/common/qat/qat_device.c +4 -0
index 2675f0d9d1..cbf1e6a988 100644
@@ -50,6 +50,9 @@ static const struct rte_pci_id pci_id_qat_map[] = {
 		{
 			RTE_PCI_DEVICE(0x8086, 0x4943),
 		},
+		{
+			RTE_PCI_DEVICE(0x8086, 0x4945),
+		},
 		{.device_id = 0},
 };
 
@@ -202,6 +205,7 @@ qat_pci_device_allocate(struct rte_pci_device *pci_dev,
 		break;
 	case 0x4941:
 	case 0x4943:
+	case 0x4945:
 		qat_dev_gen = QAT_GEN4;
 		break;
 	default:
Signature · 1 line
2.25.1
Acked-by on v2 1/1
#5 lore raw

RE: [PATCH v2] common/qat: enable QAT 2.0c devices

Hi Ciara,

Quoted 88 lines

-----Original Message-----
From: Ciara Power <[email protected]>
Sent: Monday, August 21, 2023 10:34 AM
To: [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; [email protected]; Power, Ciara <[email protected]>; Ji, Kai <[email protected]>
Subject: [PATCH v2] common/qat: enable QAT 2.0c devices

This commit enables QAT 2.0c devices in the Intel QuickAssist Technology PMD.
These are 4th Generation QAT, 402xx devices.

---
v2:
- Fixed kernel module.
- Modified commit to align naming of new QAT device.

---
 doc/guides/cryptodevs/qat.rst          | 4 ++++
 doc/guides/rel_notes/release_23_11.rst | 4 ++++
 drivers/common/qat/qat_device.c        | 4 ++++
 3 files changed, 12 insertions(+)
doc/guides/cryptodevs/qat.rst +0 -1
index afdfb0bd22..730113da33 100644
@@ -457,6 +457,10 @@ to see the full table)
    +-----+-----+-----+-----+----------+---------------+---------------+------------+-------
-+------+--------+--------+
    | Yes | No  | No  | 4   | 401xxx   | IDZ/ N/A      | qat_401xxx    | 4xxx       |

4942 | 2 | 4943 | 16 |

    +-----+-----+-----+-----+----------+---------------+---------------+------------+-------

-+------+--------+--------+
+ | Yes | Yes | Yes | 4 | 402xx | linux/6.4+ | qat_4xxx | 4xxx | 4944
| 2 | 4945 | 16 |

doc/guides/cryptodevs/qat.rst +2 -1
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+------
--+------+--------+--------+
+   | Yes | No  | No  | 4   | 402xx    | IDZ/ N/A      | qat_4xxx      | 4xxx       | 4944

| 2 | 4945 | 16 |
+
+ +-----+-----+-----+-----+----------+---------------+---------------+--
+ ----------+--------+------+--------+--------+

* Note: Symmetric mixed crypto algorithms feature on Gen 2 works only with
IDZ driver version 4.9.0+

doc/guides/rel_notes/release_23_11.rst +5 -0
index 4411bb32c1..72dfb3fbf0 100644
@@ -72,6 +72,10 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Added support for QAT 2.0c devices to Intel QuickAssist Technology
+PMD.**
+
+  * QAT 2.0c (4944) devices are now enabled for QAT.
+
 
 Removed Items
 -------------
(quoted diff) +0 -0

b/drivers/common/qat/qat_device.c index 2675f0d9d1..cbf1e6a988 100644

drivers/common/qat/qat_device.c +4 -0
@@ -50,6 +50,9 @@ static const struct rte_pci_id pci_id_qat_map[] = {
 		{
 			RTE_PCI_DEVICE(0x8086, 0x4943),
 		},
+		{
+			RTE_PCI_DEVICE(0x8086, 0x4945),
+		},
 		{.device_id = 0},
 };
 
@@ -202,6 +205,7 @@ qat_pci_device_allocate(struct rte_pci_device
 *pci_dev,
 		break;
 	case 0x4941:
 	case 0x4943:
+	case 0x4945:
 		qat_dev_gen = QAT_GEN4;
 		break;
Quoted 3 lines

default:
--
2.25.1

#6 lore raw

RE: [EXT] [PATCH v2] common/qat: enable QAT 2.0c devices

In reply to Ciara Power
Quoted 51 lines

This commit enables QAT 2.0c devices in the
Intel QuickAssist Technology PMD.
These are 4th Generation QAT, 402xx devices.

---
v2:
- Fixed kernel module.
- Modified commit to align naming of new QAT device.

---
 doc/guides/cryptodevs/qat.rst          | 4 ++++
 doc/guides/rel_notes/release_23_11.rst | 4 ++++
 drivers/common/qat/qat_device.c        | 4 ++++
 3 files changed, 12 insertions(+)
doc/guides/cryptodevs/qat.rst +1 -0
index afdfb0bd22..730113da33 100644
@@ -457,6 +457,10 @@ to see the full table)
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------
+------+--------+--------+
    | Yes | No  | No  | 4   | 401xxx   | IDZ/ N/A      | qat_401xxx    | 4xxx       | 4942
| 2    | 4943   | 16     |
    +-----+-----+-----+-----+----------+---------------+---------------+------------+--------
+------+--------+--------+
+   | Yes | Yes | Yes | 4   | 402xx    | linux/6.4+    | qat_4xxx      | 4xxx       | 4944
| 2    | 4945   | 16     |
doc/guides/cryptodevs/qat.rst +3 -0
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+--------
+------+--------+--------+
+   | Yes | No  | No  | 4   | 402xx    | IDZ/ N/A      | qat_4xxx      | 4xxx       | 4944
| 2    | 4945   | 16     |
+   +-----+-----+-----+-----+----------+---------------+---------------+------------+--------
+------+--------+--------+

* Note: Symmetric mixed crypto algorithms feature on Gen 2 works only with
IDZ driver version 4.9.0+

doc/guides/rel_notes/release_23_11.rst +1 -0
index 4411bb32c1..72dfb3fbf0 100644
@@ -72,6 +72,10 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Added support for QAT 2.0c devices to Intel QuickAssist Technology

PMD.**

doc/guides/rel_notes/release_23_11.rst New Features · line 77

Quoted 2 lines
doc/guides/rel_notes/release_23_11.rst +2 -0
+
+  * QAT 2.0c (4944) devices are now enabled for QAT.

Is it 4944 or 4945? In the code below, the PCI device added is 4945

Quoted 29 lines
doc/guides/rel_notes/release_23_11.rst +1 -0
+
 
 Removed Items
 -------------
drivers/common/qat/qat_device.c +4 -1
index 2675f0d9d1..cbf1e6a988 100644
@@ -50,6 +50,9 @@ static const struct rte_pci_id pci_id_qat_map[] = {
 		{
 			RTE_PCI_DEVICE(0x8086, 0x4943),
 		},
+		{
+			RTE_PCI_DEVICE(0x8086, 0x4945),
+		},
 		{.device_id = 0},
 };
 
@@ -202,6 +205,7 @@ qat_pci_device_allocate(struct rte_pci_device *pci_dev,
 		break;
 	case 0x4941:
 	case 0x4943:
+	case 0x4945:
 		qat_dev_gen = QAT_GEN4;
 		break;
 	default:
--

2.25.1

#7 lore raw

RE: [EXT] [PATCH v2] common/qat: enable QAT 2.0c devices

Hi Akhil,

Quoted 67 lines

-----Original Message-----
From: Akhil Goyal <[email protected]>
Sent: Tuesday, September 19, 2023 6:50 AM
To: Power, Ciara <[email protected]>; [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; [email protected]; Ji, Kai <[email protected]>
Subject: RE: [EXT] [PATCH v2] common/qat: enable QAT 2.0c devices

Quoted 21 lines

This commit enables QAT 2.0c devices in the Intel QuickAssist Technology PMD.
These are 4th Generation QAT, 402xx devices.

---
v2:
- Fixed kernel module.
- Modified commit to align naming of new QAT device.

---
 doc/guides/cryptodevs/qat.rst          | 4 ++++
 doc/guides/rel_notes/release_23_11.rst | 4 ++++
 drivers/common/qat/qat_device.c        | 4 ++++
 3 files changed, 12 insertions(+)
(quoted diff) +0 -0

b/doc/guides/cryptodevs/qat.rst index afdfb0bd22..730113da33 100644

doc/guides/cryptodevs/qat.rst to see the full table) · line 460

Quoted 5 lines
doc/guides/cryptodevs/qat.rst +2 -1
@@ -457,6 +457,10 @@ to see the full table)
 
+-----+-----+-----+-----+----------+---------------+---------------+--
----------+--------
+------+--------+--------+
    | Yes | No  | No  | 4   | 401xxx   | IDZ/ N/A      | qat_401xxx    | 4xxx       |

4942

doc/guides/cryptodevs/qat.rst

Quoted 12 lines

| 2 | 4943 | 16 |

+-----+-----+-----+-----+----------+---------------+---------------+--
----------+--------

+------+--------+--------+
+   | Yes | Yes | Yes | 4   | 402xx    | linux/6.4+    | qat_4xxx      | 4xxx       | 4944
| 2    | 4945   | 16     |
doc/guides/cryptodevs/qat.rst +5 -0
+
+ +-----+-----+-----+-----+----------+---------------+---------------+
+ ------------+--------
+------+--------+--------+
+   | Yes | No  | No  | 4   | 402xx    | IDZ/ N/A      | qat_4xxx      | 4xxx       |

4944

Quoted 18 lines

| 2 | 4945 | 16 |
+
+ +-----+-----+-----+-----+----------+---------------+---------------+
+ ------------+--------
+------+--------+--------+

* Note: Symmetric mixed crypto algorithms feature on Gen 2 works only
with IDZ driver version 4.9.0+

doc/guides/rel_notes/release_23_11.rst +0 -0
index 4411bb32c1..72dfb3fbf0 100644
@@ -72,6 +72,10 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
Quoted 7 lines

doc/guides/rel_notes/release_23_11.rst New Features · line 77

Quoted 5 lines
doc/guides/rel_notes/release_23_11.rst +2 -0
+* **Added support for QAT 2.0c devices to Intel QuickAssist
+Technology

PMD.**

doc/guides/rel_notes/release_23_11.rst +2 -0
+
+  * QAT 2.0c (4944) devices are now enabled for QAT.

Is it 4944 or 4945? In the code below, the PCI device added is 4945

The device PF ID is 4944, but the corresponding VF ID used in DPDK for the device is 4945.

Thanks,
Ciara

Applied
#8 lore raw

RE: [EXT] [PATCH v2] common/qat: enable QAT 2.0c devices

Quoted 7 lines
Quoted 7 lines

Subject: RE: [EXT] [PATCH v2] common/qat: enable QAT 2.0c devices

Quoted 4 lines

This commit enables QAT 2.0c devices in the Intel QuickAssist Technology PMD.
These are 4th Generation QAT, 402xx devices.

Quoted 7 lines
Quoted 4 lines
Quoted 3 lines

---

Is it 4944 or 4945? In the code below, the PCI device added is 4945

The device PF ID is 4944, but the corresponding VF ID used in DPDK for the device is 4945.

Applied to dpdk-next-crypto.
Thanks.