Bug 35752 - sky2 driver doesn't support suspend to memory / resume
sky2 driver doesn't support suspend to memory / resume
Status: RESOLVED OBSOLETE
Product: Drivers
Classification: Unclassified
Component: Network
All Linux
: P1 normal
Assigned To: drivers_network@kernel-bugs.osdl.org
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-24 19:58 UTC by Yvan Gosset
Modified: 2013-12-23 13:35 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.36.2
Tree: Mainline
Regression: No


Attachments

Description Yvan Gosset 2011-05-24 19:58:17 UTC
Hello.

Since I have installed a Linux distro on my laptop: an HP Probook 5310m,
my network Ethernet interface doesn't work after a resume (from a suspend to ram), I can reproduce this: sky2 doesn't like suspend/resume .

I use the latest kernel on Mandriva.
I can make any test with a new kernel and an experimental kernel.

Here is some infos:

lspci ...
03:00.0 Ethernet controller: Marvell Technology Group Ltd. Device 436c (rev 10)


Before a suspend, on the sky2 driver (It's a fake mac address)
May 24 16:20:26 hppro kernel: sky2: driver version 1.28
May 24 16:20:26 hppro kernel: sky2 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
May 24 16:20:26 hppro kernel: sky2 0000:03:00.0: setting latency timer to 64
May 24 16:20:26 hppro kernel: sky2 0000:03:00.0: Yukon-2 Extreme chip revision 2
May 24 16:20:26 hppro kernel: sky2 0000:03:00.0: irq 44 for MSI/MSI-X
May 24 16:20:26 hppro kernel: sky2 0000:03:00.0: eth0: addr 00:ab:cd:ef:01:02
....
May 24 16:20:26 hppro ifplugd(eth0)[1568]: ifplugd 0.28 initializing.
May 24 16:20:26 hppro ifplugd(eth0)[1568]: Using interface eth0/00:AB:CD:EF:01:02 with driver <sky2> (version: 1.28)
May 24 16:20:26 hppro ifplugd(eth0)[1568]: Using detection mode: SIOCETHTOOL
May 24 16:20:26 hppro ifplugd(eth0)[1568]: Initialization complete, link beat not detected.
May 24 16:20:26 hppro kernel: sky2 0000:03:00.0: eth0: enabling interface
May 24 16:20:26 hppro kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
...
May 24 16:37:04 hppro kernel: sky2 0000:03:00.0: eth0: Link is up at 100 Mbps, full duplex, flow control both
May 24 16:37:04 hppro kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
May 24 16:37:04 hppro ifplugd(eth0)[1568]: Link beat detected.
May 24 16:37:05 hppro ifplugd(eth0)[1568]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.


Entering a suspend and resume ...
May 24 18:32:24 hppro kernel: PM: Syncing filesystems ... done.
May 24 18:32:24 hppro kernel: PM: Preparing system for mem sleep
May 24 18:32:24 hppro kernel: Freezing user space processes ... (elapsed 0.01 seconds) done.
May 24 18:32:24 hppro kernel: Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
...
May 24 18:32:24 hppro kernel: ACPI: Waking up from system sleep state S3
...
May 24 18:32:24 hppro kernel: sky2 0000:03:00.0: restoring config space at offset 0xf (was 0x100, writing 0x10b)
May 24 18:32:24 hppro kernel: sky2 0000:03:00.0: restoring config space at offset 0xc (was 0x0, writing 0xfffe0000)
May 24 18:32:24 hppro kernel: sky2 0000:03:00.0: restoring config space at offset 0x6 (was 0x1, writing 0x2001)
May 24 18:32:24 hppro kernel: sky2 0000:03:00.0: restoring config space at offset 0x4 (was 0x4, writing 0x90600004)
May 24 18:32:24 hppro kernel: sky2 0000:03:00.0: restoring config space at offset 0x3 (was 0x0, writing 0x10)
May 24 18:32:24 hppro kernel: sky2 0000:03:00.0: restoring config space at offset 0x1 (was 0x100000, writing 0x100407)
May 24 18:32:24 hppro kernel: PM: early resume of devices complete after 1.965 msecs
...
May 24 18:32:24 hppro kernel: PM: resume of devices complete after 4261.897 msecs
May 24 18:32:24 hppro kernel: PM: Finishing wakeup.


I kill the process of ifplugd attached to eth0,
I make 'rmmod sky2 ; mopdrobe sky2' and I replug the rj45 cable and:

May 24 21:46:54 hppro kernel: sky2 0000:03:00.0: eth0: disabling interface
May 24 21:46:54 hppro kernel: sky2 0000:03:00.0: eth0: phy I/O error
May 24 21:46:54 hppro kernel: sky2 0000:03:00.0: eth0: phy I/O error
May 24 21:46:54 hppro kernel: sky2 0000:03:00.0: eth0: phy I/O error
May 24 21:46:54 hppro kernel: sky2 0000:03:00.0: eth0: phy I/O error
May 24 21:46:54 hppro kernel: sky2 0000:03:00.0: eth0: phy I/O error
May 24 21:46:54 hppro kernel: sky2 0000:03:00.0: PCI INT A disabled
 May 24 21:46:55 hppro vnstatd[1323]: SIGHUP received, flushing data to disk and reloading config.
May 24 21:46:59 hppro kernel: sky2: driver version 1.28
May 24 21:46:59 hppro kernel: sky2 0000:03:00.0: enabling device (0000 -> 0003)
May 24 21:46:59 hppro kernel: sky2 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
May 24 21:46:59 hppro kernel: sky2 0000:03:00.0: setting latency timer to 64
May 24 21:46:59 hppro kernel: sky2 0000:03:00.0: unsupported chip type 0xff
May 24 21:46:59 hppro kernel: sky2 0000:03:00.0: PCI INT A disabled
May 24 21:46:59 hppro kernel: sky2: probe of 0000:03:00.0 failed with error -95

And, to test more, redo the same thing : 'rmmod sky2; modprobe sky2 '

May 24 21:49:02 hppro kernel: sky2: driver version 1.28
May 24 21:49:02 hppro kernel: sky2 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
May 24 21:49:02 hppro kernel: sky2 0000:03:00.0: setting latency timer to 64
May 24 21:49:02 hppro kernel: sky2 0000:03:00.0: unsupported chip type 0xff
May 24 21:49:02 hppro kernel: sky2 0000:03:00.0: PCI INT A disabled
May 24 21:49:02 hppro kernel: sky2: probe of 0000:03:00.0 failed with error -95

Any help will be appreciate, Thanks !

Yvan.

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