3c59x - 10/100 NIC fails to link to gigabit switch

Bug #94186 reported by Stan
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
linux-source-2.6.20 (Ubuntu)
Won't Fix
Undecided
Unassigned
linux-source-2.6.22 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

3Com PC Card (10/100) fails to negotiate a connection with a Netgear gigabit switch. After repeated insertions and removals, it may hook up at 10mb/s, but that happens less than 1 in 20 times. Ethertool shows the card successively trying to negotiate at 100mb/s full-duplex, then100mb/s half-duplex, then 10mb/s full-duplex, then 10mb/s half-duplex, then starts over again.

Note when I connect to a 10/100 switch, the NIC hooks up immediately.

Further note that using the same exact same hardware, except for the hard drive, Windows XP successfully hooks up to the gigabit switch at 100mb/s. (I dual boot my laptop by swapping the hard drive.)

Particulars:
------------
Dell Inspiron 3700 laptop
OS: Feisty Fawn with updates as of 3/20/2007
PC Card: 3Com 3CCFEM656 B (10/100mb/s)
switch: Netgear GS605 v2
switch: Netgear GS608 v2

Tags: cft-2.6.27
Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. Is your switch manageable i.e. could you force the speed and duplex on it to 100 Full? Thanks in advance.

Revision history for this message
Stan (junk-it) wrote : Re: [Bug 94186] Re: 10/100 NIC fails to link to gigabit switch

Hi Brian,

No, it's just a Netgear brain dead switch, although it's ports do auto
sense both speed and whether or not you are using a rolled cable or
not. I have a 5 port (GS605) and 8 port (GS608) version, and it happens
on both. Here's a link to the 8 port version:
http://netgear.com/Products/Switches/DesktopSwitches/GS608.aspx

Let me know if I can do anything to help.

Thanks!
Stan

Brian Murray wrote:
> Thanks for taking the time to report this bug and helping to make Ubuntu
> better. Is your switch manageable i.e. could you force the speed and
> duplex on it to 100 Full? Thanks in advance.
>
> ** Changed in: Ubuntu
> Assignee: (unassigned) => Brian Murray
> Status: Unconfirmed => Needs Info
>
>

Revision history for this message
Stan (junk-it) wrote :

Hi again Brian,

Don't know if this info helps or not, but one other data point is that I
have a Mac Mini, a TiVo, and a D-Link point to point wireless bridge all
plugged into the same switch. The Mini is connected at gigabit, the
Tivo and the D-Link are connected at 100mb/s, according to the switch
lights.

Thanks and regards,
Stan

Brian Murray wrote:
> Thanks for taking the time to report this bug and helping to make Ubuntu
> better. Is your switch manageable i.e. could you force the speed and
> duplex on it to 100 Full? Thanks in advance.
>
> ** Changed in: Ubuntu
> Assignee: (unassigned) => Brian Murray
> Status: Unconfirmed => Needs Info
>
>

Revision history for this message
Brian Murray (brian-murray) wrote : Re: 10/100 NIC fails to link to gigabit switch

I personally haven't done this in a bit, but you should be able to force the speed and duplex of your network adapter with ethtool. The command should be something like 'sudo ethtool -s speed 100 duplex full autoneg off'. Please let us know if that has any effect.

Revision history for this message
Stan (junk-it) wrote : Re: [Bug 94186] Re: 10/100 NIC fails to link to gigabit switch

Before submitting the bug report I did try "ethtool autoneg off" with no
joy, but I did not try directly setting the speed. I'll give it a shot.

Brian Murray wrote:
> I personally haven't done this in a bit, but you should be able to force
> the speed and duplex of your network adapter with ethtool. The command
> should be something like 'sudo ethtool -s speed 100 duplex full autoneg
> off'. Please let us know if that has any effect.
>
>

Revision history for this message
Stan (junk-it) wrote : Re: 10/100 NIC fails to link to gigabit switch

Okay, I don't know what's going on with the bug reporting software, but my last two emails showed up empty even though Thunderbird's "Sent" folder shows that my comments were included. I will cut-&-paste my last two emails into the s web form and hope it works better. They were as follows:

-------- Original Message --------
Sorry my last reply was empty. For some reason Thunderbird did not include my comments. Let's try again. Comments are below.

-------- Original Message --------
Okay, I tried it. Did not work. By setting the speed with ethtool I can change the light on my adapter from 10 to 100 mb/s, which looks like a I have a link, but ethtool reports no link and i can't ping out. When I turn autoneg back to 'on', the light goes out and it goes back to rotating through the speeds/duplex, etc.

