From owner-freebsd-stable@FreeBSD.ORG Thu Mar 15 01:10:24 2012 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 54479106566C for ; Thu, 15 Mar 2012 01:10:24 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 23E8E8FC16 for ; Thu, 15 Mar 2012 01:10:23 +0000 (UTC) Received: by dadp14 with SMTP id p14so10423951dad.18 for ; Wed, 14 Mar 2012 18:10:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=vr4rHUZP7SsiPTabOFrWGE00QGeZyu1VUYyPktfzQRM=; b=gsqrK+13vIiZUYoA4priPosvzrEwp4MQ3hEsz8kfk42TXgii64yyKMdJLJWyoyDGWg J6hDBoIOM7VeLa/txSstH1G94Wuk7Pn2mFQ0pbdJtfTgn2WSKwy6HinmXbeRvkpvdYSt /0dSyzUUei++wZ+Ttp2E2NaLf+oYASTHLFXH4IaFPSBY4s8aR9FD0GTTq5PrADRnBgiL VDFIhyZtJer7QC+I2RS86jdB0L+vK96kRGMySK49qs4DI2pu5C9Ppt0+bV4xBSeGQjXG cY+G4RkjTgNtwYsRU+ZuuRwTqFc73tvjEoTPOm4NdYeP9LZOAUZOg9JToHNvDYmsNCIy KwgQ== Received: by 10.68.238.39 with SMTP id vh7mr534599pbc.30.1331773823719; Wed, 14 Mar 2012 18:10:23 -0700 (PDT) Received: from pyunyh@gmail.com ([114.111.62.249]) by mx.google.com with ESMTPS id g3sm592621pbt.41.2012.03.14.18.10.20 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Mar 2012 18:10:22 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 15 Mar 2012 10:10:19 -0700 From: YongHyeon PYUN Date: Thu, 15 Mar 2012 10:10:19 -0700 To: Paul Guyot Message-ID: <20120315171018.GA3295@michelle.cdnetworks.com> References: <8D3993D8-074E-45E6-8AF7-DB51369F33BD@ieee.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline In-Reply-To: <8D3993D8-074E-45E6-8AF7-DB51369F33BD@ieee.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-stable@freebsd.org Subject: Re: Changes brought to bce(4) disabling ipmi access during boot X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2012 01:10:24 -0000 --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 14, 2012 at 11:44:37PM +0100, Paul Guyot wrote: > Hello, > > Changes brought to bce(4) prevents booting a R410 Dell server with GELI-encrypted root ZFS partition requiring a passphrase, something that was possible with 9-RELEASE. > > Using a binary search, the bug comes from the following revision: > > Updating collection src-all/cvs > Edit src/sys/dev/bce/if_bce.c > Add delta 1.89.2.4 2012.01.09.19.07.14 yongari > Edit src/sys/dev/bce/if_bcereg.h > Add delta 1.35.2.3 2012.01.09.19.07.14 yongari > Shutting down connection to server > Could you try attach patch and let me know whether it recovers IPMI functionality? > RELEASE as well as STABLE with date=2012.01.09.19.00.00 boot properly. > The boot fails with date=2012.01.09.19.08.00 > > For more details: the box is configured to boot from a plain ZFS pool that contains the kernel (zboot) and then to request passphrase for a GELI-encrypted ZFS pool containing everything else (including /etc/rc.d), in a way similar to what is described here: http://www.keltia.net/howtos/freebsd-dedibox > > The passphrase should be entered from the virtual console (KVM) simulated by the ipmi controller (through Dell's "iDRAC6"). > > On RELEASE, the boot works properly and can be followed from the KVM console, where the passphrase can be entered. On STABLE, the KVM gets disconnected. Besides, the ipmi is down, and the box is eventually bricked: since plugging a real console is not an option, the only way to get access to the server is to reboot it electrically (and to configure the PXE to perform a netboot in order to switch the kernel). > > I believe the ipmi controller uses the main ethernet port to simulate a physical console and the change in the bce driver disables the ethernet port. Since the box waits from the passphrase to configure the network, the box gets unreachable. > > Paul > -- > Semiocast http://semiocast.com/ > +33.183627948 - 20 rue Lacaze, 75014 Paris > --k+w/mQv8wyuph6w0 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="bce.ipmi.diff" Index: sys/dev/bce/if_bce.c =================================================================== --- sys/dev/bce/if_bce.c (revision 232950) +++ sys/dev/bce/if_bce.c (working copy) @@ -1992,8 +1992,7 @@ ifp = sc->bce_ifp; mii = device_get_softc(sc->bce_miibus); - if (mii == NULL || ifp == NULL || - (ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) + if (mii == NULL || ifp == NULL) return; sc->bce_link_up = FALSE; --k+w/mQv8wyuph6w0--