From owner-freebsd-stable@FreeBSD.ORG Fri Apr 23 08:36:23 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 444461065675 for ; Fri, 23 Apr 2010 08:36:23 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id E6B288FC15 for ; Fri, 23 Apr 2010 08:36:22 +0000 (UTC) Received: from omta17.westchester.pa.mail.comcast.net ([76.96.62.89]) by qmta01.westchester.pa.mail.comcast.net with comcast id 8wYC1e0041vXlb851wcPda; Fri, 23 Apr 2010 08:36:23 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta17.westchester.pa.mail.comcast.net with comcast id 8wcM1e00B3S48mS3dwcNS1; Fri, 23 Apr 2010 08:36:23 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 4F2029B42B; Thu, 22 Apr 2010 21:25:10 -0700 (PDT) Date: Thu, 22 Apr 2010 21:25:10 -0700 From: Jeremy Chadwick To: Andriy Gapon Message-ID: <20100423042510.GA21479@icarus.home.lan> References: <20100422143542.GA2208@icarus.home.lan> <4BD0C9BA.2000405@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BD0C9BA.2000405@icyb.net.ua> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-stable@freebsd.org, jfvogel@gmail.com Subject: Re: RELENG_8 -- shutdown -p no longer powers off boxes X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2010 08:36:23 -0000 On Fri, Apr 23, 2010 at 01:12:10AM +0300, Andriy Gapon wrote: > on 22/04/2010 17:35 Jeremy Chadwick said the following: > > I went digging through HEAD commits between the above dates and wasn't > > able to find much other than this, which appears to be the HEAD commit > > that was MFC'd to RELENG_8: > > > > http://freshbsd.org/2010/04/02/23/04/31 > > I don't think this has been MFC-ed to 8. > Most likely a red herring. > AFAIK, there were no ACPI-related changes in 8 for the last couple of months, so > the issue must be elsewhere. You're right -- sorry about that. I was looking at cvsweb initially, and missed the fact that CVS tags was HEAD (I thought it was RELENG_8). Removing jkim@ from CC list. I'm not sure how I'm going to figure out what the cause of this is, due to how the problem manifests itself. The only other idea I have pertains to WOL (Wake-on-LAN), as both machines use em(4), and I see ifconfig reports the following on their NICs: options=399b WOL_UCAST, WOL_MCAST, and WOL_MAGIC are new -- presumably respecting a WOL packet sent via unicast and multicast, but what's WOL_MAGIC? The "magic packet" part of WOL is mandatory, AFAIK (has to contain 6 0xFFs followed by 16 repetitions of the MAC address, and the packet can be of any type. Why I care: When I visually inspected the machine during "shutdown -p", I noticed it had shut off (fans powered down), but the instant the LAN LED blinked the machine powered back on. This could indicate that the new e1000 code isn't doing the Right Thing(tm) when it comes to WOL, and is instead interpreting *any* packet coming in to the NIC as WOL, thus powering up. I have no idea how I'd go about debugging this either. Jack, any ideas? The NICs which have link/exist on the same LAN together: Supermicro X7SBA: em0: port 0x2000-0x201f mem 0xdc200000-0xdc21ffff irq 16 at device 0.0 on pci13 em0@pci0:13:0:0: class=0x020000 card=0x108c15d9 chip=0x108c8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Intel Corporation 82573E Gigabit Ethernet Controller (Copper) (82573E)' class = network subclass = ethernet cap 01[c8] = powerspec 2 supports D0 D3 current D0 cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message cap 10[e0] = PCI-Express 1 endpoint max data 128(256) link x1(x1) Supermicro X7SBL-LN2: em0: port 0x2000-0x201f mem 0xdc100000-0xdc11ffff irq 16 at device 0.0 on pci13 em0@pci0:13:0:0: class=0x020000 card=0x108c15d9 chip=0x108c8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Intel Corporation 82573E Gigabit Ethernet Controller (Copper) (82573E)' class = network subclass = ethernet cap 01[c8] = powerspec 2 supports D0 D3 current D0 cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message cap 10[e0] = PCI-Express 1 endpoint max data 128(256) link x1(x1) -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |