Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266790 - sky2 ethernet card does not appear when booting from battery power
Summary: sky2 ethernet card does not appear when booting from battery power
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-19 17:35 UTC by Jake Magee
Modified: 2010-11-30 10:19 UTC (History)
2 users (show)

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


Attachments
kernel config file (kernel_config,57.88 KB, text/plain)
2009-04-19 17:42 UTC, Jake Magee
Details
lspci -kv (lspci_kv,7.80 KB, text/plain)
2009-04-19 17:43 UTC, Jake Magee
Details
dmesg (dmesg,39.95 KB, text/plain)
2009-04-19 17:43 UTC, Jake Magee
Details
emerge --info (emerge_info,3.49 KB, text/plain)
2009-04-20 22:11 UTC, Jake Magee
Details
New kernel config without issues (config,51.45 KB, text/plain)
2009-04-24 07:13 UTC, Jake Magee
Details
dmesg while plugged in (dmesg_AC,37.55 KB, text/plain)
2009-06-02 02:47 UTC, Jake Magee
Details
dmesg while on battery power (dmesg_BATTERY,36.80 KB, text/plain)
2009-06-02 02:48 UTC, Jake Magee
Details
lspci while plugged in (lspci_AC,7.81 KB, text/plain)
2009-06-02 02:48 UTC, Jake Magee
Details
lspci while on battery power (lspci_BATTERY,6.73 KB, text/plain)
2009-06-02 02:49 UTC, Jake Magee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jake Magee 2009-04-19 17:35:00 UTC
After booting with no ethernet cable inserted, when an ethernet cable is inserted I get the following error in dmesg: "sky2 0000:02:00.0: eth0: phy I/O error".  And of course, "/etc/init.d/net.eth0 start" does not work, resulting in:
eth0: dhcpcd 4.0.7 starting
eth0: waiting for carrier
eth0: timed out

However, if the cable is inserted on bootup then everything works fine and an IP is pulled.  I can also stop and start net.eth0 with any issues.  The problem starts again if the cable is unplugged and replugged in though.  The system must be rebooted to fix the issue (with the cable plugged in).

Reproducible: Always

Steps to Reproduce:
1. Unplug ethernet cable
2. Plug in ethernet cable
3. dmesg

Actual Results:  
sky2 0000:02:00.0: eth0: phy I/O error

Expected Results:  
No errors with dmesg and "/etc/init.d/net.eth0 start" should work correctly

System is an HP mini 1000 with a Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller.  Using the sky2 kernel driver with vanilla-sources 2.6.29.1
Comment 1 Jake Magee 2009-04-19 17:42:55 UTC
Created attachment 188899 [details]
kernel config file
Comment 2 Jake Magee 2009-04-19 17:43:18 UTC
Created attachment 188901 [details]
lspci -kv
Comment 3 Jake Magee 2009-04-19 17:43:36 UTC
Created attachment 188903 [details]
dmesg
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-20 21:32:23 UTC
Please post your "emerge --info".
Comment 5 Jake Magee 2009-04-20 22:11:48 UTC
Created attachment 189005 [details]
emerge --info
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-22 22:03:15 UTC
Did you use any kernel-package to install this kernel? If yes which package did you choose?
Comment 7 Jake Magee 2009-04-22 22:18:39 UTC
I use sys-kernel/vanilla-sources ebuild to install my kernels.
Comment 8 George Kadianakis (RETIRED) gentoo-dev 2009-04-24 02:00:50 UTC
This bug spawned in the 2.6.29.1 vanilla release?
Which kernel version was the last one you tried and actually worked without any issues?
Comment 9 Jake Magee 2009-04-24 07:05:22 UTC
I cannot say for certain that any kernel I have used with Gentoo has worked.  However, the original Ubuntu install from HP used 2.6.24-19-lpia and it did work.

Also, I just executed an `lspci` and the Ethernet controller is not showing up at all.  I found that on some boots the Ethernet controller is found, sometimes not.  I suppose this is the bigger issue.

I have reconfigured my kernel (changes lots of options) and now cannot reproduce the issue or the missing controller in lspci.  I will continue to try and reprouce the issue again over the next few days.  If I can reproduce the issue (the controller not showing in lspci), is there any data I should collect?

Thanks
Comment 10 Jake Magee 2009-04-24 07:13:46 UTC
Created attachment 189292 [details]
New kernel config without issues

Since these updates to my kernel, I have not been able to reproduce the original issue or the missing controller from lspci.
Comment 11 Jake Magee 2009-04-24 15:31:28 UTC
It seems that the difference is not the new kernel.  I found that I see the problem when running on the battery.  When I plug in the AC power adapter and reboot, ethernet appears in lspci and works fine.
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2009-05-11 00:26:11 UTC
Please attach "dmesg" and "lspci -v" outputs from both AC-boot and battery-boot (4 files total)
Comment 13 Mike Pagano gentoo-dev 2009-05-29 12:54:56 UTC
Please feel free to reopen with requested information
Comment 14 Jake Magee 2009-06-02 02:47:56 UTC
Created attachment 193217 [details]
dmesg while plugged in
Comment 15 Jake Magee 2009-06-02 02:48:24 UTC
Created attachment 193219 [details]
dmesg while on battery power
Comment 16 Jake Magee 2009-06-02 02:48:57 UTC
Created attachment 193221 [details]
lspci while plugged in
Comment 17 Jake Magee 2009-06-02 02:49:32 UTC
Created attachment 193222 [details]
lspci while on battery power
Comment 18 Jake Magee 2009-06-02 02:50:10 UTC
Here are the requested files.
Sorry for the delay.

Comment 19 Bradley Worley 2009-06-14 15:59:49 UTC
i am reproducing this bug exactly as is shown on a gentoo minimal installation cd (install-x86-minimal-20090609.iso with corresponding stage3 tarball.)

same system: hp mini 1000 w/ marvell 88e8040
/proc/version: Linux version 2.6.29-gentoo-r5 (root@poseidon) (gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) ) #1 SMP Tue Jun 9 18:02:27 UTC 2009

Comment 20 George Kadianakis (RETIRED) gentoo-dev 2009-07-26 19:17:41 UTC
Could you try adding acpi_os_name=Linux to your kernel boot parameters and boot from battery power?

Thanks :)
Comment 21 Jake Magee 2009-07-27 02:58:58 UTC
This fixed the issue!  Thanks!

Is this a bug workaround that will be fixed eventually or a "feature" that I need to just live with?

If its a hardware issue that can't/won't be fixed then I'll mark this bug fixed.

Thanks again.
Comment 22 Stratos Psomadakis (RETIRED) gentoo-dev 2009-07-27 13:10:27 UTC
(In reply to comment #21)
accoring to https://bugs.launchpad.net/ubuntu/+bug/297263/comments/9, pci-e hotplug is not correctly handled when on battery.
it could be reported upstream, so that it will get fixed eventually, but since acpi_os_name=Linux works, and doesn't break any other ACPI-related stuff, i think you can close the bug
Comment 23 Mike Pagano gentoo-dev 2009-08-09 23:30:55 UTC
Fixed with command line parameter