Just for s&g, I tried connecting a PC (non-laptop) with a 3Com 3C509C to the same gigabit switch and it hooked up immediately. So it appears it may be an issue specifically with the 3Com 3CCFEM656 card.

Revision history for this message
Brian Murray (brian-murray) wrote :

Was the second system with the 3C509C using the same driver for the network card? You may be able to deduce this with 'lsmod'. If not please add which driver both of them use. Thanks again.

Revision history for this message
Stan (junk-it) wrote :

Yes, they are using the same driver, 3c59x. Also lsmod reports that mii is using 3c59x. Here is the related output from lsmod:

3c59x 46632 0
mii 6528 1 3c59x

Thanks!

Changed in linux-source-2.6.20:
assignee: brian-murray → ubuntu-kernel-team
status: Needs Info → Confirmed
Revision history for this message
Tim Gardner (timg-tpi) wrote :

Gutsy commit c17920a29711aac00ce58c59e30d2fa6058fb190

Changed in linux-source-2.6.22:
assignee: nobody → timg-tpi
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Kyle McMartin (kyle) wrote :
Download full text (5.9 KiB)

linux-source-2.6.22 (2.6.22-13.40) gutsy; urgency=low

  [Amit Kucheria]

  * Enable CONFIG_VM86 for LPIA
    - LP: #146311
  * Update configuration files
  * Disable MSI by default
  * Add mmconf documentation
  * Update configuration files

  [Bartlomiej Zolnierkiewicz]

  * ide-disk: workaround for buggy HPA support on ST340823A (take 3)
    - LP: #26119

  [Ben Collins]

  * ubuntu/cell: Fixup ps3 related modules for d-i, enable RTAS console
  * ubuntu/cell: Enable CELLEB and related modules (pata_scc)
  * ubuntu/cell: Move ps3rom to storage-core. Also use spidernet, not
    spider_net.
  * ubuntu/cell: Set PS3_MANAGER=y
  * ubuntu: Set NR_CPUS=256 for sparc64-smp

  [Chuck Short]

  * [USB] USB] Support for MediaTek MT6227 in cdc-acm.
    - LP: #134123
  * [XEN] Fix xen vif create with more than 14 guests.
    - LP: #14486

  [Jorge Juan Chico]

  * ide: ST320413A has the same problem as ST340823A
    - LP: #26119

  [Kyle McMartin]

  * fix -rt build
  * fix ia32entry-xen.S for CVE-2007-4573
  * fix build when CONFIG_PCI_MSI is not set

  [Matthew Garrett]

  * hostap: send events on data interface as well as master interface
    - LP: #57146
  * A malformed _GTF object should not prevent ATA device recovery
    - LP: #139079
  * hostap: send events on data interface as well as master interface
    - LP: #57146
  * A malformed _GTF object should not prevent ATA device recovery
    - LP: #139079
  * Don't lose appletouch button release events
  * Fix build with appletouch change
  * Disable Thinkpad backlight support on machines with ACPI video
    - LP: #148055
  * Don't attempt to register a callback if there is no CMOS object
    - LP: #145857
  * Update ACPI bay hotswap code to support locking
    - LP: #148219
  * Update ACPI bay hotswap code to support locking
    - LP: #148219
  * Don't attempt to register a callback if there is no CMOS object
    - LP: #145857
  * Disable Thinkpad backlight support on machines with ACPI video
    - LP: #148055

  [Steffen Klassert]

  * 3c59x: fix duplex configuration
    - LP: #94186

  [Thomas Gleixner]

  * clockevents: remove the suspend/resume workaround^Wthinko

  [Tim Gardner]

  * orinoco_cs.ko missing
    - LP: #125832
  * Marvell Technology ethernet card not recognized and not operational
    - LP: #135316
  * Marvell Technology ethernet card not recognized and not operational
    - LP: #135316
  * acpi_scan_rsdp() breaks some PCs by not honouring ACPI specification
    - LP: #144336
  * VIA southbridge Intel id missing
    - LP: #128289
  * Add T-Sinus 111card to hostap_cs driver to be able to upload firmware
    - LP: #132466
  * RTL8111 PCI Express Gigabit driver r8169 big files produce slow file
    transfer
    - LP: #114171
  * Guest OS does not recognize a lun with non zero target id on Vmware ESX
    Server
    - LP: #140761
  * Modualrize vesafb
    - LP: #139505
  * Nikon cameras need support in unusual_devs.h
    - LP: #134477
  * agp for i830m broken in gutsy
    - LP: #139767
  * hdaps: Added support for Thinkpad T61
    - LP: #147383
  * xen: Update config for i386
    - LP: #139047
  * xen: resync for amd64
    - LP: #139047
  * ide-disk: workaround for buggy HPA support ...

