From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 11 16:17:58 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDE881065686 for ; Tue, 11 Aug 2009 16:17:58 +0000 (UTC) (envelope-from matthew@digitalstratum.com) Received: from mail-pz0-f174.google.com (mail-pz0-f174.google.com [209.85.222.174]) by mx1.freebsd.org (Postfix) with ESMTP id AA2E28FC5E for ; Tue, 11 Aug 2009 16:17:58 +0000 (UTC) Received: by pzk4 with SMTP id 4so548195pzk.7 for ; Tue, 11 Aug 2009 09:17:58 -0700 (PDT) Received: by 10.114.38.7 with SMTP id l7mr5684042wal.224.1250007476353; Tue, 11 Aug 2009 09:17:56 -0700 (PDT) Received: from ?10.0.81.14? (adsl-76-236-176-45.dsl.klmzmi.sbcglobal.net [76.236.176.45]) by mx.google.com with ESMTPS id f20sm10494470waf.17.2009.08.11.09.17.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 Aug 2009 09:17:55 -0700 (PDT) Message-ID: <4A8199B2.30403@digitalstratum.com> Date: Tue, 11 Aug 2009 12:17:54 -0400 From: Matthew Hagerty User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4A80EBA6.40908@digitalstratum.com> <06A3B5AF-D3DA-4446-84EF-93314B2EA636@gid.co.uk> <4A818B0E.7090609@digitalstratum.com> <4A819049.6030806@unsane.co.uk> <58c737d70908110858l3548e91cnddb5fa1b85a29533@mail.gmail.com> In-Reply-To: <58c737d70908110858l3548e91cnddb5fa1b85a29533@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Tracing Wake on Lan problem? 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: Tue, 11 Aug 2009 16:17:59 -0000 Chris Ruiz wrote: > On Tue, Aug 11, 2009 at 10:37 AM, Vincent Hoffman wrote: > >> Matthew Hagerty wrote: >> >>> Bob Bishop wrote: >>> >>>> Hi, >>>> >>>> On 11 Aug 2009, at 04:55, Matthew Hagerty wrote: >>>> >>>> >>>>> I'm trying to get the Wake on Lan feature working on a 7.2-release >>>>> box. [etc] >>>>> >>>> You may need to turn WoL on in the BIOS, have a look in the same >>>> place as the LAN boot settings. >>>> >>>> -- >>>> Bob Bishop >>>> rb@gid.co.uk >>>> >>> I guess I assumed that, since the WoL works with my Intel Pro/100 NIC, >>> that the APCI and wake-up settings in the BIOS were set correctly. It >>> is only when I try the Pro/1000 that I'm having problems; and it seems >>> to be a driver or config issue. >>> >>> Matthew >>> >> I think you are out of luck as yet. according to >> http://wiki.freebsd.org/WakeOnLan >> grep -l IFCAP_WOL /usr/src/sys/dev/*/*.c >> should get a list of drivers that support WOL. >> >> 16:28:19 <~>) >> [jhary@crab] 0 $ grep -l IFCAP_WOL /usr/src/sys/dev/*/*.c >> /usr/src/sys/dev/ae/if_ae.c >> /usr/src/sys/dev/age/if_age.c >> /usr/src/sys/dev/alc/if_alc.c >> /usr/src/sys/dev/ale/if_ale.c >> /usr/src/sys/dev/fxp/if_fxp.c >> /usr/src/sys/dev/jme/if_jme.c >> /usr/src/sys/dev/nge/if_nge.c >> /usr/src/sys/dev/re/if_re.c >> /usr/src/sys/dev/stge/if_stge.c >> /usr/src/sys/dev/txp/if_txp.c >> /usr/src/sys/dev/vr/if_vr.c >> (16:28:21 <~>) >> [jhary@crab] 0 $ uname -r >> 7.2-STABLE >> >> The Pro/1000 driver is if_em (or if_igb) So i think you are out of luck >> on 7.x >> > > Vince is correct, the e1000 (if_em/igb) driver does not support WOL, yet. > > Chris > Yes, but I'm trying to use Intel's driver at this point (since the stock 7.2R em driver, as stated, does not support WoL yet): http://downloadcenter.intel.com/filter_results.aspx?strTypes=all&ProductID=1938&OSFullName=FreeBSD*&lang=eng&strOSs=52&submit=Go! And it does appear to offer support for WoL. They (Intel) have functions in their if_em.c source file that sets up the WoL. However, there is no IFCAP_WOL define in Intel's code, so maybe it does not interface with ifconfig correctly at this point? I don't know. I was hoping to get some pointers on where to look or how to tell. Also, I'm not opposed to adding the WoL support - I'm not too bad in C - I've just never written a FreeBSD device driver and the excellent post by Stefan Sperling (referenced from the WoL wiki) seems to be too far out of date. The wiki itself states: "Note that the obsolete ioctl-based configuration approach is discussed there, but ifcaps should be used instead." So, not knowing anything about either ioctl-based or ifcaps config, I can't find any resources on how to get started in the right direction (hence my post to hackers). Also, if Intel's driver code works, it seems to me that it makes more sense to use their code for em devices, no? Is there a copyright problem with that? Matthew