[PATCH 17/46] common/sfc_efx/base: add new X4 port mode

Ivan Malov ivan.malov at arknetworks.am
Wed Apr 16 15:59:47 CEST 2025


From: Denis Pryazhennikov <denis.pryazhennikov at arknetworks.am>

Add handling for the port mode in the Medford4 driver logic,
enabling support for two single network ports.

Signed-off-by: Denis Pryazhennikov <denis.pryazhennikov at arknetworks.am>
Reviewed-by: Andy Moreton <andy.moreton at amd.com>
Reviewed-by: Richard Houldsworth <richard.houldsworth at amd.com>
Reviewed-by: Ivan Malov <ivan.malov at arknetworks.am>
---
 .mailmap                               |  2 +-
 drivers/common/sfc_efx/base/ef10_nic.c | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.mailmap b/.mailmap
index afebbb32e6..1fbad1e1ae 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1295,7 +1295,7 @@ Ricardo Salveti <ricardo.salveti at linaro.org>
 Richael Zhuang <richael.zhuang at arm.com>
 Richard Donkin <richard.donkin at corigine.com>
 Richard Eklycke <richard.eklycke at ericsson.com>
-Richard Houldsworth <rhouldsw at xilinx.com> <rhouldsworth at solarflare.com>
+Richard Houldsworth <richard.houldsworth at amd.com> <rhouldsw at xilinx.com> <rhouldsworth at solarflare.com>
 Richard Walsh <richard.walsh at intel.com>
 Rich Lane <rich.lane at bigswitch.com>
 Ricky Li <ricky.li at intel.com>
diff --git a/drivers/common/sfc_efx/base/ef10_nic.c b/drivers/common/sfc_efx/base/ef10_nic.c
index 0e00ff64d4..e28978e4cc 100644
--- a/drivers/common/sfc_efx/base/ef10_nic.c
+++ b/drivers/common/sfc_efx/base/ef10_nic.c
@@ -1972,6 +1972,16 @@ static struct ef10_external_port_map_s {
 		(1U << TLV_PORT_MODE_4x1_4x1),			/* mode 26 */
 		{ 0, 4, EFX_EXT_PORT_NA, EFX_EXT_PORT_NA }
 	},
+	/*
+	 * Modes that on Medford4 allocate each port number to a separate cage.
+	 *	port 0 -> cage 1
+	 *	port 1 -> cage 2
+	 */
+	{
+		EFX_FAMILY_MEDFORD4,
+		(1U << TLV_PORT_MODE_1x4_1x4),			/* mode 3 */
+		{ 0, 1, EFX_EXT_PORT_NA, EFX_EXT_PORT_NA }
+	},
 	/* FIXME: review Medford4 port modes */
 };
 
-- 
2.39.5



More information about the dev mailing list