Bug 851278 - Realtek RTL-8139/8139C/8139C+ ethernet adapter stops working in kernel 3.5.x
Summary: Realtek RTL-8139/8139C/8139C+ ethernet adapter stops working in kernel 3.5.x
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 17
Hardware: i686
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-23 16:20 UTC by Tom Pinkl
Modified: 2012-12-18 02:34 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-01 08:26:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Bug fix (1.10 KB, patch)
2012-11-14 21:20 UTC, William J. Eaton
no flags Details | Diff

Description Tom Pinkl 2012-08-23 16:20:57 UTC
Description of problem:

The Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 20) Ethernet adapter does not work under kernel 3.5.x.  It *does* work under kernel 3.4.4-5.

Version-Release number of selected component (if applicable):
See above.

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 William J. Eaton 2012-11-14 21:18:55 UTC
This bug was observed under Fedora 17 i686 on an HP pavilion zt3010US laptop with revision 20 of some RTL-8139/C/C+ NIC on the motherboard.  Upon connecting to a network with a DHCP server, NetworkManager never gets an IP address, and no packets are transmitted from the laptop.  The NIC uses the 8139cp driver.  The 3.5
 and 3.6 kernels are affected, the 3.4 kernels work.  The system logs show nothing unusual until the point where the NIC fails to obtain a DHCP address.

The code in cp_init_hw() in the kernel 8139cp module was changed at 3.5, setting up the ring buffers before rather than after enabling transmit/receive.  This prevents the NIC from transmitting packets.

A patch is attached to fix the problem for the 3.6 kernels.  It should work on 3.5.x also.  The 3.7 kernels have not been tested.

Comment 2 William J. Eaton 2012-11-14 21:20:33 UTC
Created attachment 645181 [details]
Bug fix

Realtek 8139cp driver patch

Comment 3 William J. Eaton 2012-11-26 19:12:29 UTC
This bug appears to have been reported and fixed upstream at kernel.org.
https://bugzilla.kernel.org/show_bug.cgi?id=47271

The fix is already in the sacred source tree of the Holy One. :-)

Comment 4 Josh Boyer 2012-11-26 19:46:09 UTC
Nice spot.  We'll get this in.

Comment 5 Josh Boyer 2012-11-26 19:49:09 UTC
Patch applied.  Thanks for your efforts on this one William.

Comment 6 Josh Boyer 2012-11-26 22:15:36 UTC
Actually, we have two different commits we were pointed to in net-next by David Woodhouse.  Would you please give this scratch build a try when it completes and let us know if the problem is resolved for you?

http://koji.fedoraproject.org/koji/taskinfo?taskID=4730596

Comment 7 William J. Eaton 2012-11-27 18:48:34 UTC
This build resolves the problem.  Several boots and cable connect/disconnect cycles were done to confirm that the Ethernet port was working properly.

Comment 8 Josh Boyer 2012-11-27 18:59:11 UTC
Excellent.  Thank you for letting us know.  I'll get these fixes in today.

Comment 9 Fedora Update System 2012-11-28 12:58:20 UTC
kernel-3.6.8-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/kernel-3.6.8-2.fc16

Comment 10 Fedora Update System 2012-11-28 13:28:29 UTC
kernel-3.6.8-2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/kernel-3.6.8-2.fc17

Comment 11 Fedora Update System 2012-11-29 03:57:00 UTC
Package kernel-3.6.8-2.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-3.6.8-2.fc17'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19337/kernel-3.6.8-2.fc17
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2012-12-01 08:26:16 UTC
kernel-3.6.8-2.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2012-12-04 21:13:29 UTC
kernel-3.6.9-4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/kernel-3.6.9-4.fc18

Comment 14 Fedora Update System 2012-12-04 21:18:16 UTC
kernel-3.6.9-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/kernel-3.6.9-2.fc16

Comment 15 Fedora Update System 2012-12-07 04:25:29 UTC
kernel-3.6.9-4.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2012-12-11 20:18:11 UTC
kernel-3.6.10-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/kernel-3.6.10-2.fc16

Comment 17 Fedora Update System 2012-12-18 02:34:12 UTC
kernel-3.6.10-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.