Skip to contentSkip to conversation

ixgbe: fix media type detection for E610 device

PATCH In review Piotr Kwapulinski 4 participants 4 messages Feb 21, 2025 – Mar 18, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 ixgbe: fix media type detection for E610 device

The commit 23c0e5a16bcc ("ixgbe: Add link management support for E610 device") introduced incorrect media type detection for E610 device. It reproduces when advertised speed is modified after driver reload. Clear the previous outdated PHY type high value.

Reproduction steps:
modprobe ixgbe
ethtool -s eth0 advertise 0x1000000000000
modprobe -r ixgbe
modprobe ixgbe
ethtool -s eth0 advertise 0x1000000000000
Result before the fix:
netlink error: link settings update failed
netlink error: Invalid argument
Result after the fix:
No output error

Fixes 23c0e5a16bcc ("ixgbe: Add link management support for E610 device")

---
v1 -> v2
More commit message details and reproduction steps added
v2 -> v3
More details in reproduction steps added

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c +3 -1
index 683c668..0dfefd2 100644
@@ -1453,9 +1453,11 @@ enum ixgbe_media_type ixgbe_get_media_type_e610(struct ixgbe_hw *hw)
 			hw->link.link_info.phy_type_low = 0;
 		} else {
 			highest_bit = fls64(le64_to_cpu(pcaps.phy_type_low));
-			if (highest_bit)
+			if (highest_bit) {
 				hw->link.link_info.phy_type_low =
 					BIT_ULL(highest_bit - 1);
+				hw->link.link_info.phy_type_high = 0;
+			}
 		}
 	}
 
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 21 lines · Piotr Kwapulinski

The commit 23c0e5a16bcc ("ixgbe: Add link management support for E610 device") introduced incorrect media type detection for E610 device. It reproduces when advertised speed is modified after driver reload. Clear the previous outdated PHY type high value.

Reproduction steps:
modprobe ixgbe
ethtool -s eth0 advertise 0x1000000000000
modprobe -r ixgbe
modprobe ixgbe
ethtool -s eth0 advertise 0x1000000000000
Result before the fix:
netlink error: link settings update failed
netlink error: Invalid argument
Result after the fix:
No output error

Fixes 23c0e5a16bcc ("ixgbe: Add link management support for E610 device")
Quoted 5 lines

---
v1 -> v2
More commit message details and reproduction steps added
v2 -> v3
More details in reproduction steps added

Please remember you must wait at least 24 hours between submissions that include netdev
https://docs.kernel.org/process/maintainer-netdev.html#resending-after-review

Thanks,
Tony

Quoted 21 lines
---
  drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c +3 -1
index 683c668..0dfefd2 100644
@@ -1453,9 +1453,11 @@ enum ixgbe_media_type ixgbe_get_media_type_e610(struct ixgbe_hw *hw)
  			hw->link.link_info.phy_type_low = 0;
  		} else {
  			highest_bit = fls64(le64_to_cpu(pcaps.phy_type_low));
-			if (highest_bit)
+			if (highest_bit) {
  				hw->link.link_info.phy_type_low =
  					BIT_ULL(highest_bit - 1);
+				hw->link.link_info.phy_type_high = 0;
+			}
  		}
  	}
 
reviewer Reviewed-by on v3 1/1
#2 lore raw
In reply to Piotr Kwapulinski
Quoted 17 lines · Piotr Kwapulinski

The commit 23c0e5a16bcc ("ixgbe: Add link management support for E610 device") introduced incorrect media type detection for E610 device. It reproduces when advertised speed is modified after driver reload. Clear the previous outdated PHY type high value.

Reproduction steps:
modprobe ixgbe
ethtool -s eth0 advertise 0x1000000000000
modprobe -r ixgbe
modprobe ixgbe
ethtool -s eth0 advertise 0x1000000000000
Result before the fix:
netlink error: link settings update failed
netlink error: Invalid argument
Result after the fix:
No output error

Quoted 4 lines
Fixes 23c0e5a16bcc ("ixgbe: Add link management support for E610 device")
Tested-by on v3 1/1
#3 lore raw
In reply to Piotr Kwapulinski
Quoted 28 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Piotr Kwapulinski
Sent: Friday, February 21, 2025 9:19 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; Kwapulinski, Piotr <[email protected]>; Kitszel, Przemyslaw <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-net v3] ixgbe: fix media type detection for E610 device

The commit 23c0e5a16bcc ("ixgbe: Add link management support for E610 device") introduced incorrect media type detection for E610 device. It reproduces when advertised speed is modified after driver reload. Clear the previous outdated PHY type high value.

Reproduction steps:
modprobe ixgbe
ethtool -s eth0 advertise 0x1000000000000 modprobe -r ixgbe modprobe ixgbe ethtool -s eth0 advertise 0x1000000000000 Result before the fix:
netlink error: link settings update failed netlink error: Invalid argument Result after the fix:
No output error

Fixes 23c0e5a16bcc ("ixgbe: Add link management support for E610 device")
Quoted 9 lines

---
v1 -> v2
More commit message details and reproduction steps added
v2 -> v3
More details in reproduction steps added

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)