Skip to contentSkip to conversation

crypto/cnxk: add PCI ID for cn9k

PATCH Applied Anoob Joseph 3 participants 3 messages Jul 9, 2021 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/cnxk: add PCI ID for cn9k

Add PCI ID for crypo_cn9k PMD.

To avoid conflicting PCI ID in crypto_octeontx2 and crypto_cn9k PMDs, disable crypto_cn9k PMD when built with octeontx2 config.

The lack of PCI ID is causing debug build to fail for crypto_cn9k PMD.

---
 config/arm/arm64_octeontx2_linux_gcc | 1 +
 drivers/crypto/cnxk/cn9k_cryptodev.c | 2 ++
 2 files changed, 3 insertions(+)
config/arm/arm64_octeontx2_linux_gcc +1 -0
index 9156ee5..8fbdd38 100644
@@ -14,3 +14,4 @@ endian = 'little'
 
 [properties]
 platform = 'octeontx2'
+disable_drivers = 'common/cnxk'
drivers/crypto/cnxk/cn9k_cryptodev.c +2 -0
index e74e739..71d144f 100644
@@ -21,6 +21,8 @@ uint8_t cn9k_cryptodev_driver_id;
 
 static struct rte_pci_id pci_id_cpt_table[] = {
 	{
+		RTE_PCI_DEVICE(PCI_VENDOR_ID_CAVIUM,
+			       PCI_DEVID_CN9K_RVU_CPT_VF)
 	},
 	/* sentinel */
 	{
Signature · 1 line
2.7.4
#1 lore raw
Quoted 6 lines

Add PCI ID for crypo_cn9k PMD.

To avoid conflicting PCI ID in crypto_octeontx2 and crypto_cn9k PMDs, disable crypto_cn9k PMD when built with octeontx2 config.

Quoted 7 lines

The lack of PCI ID is causing debug build to fail for crypto_cn9k PMD.

---

Thomas,

Can you pick this directly on main?

Regards,
Akhil

#2 lore raw
In reply to Anoob Joseph
Quoted 7 lines · Anoob Joseph

Add PCI ID for crypo_cn9k PMD.

To avoid conflicting PCI ID in crypto_octeontx2 and crypto_cn9k PMDs, disable crypto_cn9k PMD when built with octeontx2 config.

Quoted 6 lines

The lack of PCI ID is causing debug build to fail for crypto_cn9k PMD.

Applied, thanks.

Signature · 1 line
David Marchand