netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: supersud501 <supersud501@yahoo.de>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	netdev@vger.kernel.org, linux-acpi@vger.kernel.org,
	bugme-daemon@bugzilla.kernel.org
Subject: Re: [Bugme-new] [Bug 9721] New: wake on lan fails with sky2 module
Date: Fri, 11 Jan 2008 22:16:08 +0100	[thread overview]
Message-ID: <200801112216.08992.rjw@sisk.pl> (raw)
In-Reply-To: <4787D044.1070509@yahoo.de>

> http://bugzilla.kernel.org/show_bug.cgi?id=9721

On Friday, 11 of January 2008, supersud501 wrote:
> 
> Stephen Hemminger wrote:
> > On Wed, 9 Jan 2008 16:03:00 -0800
> > Andrew Morton <akpm@linux-foundation.org> wrote:
> > 
> >> (switched to email.  Please respond via emailed reply-to-all, not via the
> >> bugzilla web interface).
> >>
> >> On Wed,  9 Jan 2008 13:05:34 -0800 (PST)
> >> bugme-daemon@bugzilla.kernel.org wrote:
> >>
> >>> http://bugzilla.kernel.org/show_bug.cgi?id=9721
> >>>
> >>>            Summary: wake on lan fails with sky2 module
> >>>            Product: ACPI
> >>>            Version: 2.5
> >>>      KernelVersion: 2.6.24-rc7
> >>>           Platform: All
> >>>         OS/Version: Linux
> >>>               Tree: Mainline
> >>>             Status: NEW
> >>>           Severity: normal
> >>>           Priority: P1
> >>>          Component: Power-Sleep-Wake
> >>>         AssignedTo: acpi_power-sleep-wake@kernel-bugs.osdl.org
> >>>         ReportedBy: supersud501@yahoo.de
> >> This post-2.6.23 regression was assigned to ACPI but is quite possibly a
> >> net driver problem?
> >>
> >>> Latest working kernel version: 2.6.23.12
> >>> Earliest failing kernel version: 2.6.24-rc6 (not tested earlier kernel,
> >>> 2.6.24-rc7 still failing)
> >>> Distribution: Ubuntu 8.04 (but Kernel build from Kernel.org and system modifiet
> >>> to make wake on lan work, i.e. network cards are not shutted down on poweroff)
> >>> Hardware Environment: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit
> >>> Ethernet Controller (rev 20) onboard Asus P5W DH motherboard, uses module SKY2
> >>> Software Environment:
> >>> Problem Description:
> >>>
> >>> When enabling wake on lan with: 'ethtool -s eth0 wol' i get the following
> >>> status:
> >>>
> >>> 21:56:29 ~ # sudo ethtool eth0
> >>> Settings for eth0:
> >>>         Supported ports: [ TP ]
> >>>         Supported link modes:   10baseT/Half 10baseT/Full 
> >>>                                 100baseT/Half 100baseT/Full 
> >>>                                 1000baseT/Half 1000baseT/Full 
> >>>         Supports auto-negotiation: Yes
> >>>         Advertised link modes:  10baseT/Half 10baseT/Full 
> >>>                                 100baseT/Half 100baseT/Full 
> >>>                                 1000baseT/Half 1000baseT/Full 
> >>>         Advertised auto-negotiation: Yes
> >>>         Speed: 100Mb/s
> >>>         Duplex: Full
> >>>         Port: Twisted Pair
> >>>         PHYAD: 0
> >>>         Transceiver: internal
> >>>         Auto-negotiation: on
> >>>         Supports Wake-on: pg
> >>>         Wake-on: g    <---- wol enabled
> >>>         Current message level: 0x000000ff (255)
> >>>         Link detected: yes
> >>>
> >>> but after shutting down the pc doesn't wake up when magic packet is sent.
> >>>
> >>> the status lights of the network card are still on (so the card seems to be
> >>> online).
> >>>
> >>> same system with only changed kernel to 2.6.23.12 and same procedure like
> >>> above: wake on lan works.
> >>>
> >>> Steps to reproduce: enable wol on your network card using SKY2 module and it
> >>> doesn't work too?
> >>>
> >>> if you need more information, just tell me, it's my first bug report.
> >>> regards
> >>>
> > 
> > 
> > Wake from power off works on 2.6.24-rc7 for me.
> > Wake from suspend doesn't because Network Manager, HAL, or some other
> > user space tool gets confused.
> > 
> > I just rechecked it with Fujitsu Lifebook, which has sky2 (88E8055).
> > There many variations of this chip, and it maybe chip specific problem
> > or ACPI/BIOS issues.  If you don't enable Wake on Lan in BIOS, the
> > driver can't do it for you. Also, check how you are shutting down.
> > 
> > Also since the device has to restart the PHY, it could be a switch
> > issue if you have some fancy pants switch doing intrusion detection
> > or something, but I doubt that.
> > 
> > Is it a clean or fast shutdown, most distributions mark network
> > devices as down on shutdown, but if the distribution does something 
> > stupid like remove the driver module, then the driver is unable to setup Wake On Lan.
> > The wake on lan setup is done in one place in the driver, add
> > a printk to see if it is ever called.
> > 
> > 
> 
> 
> I tried ACPI wakeup with /proc/acpi/alarm (like i described in my last 
> mail) and it worked... so ACPI wakeup seems to work.
> 
> i'll try to do the printk-thing when i find some time to mess around 
> with the sources (maybe tomorrow). if someone has some brief 
> instructions (maybe a link to a helpfull site for kernel debugging) for 
> me i would be thankfull and could provide some more info faster.
> 
> some steps for me to identify the source of the problem (is it really 
> sky2?) would be really helpfull...

Please do the tests requested at:
http://bugzilla.kernel.org/show_bug.cgi?id=9721#c2,
thanks.

  reply	other threads:[~2008-01-11 21:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-9721-10286@http.bugzilla.kernel.org/>
2008-01-10  0:03 ` [Bugme-new] [Bug 9721] New: wake on lan fails with sky2 module Andrew Morton
2008-01-10  4:52   ` Stephen Hemminger
2008-01-10 19:35     ` supersud501
2008-01-11 20:23     ` supersud501
2008-01-11 21:16       ` Rafael J. Wysocki [this message]
2008-01-11 22:19         ` supersud501
2008-01-11 23:10           ` Rafael J. Wysocki
2008-01-12 12:24             ` supersud501
2008-01-12 19:13               ` Rafael J. Wysocki
2008-01-13 13:22             ` supersud501
2008-01-13 15:08               ` supersud501
2008-01-13 19:27                 ` Andrew Morton
2008-01-13 20:27                   ` supersud501
2008-01-13 20:57                     ` Andrew Morton
2008-01-13 21:25                       ` Rafael J. Wysocki
2008-01-13 21:27                       ` Rafael J. Wysocki
2008-01-13 22:53                         ` supersud501
2008-01-14 18:14                           ` [RFT] sky2: wake-on-lan configuration issues Stephen Hemminger
2008-01-14 21:05                             ` supersud501
2008-01-17 21:08                               ` Tino Keitel
2008-01-17 23:22                               ` Andrew Morton
2008-01-14 16:39                   ` [Bugme-new] [Bug 9721] New: wake on lan fails with sky2 module Stephen Hemminger
2008-01-14 20:50                     ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200801112216.08992.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=akpm@linux-foundation.org \
    --cc=bugme-daemon@bugzilla.kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@linux-foundation.org \
    --cc=supersud501@yahoo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).