Read more...

Changed in linux-source-2.6.22:
status: Fix Committed → Fix Released
Tim Gardner (timg-tpi)
Changed in linux-source-2.6.22:
assignee: timg-tpi → nobody
Revision history for this message
Luis F. Lopez (luis.lopez) wrote :

Looks like this bug is also affecting Hardy. I just upgraded and I'm seeing it here...

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Stan,

Can you confirm a regression in Hardy? I see that the patch that went into Gutsy to originally resolve this is also in Hardy already. Luis, it may be that you have a slightly different bug that the original reporter which would warrant opening a new report. Thanks.

Changed in linux-source-2.6.24:
status: New → Incomplete
Revision history for this message
Stan (junk-it) wrote : Re: [Bug 94186] Re: 3c59x - 10/100 NIC fails to link to gigabit switch
Revision history for this message
Luis F. Lopez (luis.lopez) wrote :

Stan confirmed the bug in Hardy as per last comment.

Changed in linux:
status: Incomplete → Confirmed
Revision history for this message
Frankie83 (praetorian83) wrote :

I use to have this problem, but the problem wasn't on ubuntu, it was on a 2wire access point, could you please check that ???

Regards....

Revision history for this message
Frankie83 (praetorian83) wrote :

None

Revision history for this message
Stan (junk-it) wrote :
Revision history for this message
Jan (jan23) wrote :

My problem seems to be related to yours. I use a 3Com Ethernet card (3c59x module) connected to a 100Mbit switch. Unfortunately the connection is established by default with 10MBit. To connect with 100MBit I have to add the following line to /etc/modprobe.d/options:

options 3c59x "options=0x008"

I don't know why the connection is not established with 100MBit by default. I had the same problem with (another) 3c59x-compatible 3Com card 9 or 10 years ago (completely different hardware and setup)!!!! Why is this bug not fixed already?!

Revision history for this message
Stan (junk-it) wrote :

Thanks for the info. It's nice you found a workaround. How did you
arrive at adding that option and it's value? For s&g, I tried adding
that line as well to see if it fixed my problem. With this option,
dmesg reported that the card was put into mode 8 (autonegotiation).
This hosed my connection altogether, including connecting to a 100Mb/s
switch.

JanJan wrote:
> My problem seems to be related to yours. I use a 3Com Ethernet card
> (3c59x module) connected to a 100Mbit switch. Unfortunately the
> connection is established by default with 10MBit. To connect with
> 100MBit I have to add the following line to /etc/modprobe.d/options:
>
> options 3c59x "options=0x008"
>
> I don't know why the connection is not established with 100MBit by
> default. I had the same problem with (another) 3c59x-compatible 3Com
> card 9 or 10 years ago (completely different hardware and setup)!!!! Why
> is this bug not fixed already?!
>
>

Revision history for this message
Jan (jan23) wrote :

Unfortunately I have to revoke my "work around". First I found out that I have to remove and load the 3c59x module manually after every reboot. Later I found out that even this does not work any time. So my proposed "work around" does help me _sometimes_ when removing and loading the module manually.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
David Wilson (mcs6502) wrote :

Running Ubuntu 8.10 Beta Live CD.

3c905B connected to dumb 10/100 switch (it only has link lights - no speed lights)
Card has LNK100 LED lit. Assuming we can believe the LED on the card, ethtool and "Connection Information - Active Network Connections" are misreporting the link speed as 10Mb/s.

$ uname -a
Linux ubuntu 2.6.27-4-generic #1 SMP Wed Sep 24 01:30:51 UTC 2008 i686 GNU/Linux

$ lspci
00:0b.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)

$ sudo ethtool eth0
Settings for eth0:
 Supported ports: [ TP MII ]
 Supported link modes: 10baseT/Half 10baseT/Full
                         100baseT/Half 100baseT/Full
 Supports auto-negotiation: Yes
 Advertised link modes: 10baseT/Full
                         100baseT/Full
 Advertised auto-negotiation: Yes
 Speed: 10Mb/s
 Duplex: Half
 Port: MII
 PHYAD: 24
 Transceiver: internal
 Auto-negotiation: on
 Current message level: 0x00000001 (1)
 Link detected: yes

