[Bug 253953] New: sky2: knetworkmanager reports wrong bandwith
https://bugzilla.novell.com/show_bug.cgi?id=253953 Summary: sky2: knetworkmanager reports wrong bandwith Product: openSUSE 10.3 Version: Alpha 1plus Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: felix@derklecks.de QAContact: qa@suse.de just saw knetworkmanager reports a bandwith of 65535 Mb/s on my MacBook. I am afraid this is wrong ... ;) # lspci Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 22) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #1 from felix@derklecks.de 2007-03-13 05:11 MST ------- Created an attachment (id=124008) --> (https://bugzilla.novell.com/attachment.cgi?id=124008&action=view) screenshot with the problem -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #2 from felix@derklecks.de 2007-03-13 05:15 MST ------- Created an attachment (id=124009) --> (https://bugzilla.novell.com/attachment.cgi?id=124009&action=view) screenshot with the problem -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |thoenig@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #4 from hschaa@novell.com 2007-03-26 07:36 MST ------- Felix, can you please provide the output of nm-tool to determine if the problem only occurs with KNetworkManager? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #5 from felix@derklecks.de 2007-03-26 14:49 MST ------- - Device: eth0 ---------------------------------------------------------------- NM Path: /org/freedesktop/NetworkManager/Devices/eth0 Type: Wired Driver: sky2 Active: no HW Address: 00:17:F2:2E:40:85 Capabilities: Supported: yes Carrier Detect: yes Speed: 65535 Mb/s Wired Settings Hardware Link: no It seems to be NetworkManager nm-tool gives the above. I just saw that the information is correct after the first connection using this device. (Even when not connected it shows the correct information after that) With an "rmmod sky2; modprobe sky2" the problem appears again. I am using: kernel-default-2.6.21_rc4_git5-3 NetworkManager-0.6.4-72 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 hschaa@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hschaa@novell.com AssignedTo|hschaa@novell.com |tambet@novell.com ------- Comment #6 from hschaa@novell.com 2007-03-28 03:11 MST ------- I've tried with my Intel Ethernet Controller (e1000 driver) and I ran into the same trouble: if no connection is up the bandwidth shows "65535 Mb/s". As the output of nm-tool does show the same I assume it is not KNetworkManager's fault but Networkmanager's. Therefore assigning to Tambet. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #7 from tambet@novell.com 2007-03-28 05:18 MST ------- NetworkManager doesn't make it up, it reports whatever the driver gives through SIOCETHTOOL ioctl. The speed member of struct ethtool_cmd has type u16 and is supposed to have a value of 10, 100, or 1000 in it, but it looks like some drivers try to put something big in it that 65535 is the maximum value of u16. I don't know who handles drivers, but this bug should be reassigned to someone else. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #8 from thoenig@novell.com 2007-03-28 06:07 MST ------- Doesn't that sound like a signed/unsigned issue? If we handle the value as a signed one, we'd then get -1 (rather than 65535 for an unsigned type). Nevertheless, filing a report against the driver would make sense to see whether the driver is really unable to report the link speed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #9 from tambet@novell.com 2007-03-28 06:54 MST ------- NM puts it in int32, so there's no overflow there. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #10 from hschaa@novell.com 2007-03-28 07:48 MST ------- I had a look at the e1000 code and it really reports back "speed=-1" which gets 65535 due to casting to u16. Should we handle that anywhere in knm or nm? The output of ethtool is "Speed: Unknown! (65535)". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 thoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |felix@derklecks.de ------- Comment #11 from thoenig@novell.com 2007-06-11 06:59 MST ------- Felix, have you tried if this is still happening with openSUSE 10.3? If so, we should pass this to the kernel guys in order to fix sky2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 felix@derklecks.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Component|Network |Kernel Info Provider|felix@derklecks.de | ------- Comment #12 from felix@derklecks.de 2007-06-11 10:55 MST ------- It is still happens with 2.6.21-10-default and current factory userspace. Will try 2.6.22-rc4 soon. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 thoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |kkeil@novell.com ------- Comment #13 from thoenig@novell.com 2007-06-11 11:14 MST ------- Karsten, could you tell us whether the sky2 driver is really not able to report the link speed? If you're the right person to ask, please let me know who is familiar with the driver. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #14 from felix@derklecks.de 2007-06-11 13:01 MST ------- I updated to the current kernel and it is still the same. # uname -a Linux linux-95zp 2.6.22-rc4-2-default #1 SMP 2007/06/07 00:46:51 UTC i686 i686 i386 GNU/Linux # nmtool .. - Device: eth0 ---------------------------------------------------------------- NM Path: /org/freedesktop/NetworkManager/Devices/eth0 Type: Wired Driver: sky2 Active: no HW Address: 00:17:F2:2E:40:85 Capabilities: Supported: yes Carrier Detect: yes Speed: 65535 Mb/s Wired Settings Hardware Link: no .. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 kkeil@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|kkeil@novell.com | ------- Comment #15 from kkeil@novell.com 2007-06-11 14:06 MST ------- It is supported with ethtool according to the code, and my sky2 reports 100 MBit with ethtool when a cable is connected, otherwise unknown. Neverless, if a driver does not support the call or report unknown, this should not be translated into 65535, but "unknown". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #16 from felix@derklecks.de 2007-06-11 14:26 MST ------- this is the output of ethtool: Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Advertised auto-negotiation: Yes Speed: Unknown! (65535) Duplex: Unknown! (255) Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: pg Wake-on: d Current message level: 0x000000ff (255) Link detected: no -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #17 from kkeil@novell.com 2007-06-11 14:36 MST ------- Does a cable be connected and a link exist to this port ? My sky2 reports only a speed, if a link is establish, but then it looks OK: ethtool eth1 Settings for eth1: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: d Current message level: 0x000000ff (255) Link detected: yes -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953 ------- Comment #18 from felix@derklecks.de 2007-06-12 02:31 MST ------- After connecting a cable: Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: pg Wake-on: d Current message level: 0x000000ff (255) Link detected: yes After disconnecting the cable again: Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: pg Wake-on: d Current message level: 0x000000ff (255) Link detected: no So it is just not working the first time with no cable connected as written in comment #5 . -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=253953#c19
Felix Möller
https://bugzilla.novell.com/show_bug.cgi?id=253953#c20
Felix Möller
https://bugzilla.novell.com/show_bug.cgi?id=253953#c21
--- Comment #21 from JP Rosevear
https://bugzilla.novell.com/show_bug.cgi?id=253953#c22
--- Comment #22 from Felix Möller
https://bugzilla.novell.com/show_bug.cgi?id=253953
User felix@derklecks.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=253953#c23
Felix Möller
https://bugzilla.novell.com/show_bug.cgi?id=253953
User felix@derklecks.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=253953#c24
Felix Möller
https://bugzilla.novell.com/show_bug.cgi?id=253953
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=253953#c25
Tambet Ingo
participants (1)
-
bugzilla_noreply@novell.com