From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 25 17:42:11 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DA1016A570 for ; Sun, 25 Nov 2007 17:42:10 +0000 (UTC) (envelope-from stsp@stsp.name) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by mx1.freebsd.org (Postfix) with ESMTP id 5078413C45D for ; Sun, 25 Nov 2007 17:42:09 +0000 (UTC) (envelope-from stsp@stsp.name) X-Envelope-From: stsp@stsp.name Received: from stsp.lan (stsp.in-vpn.de [217.197.85.96]) (authenticated bits=128) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id lAPHg65L019660 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 25 Nov 2007 18:42:08 +0100 Received: from ted.stsp.lan (localhost [127.0.0.1]) by stsp.lan (8.13.8/8.13.8) with ESMTP id lAPHg6WT030503; Sun, 25 Nov 2007 18:42:06 +0100 (CET) (envelope-from stsp@ted.stsp.lan) Received: (from stsp@localhost) by ted.stsp.lan (8.13.8/8.13.8/Submit) id lAPHg56K030501; Sun, 25 Nov 2007 18:42:05 +0100 (CET) (envelope-from stsp) Date: Sun, 25 Nov 2007 18:42:05 +0100 From: Stefan Sperling To: David Leslie Message-ID: <20071125174204.GT1463@ted.stsp.lan> References: <683944.65935.qm@web38015.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2+jOUFLb7N+7fooZ" Content-Disposition: inline In-Reply-To: <683944.65935.qm@web38015.mail.mud.yahoo.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Cc: hackers@freebsd.org Subject: Re: FreeBSD WOL sis on X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2007 17:42:11 -0000 --2+jOUFLb7N+7fooZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey David, (I'm Cc'ing this reply to hackers@ with David's consent.) On Sat, Nov 24, 2007 at 11:31:24PM -0800, David Leslie wrote: > Have an Intel ITX size board (D201GLY2) with a SiS 900 > NIC, which supports WOL and has a WOL-enabled FreeBSD > driver, but does not actually wake after powering down > (ACPI S5) from FreeBSD. Have verified that WOL works > using ethtool in Linux. >=20 > Am not a BSD user, but am attracted to the FreeNAS > project which has recently integrated your WOL patch > (hopefully a recent version). The sis driver supports at least two different types of cards. What does dmesg print for your card? I have only one type of NIC the sis driver supports and have only implemented support for this one: sis0: port 0xac00-0xacff mem 0xdb001000-0xdb00 sis0: Silicon Revision: DP83816A > From userspace it > appears ready to set the NIC to wake (i.e. ifconfig > returns "will wake on: magic"), but the system ignores > magic packets and does not wake from FreeBSD. If the card type isn't a DP83815 or DP83816, this is a bug. The driver should not let you configure cards for WOL it has no support for. > Have verified that there is no reconfiguration of the > adapter as part of the FreeNAS shutdown scripts. I see > that your patch integrates changes to this driver, so > maybe you might have seen the issue on other > platforms? Any ideas where to look as a next step-- > would appear to be something in if_sis that is not > working on this board? There are many things that can go wrong with WOL. Here's a quick checklist (the first three are probably not causing your problem because you've verified that WOL works with Linux): Is the WOL cable plugged in properly (if needed)? Are BIOS WOL settings OK? Is ACPI enabled (in BIOS and OS)? Have you used "shutdown -p" to shut down the box? Using "shutdown -h" or "halt" and then turning the power off might not work (at least I've never tried this...) Does the card enter D3 sleep mode properly after the box shuts down, i.e. does a NIC LED stay on after shutdown? Do "wake" packets (e.g. magic packets) actually reach the box? To find out, I do: while true; do wol -h 10.42.42.255 ; sleep 1; done and then if the box doesn't wake up I look at the NIC LEDS to check for periodic blinking of the tx/rx LED. Adjust the broadcast IP address to your network of course. Hope this helps, --=20 stefan http://stsp.name PGP Key: 0xF59D25F0 --2+jOUFLb7N+7fooZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHSbPs5dMCc/WdJfARAowmAJsEfViM6g/TGuDfF1O8C5kbMMWJqACg5fzI npyOaQ6pJewwgf/q7X5Dvj8= =z06Z -----END PGP SIGNATURE----- --2+jOUFLb7N+7fooZ--