$ sudo mii-tool -v eth0
eth0: link ok
  product info: vendor 00:00:00, model 0 rev 0
  basic mode: autonegotiation enabled
  basic status: link ok
  capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
  advertising: 100baseTx-FD 10baseT-FD

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The 18 month support period for Feisty Fawn 7.04 has reached it's end of life - http://www.ubuntu.com/news/ubuntu-7.04-end-of-life . As a result, we are closing the linux-source-2.6.20 kernel task. However, this will remain open against the actively developed kernel. Thanks.

Changed in linux-source-2.6.20:
status: Confirmed → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (264.1 KiB)

This bug was fixed in the package linux - 2.6.24-23.48

---------------
linux (2.6.24-23.48) hardy-security; urgency=low

  [Upstream Kernel Changes]

  * ATM: CVE-2008-5079: duplicate listen() on socket corrupts the vcc table
    - CVE-2008-5079
  * libertas: fix buffer overrun
    - CVE-2008-5134
  * Fix inotify watch removal/umount races
    - CVE-2008-5182
  * net: Fix soft lockups/OOM issues w/ unix garbage collector
    - CVE-2008-5300
  * Enforce a minimum SG_IO timeout
    - CVE-2008-5700
  * ib700wdt.c - fix buffer_underflow bug
    - CVE-2008-5702

linux (2.6.24-23.46) hardy-proposed; urgency=low

  [Alessio Igor Bogani]

  * rt: Updated PREEMPT_RT support to rt21
    - LP: #302138

  [Amit Kucheria]

  * SAUCE: Update lpia patches from moblin tree
    - LP: #291457

  [Andy Whitcroft]

  * SAUCE: replace gfs2_bitfit with upstream version to prevent oops
    - LP: #276641

  [Colin Ian King]

  * isdn: Do not validate ISDN net device address prior to interface-up
    - LP: #237306
  * hwmon: (coretemp) Add Penryn CPU to coretemp
    - LP: #235119
  * USB: add support for Motorola ROKR Z6 cellphone in mass storage mode
    - LP: #263217
  * md: fix an occasional deadlock in raid5
    - LP: #208551

  [Stefan Bader]

  * SAUCE: buildenv: Show CVE entries in printchanges
  * SAUCE: buildenv: Send git-ubuntu-log informational message to stderr
  * Xen: dma: avoid unnecessarily SWIOTLB bounce buffering
    - LP: #247148
  * Update openvz patchset to apply to latest stable tree.
    - LP: #301634
  * XEN: Fix FTBS with stable updates
    - LP: #301634

  [Steve Conklin]

  * Add HID quirk for dual USB gamepad
    - LP: #140608

  [Tim Gardner]

  * Enable CONFIG_AX25_DAMA_SLAVE=y
    - LP: #257684
  * SAUCE: Correctly blacklist Thinkpad r40e in ACPI
    - LP: #278794
  * SAUCE: ALPS touchpad for Dell Latitude E6500/E6400
    - LP: #270643

  [Upstream Kernel Changes]

  * Revert "[Bluetooth] Eliminate checks for impossible conditions in IRQ
    handler"
    - LP: #217659
  * KVM: VMX: Clear CR4.VMXE in hardware_disable
    - LP: #268981
  * iov_iter_advance() fix
    - LP: #231746
  * Fix off-by-one error in iov_iter_advance()
    - LP: #231746
  * USB: serial: ch341: New VID/PID for CH341 USB-serial
    - LP: #272485
  * x86: Fix 32-bit x86 MSI-X allocation leakage
    - LP: #273103
  * b43legacy: Fix failure in rate-adjustment mechanism
    - LP: #273143
  * x86: Reserve FIRST_DEVICE_VECTOR in used_vectors bitmap.
    - LP: #276334
  * openvz: merge missed fixes from vanilla 2.6.24 openvz branch
    - LP: #298059
  * openvz: some autofs related fixes
    - LP: #298059
  * openvz: fix ve stop deadlock after nfs connect
    - LP: #298059
  * openvz: fix netlink and rtnl inside container
    - LP: #298059
  * openvz: fix wrong size of ub0_percpu
    - LP: #298059
  * openvz: fix OOPS while stopping VE started before binfmt_misc.ko loaded
    - LP: #298059
  * x86-64: Fix "bytes left to copy" return value for copy_from_user()
  * NET: Fix race in dev_close(). (Bug 9750)
    - LP: #301608
  * IPV6: Fix IPsec datagram fragmentation
    - LP: #301608
  * IPV6: dst_entry leak in ip4ip6_err.
    - LP: #301608
  * IPV4: Remove IP_TOS setting priv...

Changed in linux:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.