From owner-freebsd-current@FreeBSD.ORG Tue Apr 10 23:10:53 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4284E16A401 for ; Tue, 10 Apr 2007 23:10:53 +0000 (UTC) (envelope-from davidch@broadcom.com) Received: from MMS3.broadcom.com (mms3.broadcom.com [216.31.210.19]) by mx1.freebsd.org (Postfix) with ESMTP id 038D713C4BC for ; Tue, 10 Apr 2007 23:10:52 +0000 (UTC) (envelope-from davidch@broadcom.com) Received: from [10.10.64.154] by MMS3.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Tue, 10 Apr 2007 15:56:26 -0700 X-Server-Uuid: 20144BB6-FB76-4F11-80B6-E6B2900CA0D7 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id 209E72AF; Tue, 10 Apr 2007 15:56:26 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id 0B9412AE; Tue, 10 Apr 2007 15:56:26 -0700 (PDT) Received: from mail-irva-12.broadcom.com (mail-irva-12.broadcom.com [10.10.64.146]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id FEJ30006; Tue, 10 Apr 2007 15:56:25 -0700 (PDT) Received: from NT-IRVA-0750.brcm.ad.broadcom.com (nt-irva-0750 [10.8.194.64]) by mail-irva-12.broadcom.com (Postfix) with ESMTP id 3839369CA3; Tue, 10 Apr 2007 15:56:25 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 10 Apr 2007 15:56:21 -0700 Message-ID: <09BFF2FA5EAB4A45B6655E151BBDD90303A029F6@NT-IRVA-0750.brcm.ad.broadcom.com> In-Reply-To: <2a41acea0704101538l6ae90e8ckf30b10fca4b571eb@mail.gmail.com> Thread-Topic: WOL question Thread-Index: Acd7wRaHf7sEnHNzRsSkbcbQTEOTjgAATuCg References: <2a41acea0704101439l17ba9347o8b9844416dbb25a1@mail.gmail.com> <461C08DF.8010201@elischer.org> <461C0C3A.7010304@samsco.org> <2a41acea0704101538l6ae90e8ckf30b10fca4b571eb@mail.gmail.com> From: "David Christensen" To: "Jack Vogel" , "Scott Long" X-WSS-ID: 6A02C99038G15379225-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: freebsd-current , Julian Elischer Subject: RE: WOL question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 23:10:53 -0000 > > > I think I heard once that some BIOSes turn it off during=20 > the boot cycle > > > somewhere and it is up to the OS to turn it back on. I do=20 > know that some > > > BIOSes > > > phuck with the NIC enough to stop IPMI from working=20 > during the boot. > > > > > > > That would make sense; you don't want the card to generate=20 > an NMI during > > boot from a spurius WOL package before the system is ready=20 > to handle it. >=20 > Hmm, so I have two competing views about things, one is that=20 > the kernel > is actively doing something to disable WOL on shutdown, and now the > theory that its just not rearming the system. >=20 > I really need to know which it is, because I'm putting code=20 > in the driver that > I think should rearm it, and it doesnt work, and I've been=20 > left wondering if > my code is wrong, or if something deeper in the kernel is=20 > clobbering the > things I am trying to set up :) Is this a NIC or a LOM? For Broadcom NICs there is a procedure implemented in firmware for toggling power to the chip from MAIN to VAUX prior to=20 entering D3cold so that the controller still has power and can recognize the magic packet. For LOM designs that's not required because the VAUX rail is always powered by the motherboard. The easy way to check is to see if you still have a link LED lit on the back of the controller when you expect to be in WoL mode. No LED, no power. Are you resetting the=20 link speed to 100Mbps or less? Running at 1000Mbps generally draws more than 375mA and I've seen some systems that shutdown power to a slot when it draws too much power in VAUX. Dave