netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iwl-next v2] ixgbe: add the 2.5G and 5G speeds in auto-negotiation for E610
@ 2025-07-04 13:06 Piotr Kwapulinski
  2025-07-07 16:34 ` Simon Horman
  2025-07-24 10:44 ` [Intel-wired-lan] " Rinitha, SX
  0 siblings, 2 replies; 4+ messages in thread
From: Piotr Kwapulinski @ 2025-07-04 13:06 UTC (permalink / raw)
  To: intel-wired-lan
  Cc: netdev, andrew, pmenzel, Piotr Kwapulinski, Przemek Kitszel

The auto-negotiation limitation for 2.5G and 5G speeds is no longer true
for X550 successors like E610 adapter. Enable the 2.5G and 5G speeds in
auto-negotiation for E610 at driver load.

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
---
v1 -> v2
  More details in commit message
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 35 +++++++------------
 1 file changed, 12 insertions(+), 23 deletions(-)

diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c
index d741164..b202639 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c
@@ -1953,6 +1953,16 @@ int ixgbe_identify_phy_e610(struct ixgbe_hw *hw)
 	    phy_type_low  & IXGBE_PHY_TYPE_LOW_1G_SGMII    ||
 	    phy_type_high & IXGBE_PHY_TYPE_HIGH_1G_USXGMII)
 		hw->phy.speeds_supported |= IXGBE_LINK_SPEED_1GB_FULL;
+	if (phy_type_low  & IXGBE_PHY_TYPE_LOW_2500BASE_T   ||
+	    phy_type_low  & IXGBE_PHY_TYPE_LOW_2500BASE_X   ||
+	    phy_type_low  & IXGBE_PHY_TYPE_LOW_2500BASE_KX  ||
+	    phy_type_high & IXGBE_PHY_TYPE_HIGH_2500M_SGMII ||
+	    phy_type_high & IXGBE_PHY_TYPE_HIGH_2500M_USXGMII)
+		hw->phy.speeds_supported |= IXGBE_LINK_SPEED_2_5GB_FULL;
+	if (phy_type_low  & IXGBE_PHY_TYPE_LOW_5GBASE_T  ||
+	    phy_type_low  & IXGBE_PHY_TYPE_LOW_5GBASE_KR ||
+	    phy_type_high & IXGBE_PHY_TYPE_HIGH_5G_USXGMII)
+		hw->phy.speeds_supported |= IXGBE_LINK_SPEED_5GB_FULL;
 	if (phy_type_low  & IXGBE_PHY_TYPE_LOW_10GBASE_T       ||
 	    phy_type_low  & IXGBE_PHY_TYPE_LOW_10G_SFI_DA      ||
 	    phy_type_low  & IXGBE_PHY_TYPE_LOW_10GBASE_SR      ||
@@ -1963,31 +1973,10 @@ int ixgbe_identify_phy_e610(struct ixgbe_hw *hw)
 	    phy_type_high & IXGBE_PHY_TYPE_HIGH_10G_USXGMII)
 		hw->phy.speeds_supported |= IXGBE_LINK_SPEED_10GB_FULL;
 
-	/* 2.5 and 5 Gbps link speeds must be excluded from the
-	 * auto-negotiation set used during driver initialization due to
-	 * compatibility issues with certain switches. Those issues do not
-	 * exist in case of E610 2.5G SKU device (0x57b1).
-	 */
-	if (!hw->phy.autoneg_advertised &&
-	    hw->device_id != IXGBE_DEV_ID_E610_2_5G_T)
+	/* Initialize autoneg speeds */
+	if (!hw->phy.autoneg_advertised)
 		hw->phy.autoneg_advertised = hw->phy.speeds_supported;
 
-	if (phy_type_low  & IXGBE_PHY_TYPE_LOW_2500BASE_T   ||
-	    phy_type_low  & IXGBE_PHY_TYPE_LOW_2500BASE_X   ||
-	    phy_type_low  & IXGBE_PHY_TYPE_LOW_2500BASE_KX  ||
-	    phy_type_high & IXGBE_PHY_TYPE_HIGH_2500M_SGMII ||
-	    phy_type_high & IXGBE_PHY_TYPE_HIGH_2500M_USXGMII)
-		hw->phy.speeds_supported |= IXGBE_LINK_SPEED_2_5GB_FULL;
-
-	if (!hw->phy.autoneg_advertised &&
-	    hw->device_id == IXGBE_DEV_ID_E610_2_5G_T)
-		hw->phy.autoneg_advertised = hw->phy.speeds_supported;
-
-	if (phy_type_low  & IXGBE_PHY_TYPE_LOW_5GBASE_T  ||
-	    phy_type_low  & IXGBE_PHY_TYPE_LOW_5GBASE_KR ||
-	    phy_type_high & IXGBE_PHY_TYPE_HIGH_5G_USXGMII)
-		hw->phy.speeds_supported |= IXGBE_LINK_SPEED_5GB_FULL;
-
 	/* Set PHY ID */
 	memcpy(&hw->phy.id, pcaps.phy_id_oui, sizeof(u32));
 
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [iwl-next v2] ixgbe: add the 2.5G and 5G speeds in auto-negotiation for E610
  2025-07-04 13:06 [iwl-next v2] ixgbe: add the 2.5G and 5G speeds in auto-negotiation for E610 Piotr Kwapulinski
