diff mbox series

[6/7] net/qede: add support for new HW

Message ID 20210219101422.19121-7-rmody@marvell.com (mailing list archive)
State Superseded
Delegated to: Jerin Jacob
Headers show
Series net/qede: add support for new HW | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Rasesh Mody Feb. 19, 2021, 10:14 a.m. UTC
This patch adds PMD support for new hardware (adding new PCI IDs)
50xxx family of Marvell fastlinq adapters. The PMD version is
updated to 3.0.0.1.

Signed-off-by: Rasesh Mody <rmody@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
---
 drivers/net/qede/qede_debug.c  |  3 +--
 drivers/net/qede/qede_ethdev.c |  8 +++++++-
 drivers/net/qede/qede_ethdev.h | 11 +++++++----
 3 files changed, 15 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/qede/qede_debug.c b/drivers/net/qede/qede_debug.c
index 085d0532b..ca2879432 100644
--- a/drivers/net/qede/qede_debug.c
+++ b/drivers/net/qede/qede_debug.c
@@ -8099,8 +8099,7 @@  void qed_dbg_pf_init(struct ecore_dev *edev)
 	/* Debug values are after init values.
 	 * The offset is the first dword of the file.
 	 */
-	/* TBD: change hardcoded value to offset from FW file */
-	dbg_values = (const u8 *)edev->firmware + 1337296;
+	dbg_values = (const u8 *)edev->firmware + sizeof(u32);
 
 	for_each_hwfn(edev, i) {
 		qed_dbg_set_bin_ptr(&edev->hwfns[i], dbg_values);
diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c
index 668821dcb..8b151e907 100644
--- a/drivers/net/qede/qede_ethdev.c
+++ b/drivers/net/qede/qede_ethdev.c
@@ -374,7 +374,7 @@  static void qede_print_adapter_info(struct rte_eth_dev *dev)
 	DP_INFO(edev, "**************************************************\n");
 	DP_INFO(edev, " %-20s: %s\n", "DPDK version", rte_version());
 	DP_INFO(edev, " %-20s: %s %c%d\n", "Chip details",
-		  ECORE_IS_BB(edev) ? "BB" : "AH",
+		  ECORE_IS_E5(edev) ? "AHP" : ECORE_IS_BB(edev) ? "BB" : "AH",
 		  'A' + edev->chip_rev,
 		  (int)edev->chip_metal);
 	snprintf(ver_str, QEDE_PMD_DRV_VER_STR_SIZE, "%s",
@@ -2811,6 +2811,9 @@  static const struct rte_pci_id pci_id_qedevf_map[] = {
 	{
 		QEDEVF_RTE_PCI_DEVICE(PCI_DEVICE_ID_QLOGIC_AH_IOV)
 	},
+	{
+		QEDEVF_RTE_PCI_DEVICE(PCI_DEVICE_ID_QLOGIC_E5_IOV)
+	},
 	{.vendor_id = 0,}
 };
 
@@ -2846,6 +2849,9 @@  static const struct rte_pci_id pci_id_qede_map[] = {
 	{
 		QEDE_RTE_PCI_DEVICE(PCI_DEVICE_ID_QLOGIC_AH_25G)
 	},
+	{
+		QEDE_RTE_PCI_DEVICE(PCI_DEVICE_ID_QLOGIC_E5)
+	},
 	{.vendor_id = 0,}
 };
 
diff --git a/drivers/net/qede/qede_ethdev.h b/drivers/net/qede/qede_ethdev.h
index da4b87f5e..d065069a9 100644
--- a/drivers/net/qede/qede_ethdev.h
+++ b/drivers/net/qede/qede_ethdev.h
@@ -45,9 +45,9 @@ 
 /* Driver versions */
 #define QEDE_PMD_DRV_VER_STR_SIZE NAME_SIZE /* 128 */
 #define QEDE_PMD_VER_PREFIX		"QEDE PMD"
-#define QEDE_PMD_VERSION_MAJOR		2
-#define QEDE_PMD_VERSION_MINOR	        11
-#define QEDE_PMD_VERSION_REVISION       3
+#define QEDE_PMD_VERSION_MAJOR		3
+#define QEDE_PMD_VERSION_MINOR	        0
+#define QEDE_PMD_VERSION_REVISION       0
 #define QEDE_PMD_VERSION_PATCH	        1
 
 #define QEDE_PMD_DRV_VERSION qede_stringify(QEDE_PMD_VERSION_MAJOR) "."     \
@@ -109,6 +109,8 @@ 
 #define CHIP_NUM_AH_40G			       0x8072
 #define CHIP_NUM_AH_25G			       0x8073
 #define CHIP_NUM_AH_IOV			       0x8090
+#define CHIP_NUM_E5			       0x8170
+#define CHIP_NUM_E5_IOV			       0x8190
 
 #define PCI_DEVICE_ID_QLOGIC_NX2_57980E        CHIP_NUM_57980E
 #define PCI_DEVICE_ID_QLOGIC_NX2_57980S        CHIP_NUM_57980S
@@ -123,7 +125,8 @@ 
 #define PCI_DEVICE_ID_QLOGIC_AH_40G            CHIP_NUM_AH_40G
 #define PCI_DEVICE_ID_QLOGIC_AH_25G            CHIP_NUM_AH_25G
 #define PCI_DEVICE_ID_QLOGIC_AH_IOV            CHIP_NUM_AH_IOV
-
+#define PCI_DEVICE_ID_QLOGIC_E5                CHIP_NUM_E5
+#define PCI_DEVICE_ID_QLOGIC_E5_IOV            CHIP_NUM_E5_IOV
 
 
 extern char qede_fw_file[];