Skip to contentSkip to conversation

common/octeotx2: add support for C0 silicon version

PATCH Applied Nithin Dabilpuram 2 participants 2 messages Jan 13, 2020 – Jan 14, 2020 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common/octeotx2: add support for C0 silicon version

Avoid using PCI subsystem device id for SoC revision identification and just use PCI revision id to support C0 silicon. This patch also reduces SQB threshold to 70% to have sufficient buffer before we overflow SQ.

---
 drivers/common/octeontx2/otx2_common.h | 3 ---
 drivers/common/octeontx2/otx2_dev.h    | 6 +-----
 drivers/net/octeontx2/otx2_ethdev.h    | 2 +-
 3 files changed, 2 insertions(+), 9 deletions(-)
drivers/common/octeontx2/otx2_common.h +0 -3
index f62c45d..c64d373 100644
@@ -124,9 +124,6 @@ extern int otx2_logtype_dpi;
 #define PCI_DEVID_OCTEONTX2_RVU_SDP_PF		0xA0f6
 #define PCI_DEVID_OCTEONTX2_RVU_SDP_VF		0xA0f7
 
-/* Subsystem Device ID */
-#define PCI_SUBSYS_DEVID_96XX_95XX		0xB200
-
 /*
  * REVID for RVU PCIe devices.
  * Bits 0..1: minor pass
drivers/common/octeontx2/otx2_dev.h +1 -5
index 7d9839c..0b0a949 100644
@@ -103,11 +103,7 @@ otx2_dev_init(struct rte_pci_device *pci_dev, void *otx2_dev)
 		return rc;
 	}
 
-	if (pci_dev->id.subsystem_device_id == PCI_SUBSYS_DEVID_96XX_95XX)
-		dev->hwcap = rev_id;
-	else
-		dev->hwcap = 0;
-
+	dev->hwcap = rev_id;
 	return otx2_dev_priv_init(pci_dev, otx2_dev);
 }
 
drivers/net/octeontx2/otx2_ethdev.h +1 -1
index 987e760..7f1d0f0 100644
@@ -79,7 +79,7 @@
 #define NIX_RX_NB_SEG_MAX		6
 #define NIX_CQ_ENTRY_SZ			128
 #define NIX_CQ_ALIGN			512
-#define NIX_SQB_LOWER_THRESH		90
+#define NIX_SQB_LOWER_THRESH		70
 #define LMT_SLOT_MASK			0x7f
 #define NIX_RX_DEFAULT_RING_SZ		4096
 
Signature · 1 line
2.8.4
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 7 lines · Nithin Dabilpuram

Avoid using PCI subsystem device id for SoC revision identification and just use PCI revision id to support C0 silicon. This patch also reduces SQB threshold to 70% to have sufficient buffer before we overflow SQ.

Fixed the typo in subject s/octeotx2/octeontx2/

Applied to dpdk-next-net-mrvl/master. Thanks

Quoted 53 lines
---
 drivers/common/octeontx2/otx2_common.h | 3 ---
 drivers/common/octeontx2/otx2_dev.h    | 6 +-----
 drivers/net/octeontx2/otx2_ethdev.h    | 2 +-
 3 files changed, 2 insertions(+), 9 deletions(-)
drivers/common/octeontx2/otx2_common.h +0 -3
index f62c45d..c64d373 100644
@@ -124,9 +124,6 @@ extern int otx2_logtype_dpi;
 #define PCI_DEVID_OCTEONTX2_RVU_SDP_PF         0xA0f6
 #define PCI_DEVID_OCTEONTX2_RVU_SDP_VF         0xA0f7
 
-/* Subsystem Device ID */
-#define PCI_SUBSYS_DEVID_96XX_95XX             0xB200
-
 /*
  * REVID for RVU PCIe devices.
  * Bits 0..1: minor pass
drivers/common/octeontx2/otx2_dev.h +1 -5
index 7d9839c..0b0a949 100644
@@ -103,11 +103,7 @@ otx2_dev_init(struct rte_pci_device *pci_dev, void *otx2_dev)
                return rc;
        }
 
-       if (pci_dev->id.subsystem_device_id == PCI_SUBSYS_DEVID_96XX_95XX)
-               dev->hwcap = rev_id;
-       else
-               dev->hwcap = 0;
-
+       dev->hwcap = rev_id;
        return otx2_dev_priv_init(pci_dev, otx2_dev);
 }
 
drivers/net/octeontx2/otx2_ethdev.h +1 -2
index 987e760..7f1d0f0 100644
@@ -79,7 +79,7 @@
 #define NIX_RX_NB_SEG_MAX              6
 #define NIX_CQ_ENTRY_SZ                        128
 #define NIX_CQ_ALIGN                   512
-#define NIX_SQB_LOWER_THRESH           90
+#define NIX_SQB_LOWER_THRESH           70
 #define LMT_SLOT_MASK                  0x7f
 #define NIX_RX_DEFAULT_RING_SZ         4096
 
--

2.8.4