@ 2025-07-07 16:34 ` Simon Horman
  2025-07-24 10:44 ` [Intel-wired-lan] " Rinitha, SX
  1 sibling, 0 replies; 4+ messages in thread
From: Simon Horman @ 2025-07-07 16:34 UTC (permalink / raw)
  To: Piotr Kwapulinski
  Cc: intel-wired-lan, netdev, andrew, pmenzel, Przemek Kitszel

On Fri, Jul 04, 2025 at 03:06:24PM +0200, Piotr Kwapulinski wrote:
> The auto-negotiation limitation for 2.5G and 5G speeds is no longer true
> for X550 successors like E610 adapter. Enable the 2.5G and 5G speeds in
> auto-negotiation for E610 at driver load.
> 
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>

Reviewed-by: Simon Horman <horms@kernel.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [Intel-wired-lan] [iwl-next v2] ixgbe: add the 2.5G and 5G speeds in auto-negotiation for E610
  2025-07-04 13:06 [iwl-next v2] ixgbe: add the 2.5G and 5G speeds in auto-negotiation for E610 Piotr Kwapulinski
  2025-07-07 16:34 ` Simon Horman
@ 2025-07-24 10:44 ` Rinitha, SX
  2025-07-24 10:47   ` Loktionov, Aleksandr
  1 sibling, 1 reply; 4+ messages in thread
From: Rinitha, SX @ 2025-07-24 10:44 UTC (permalink / raw)
  To: Kwapulinski, Piotr, intel-wired-lan@lists.osuosl.org
  Cc: netdev@vger.kernel.org, andrew@lunn.ch, pmenzel@molgen.mpg.de,
	Kwapulinski, Piotr, Kitszel, Przemyslaw

> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of Piotr Kwapulinski
> Sent: 04 July 2025 18:36
> To: intel-wired-lan@lists.osuosl.org
> Cc: netdev@vger.kernel.org; andrew@lunn.ch; pmenzel@molgen.mpg.de; Kwapulinski, Piotr <piotr.kwapulinski@intel.com>; Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>
> Subject: [Intel-wired-lan] [iwl-next v2] ixgbe: add the 2.5G and 5G speeds in auto-negotiation for E610
>
> The auto-negotiation limitation for 2.5G and 5G speeds is no longer true for X550 successors like E610 adapter. Enable the 2.5G and 5G speeds in auto-negotiation for E610 at driver load.
>
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
> ---
> v1 -> v2
>  More details in commit message
> ---
> drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 35 +++++++------------
> 1 file changed, 12 insertions(+), 23 deletions(-)
>

Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [Intel-wired-lan] [iwl-next v2] ixgbe: add the 2.5G and 5G speeds in auto-negotiation for E610
  2025-07-24 10:44 ` [Intel-wired-lan] " Rinitha, SX
@ 2025-07-24 10:47   ` Loktionov, Aleksandr
  0 siblings, 0 replies; 4+ messages in thread
From: Loktionov, Aleksandr @ 2025-07-24 10:47 UTC (permalink / raw)
  To: Rinitha, SX, Kwapulinski, Piotr, intel-wired-lan@lists.osuosl.org
  Cc: netdev@vger.kernel.org, andrew@lunn.ch, pmenzel@molgen.mpg.de,
	Kwapulinski, Piotr, Kitszel, Przemyslaw



> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf
> Of Rinitha, SX
> Sent: Thursday, July 24, 2025 12:44 PM
> To: Kwapulinski, Piotr <piotr.kwapulinski@intel.com>; intel-wired-
> lan@lists.osuosl.org
> Cc: netdev@vger.kernel.org; andrew@lunn.ch; pmenzel@molgen.mpg.de;
> Kwapulinski, Piotr <piotr.kwapulinski@intel.com>; Kitszel, Przemyslaw
> <przemyslaw.kitszel@intel.com>
> Subject: Re: [Intel-wired-lan] [iwl-next v2] ixgbe: add the 2.5G and
> 5G speeds in auto-negotiation for E610
> 
> > -----Original Message-----
> > From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf
> Of Piotr Kwapulinski
> > Sent: 04 July 2025 18:36
> > To: intel-wired-lan@lists.osuosl.org
> > Cc: netdev@vger.kernel.org; andrew@lunn.ch; pmenzel@molgen.mpg.de;
> Kwapulinski, Piotr <piotr.kwapulinski@intel.com>; Kitszel, Przemyslaw
> <przemyslaw.kitszel@intel.com>
> > Subject: [Intel-wired-lan] [iwl-next v2] ixgbe: add the 2.5G and 5G
> speeds in auto-negotiation for E610
> >
> > The auto-negotiation limitation for 2.5G and 5G speeds is no longer
> true for X550 successors like E610 adapter. Enable the 2.5G and 5G
> speeds in auto-negotiation for E610 at driver load.
> >
> > Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> > Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
> > ---
> > v1 -> v2
> >  More details in commit message
> > ---
> > drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 35 +++++++----------
> --
> > 1 file changed, 12 insertions(+), 23 deletions(-)
> >
> 
> Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at
> Intel)
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-07-24 10:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-04 13:06 [iwl-next v2] ixgbe: add the 2.5G and 5G speeds in auto-negotiation for E610 Piotr Kwapulinski
2025-07-07 16:34 ` Simon Horman
2025-07-24 10:44 ` [Intel-wired-lan] " Rinitha, SX
2025-07-24 10:47   ` Loktionov, Aleksandr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).