Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455610 - =sys-kernel/gentoo-sources-3.7.4 - Realtek NIC (8139) isn't working when rebooting from Windows
Summary: =sys-kernel/gentoo-sources-3.7.4 - Realtek NIC (8139) isn't working when rebo...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://bugzilla.kernel.org/show_bug....
Whiteboard: watch-linux-bugzilla https://wiki.arc...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-05 14:41 UTC by A.D.
Modified: 2013-02-09 19:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
lspci -nnvv (lspci374.log,8.95 KB, text/plain)
2013-02-05 14:41 UTC, A.D.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description A.D. 2013-02-05 14:41:42 UTC
Created attachment 338014 [details]
lspci -nnvv

After rebooting from Windows XP to Gentoo Linux NIC acts as dead (no LED light at all).
NIC works on a cold boot without problems.

The problem is described at ArchWiki: https://wiki.archlinux.org/index.php/Network_Configuration#Realtek_no_link_.2F_WOL_issue


NIC info:
Windows:
    NIC: Realtek RTL8139/810x Family
    Driver version: 5.719.325.2009

Linux info:
    DMESG: 8139too RealTek RTL8139
    Kernel built-in driver: RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter
    Tried Kernel version 3.5.7 & latest 3.7.4  (gentoo-sources)

More at: http://superuser.com/questions/546441/no-internet-in-linux-after-rebooting-from-windows/546621


I can reproduce this everytime I disable "Shutdown WOL" property in Realtek's NIC driver on Windows and then rebooting machine.


DMESG output with and w/o working NIC is same except temperatures/Mhz etc and "type"..(probably doesn't matter)
$ diff dmesg374_ok.log dmesg374_fail.log | grep type
< type=2000 audit(1360070535.329:1): initialized
> type=2000 audit(1360071206.329:1): initialized
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-05 17:04:41 UTC
> < type=2000 audit(1360070535.329:1): initialized
> > type=2000 audit(1360071206.329:1): initialized

This is just a difference in timing, so the dmesg logs are exactly the same.

> I can reproduce this everytime I disable "Shutdown WOL" property in Realtek's NIC driver on Windows and then rebooting machine.

I've grepped through the kernel commits again and can not see any fixes regarding WoL in later kernel versions or regressions in earlier kernel versions, therefore the only thing left to do is to report this upstream at http://bugzilla.kernel.org and leave us a link to the upstream bug here such that we can follow along.
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-05 17:13:30 UTC
It appears that https://bugzilla.kernel.org/show_bug.cgi?id=3801 might be more to the point, although this has been rejected as being unreproducible.

This bug has a patch at https://bugzilla.kernel.org/attachment.cgi?id=6924 which you might want to try to apply to your kernel. If the patch does not apply then edit /usr/src/linux/drivers/net/8139too.c and add the code from the two lines starting with "+" before the line with "pci_set_power_state (pdev, PCI_D3hot);".

It seems there is a PME-Enable bit in the PCI config space that prevents WoL from working, and this patch intends to enable that if I understand correctly; there is also another patch there for suspend / resume but I assume that patch will no longer apply reliably. Sounds as if that if Windows (un)sets that bit and Linux doesn't correct it after a reboot, that the card will think it is not woken up. Well, that's as far I can craft a theory based on this somewhat relevant bug.
Comment 3 A.D. 2013-02-05 18:54:16 UTC
>..for posting bugs against the mainline Linux kernels(not distribution kernels). 
Should I try vanilla-source before posting bug to the kernel bugzilla?

>If the patch does not apply then edit /usr/src/linux/drivers/net/8139too.c 
Can't find 8139too.c 
Can you confirm that? Probably paths were changed since..
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-05 23:58:04 UTC
> >..for posting bugs against the mainline Linux kernels(not distribution kernels).

Where did you read this? You should note that Gentoo barely patches anything and therefore it is almost no different from a mainline Linux kernel, you could try vanilla but I can assure you this won't result in a difference.

> Probably paths were changed since..

Indeed, it is now located at /usr/src/linux/drivers/net/ethernet/realtek/8139too.c
Comment 5 A.D. 2013-02-06 23:12:55 UTC

(In reply to comment #4)
> > >..for posting bugs against the mainline Linux kernels(not distribution kernels).
> 
> Where did you read this? 
At bugzilla.kernel.org main page.

> > Probably paths were changed since..
> 
> Indeed, it is now located at
> /usr/src/linux/drivers/net/ethernet/realtek/8139too.c
Patch applied, NIC did not wake up. So I will file a bug. Thanks for your help.
Comment 6 A.D. 2013-02-09 19:07:40 UTC
Bug filed at https://bugzilla.kernel.org/show_bug.cgi?id=53521