From owner-freebsd-current@FreeBSD.ORG Tue Sep 28 07:27:58 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EFEC106566B for ; Tue, 28 Sep 2010 07:27:58 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.31.41]) by mx1.freebsd.org (Postfix) with ESMTP id 9693A8FC1A for ; Tue, 28 Sep 2010 07:27:57 +0000 (UTC) Received: from [78.35.64.56] (helo=r500.local) by smtprelay03.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1P0UbR-0007uO-37 for freebsd-current@freebsd.org; Tue, 28 Sep 2010 09:27:56 +0200 Date: Tue, 28 Sep 2010 09:27:48 +0200 From: Fabian Keil To: freebsd-current@freebsd.org Message-ID: <20100928092748.58b70eb5@r500.local> In-Reply-To: <20100918155100.5b74cdb2@r500.local> References: <20100918155100.5b74cdb2@r500.local> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd9.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/g5+qD93HV8TdBnCey=bOlMD"; protocol="application/pgp-signature" X-Df-Sender: 775067 Subject: Re: geli boot issues with recent kernels 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, 28 Sep 2010 07:27:58 -0000 --Sig_/g5+qD93HV8TdBnCey=bOlMD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Fabian Keil wrote: > My kernel and / are on ada0s1a (UFS) while the rest of the system > is on a ZFS pool on ada0s1d.eli, attached on boot. >=20 > Since a few days ago, booting no longer works reliably for me. > Every now and then the system hangs at the time when I'd normaly > provide the passphrase. >=20 > The last times this happened I was in a hurry, so I'm not entirely > sure if the prompt for the passphrase is even shown (on my system > it's always buried in USB messages anyway). The geli passphrase prompt isn't shown at all: http://www.fabiankeil.de/tmp/freebsd-9.0-geli-boot-problem-800x561.jpg Verbose dmesg for a successful boot: http://www.fabiankeil.de/tmp/freebsd-dmesg-2010-09-27.txt > Sometimes keyboard input is ignored completely, sometimes I can > still use shift lock or scroll through the kernel messages. I now seem to always be able to scroll through the kernel messages so maybe I misremembered. > When this happened the first time, rebooting the system solved > the problem. By "rebooting" I mean shutting down the system by > keeping the power button pressed and then powering the system > on again. When the system hangs, it doesn't seem to react to > the ACPI event that is generated by pressing the power button > shortly. It seems to react to the ACPI event if I press the power button more than once, the first time shortly enough so the system doesn't power down. Attached USB devices are also noticed, the same goes for attaching or detaching the power cord. > Today I rebooted the system three times in a row without getting > it to work so I finally unloaded geom_eli from the loader prompt, > booted to single-user mode and attached the geli provider from > there. Actually I unloaded all modules and this detail seems to matter. > When I booted a few hours later with the same kernel it > worked right away. >=20 > I think I experienced the problem the first time with > a kernel from last Wednesday, currently I'm using: > FreeBSD 9.0-CURRENT Fri Sep 17 18:25:39 CEST 2010 amd64 >=20 > It definitively didn't happen with a kernel from last Saturday, > but then again I seldomly boot the system more than once a day > and the problem doesn't always show. >=20 > I enabled boot_verbose=3D"-v" and kern.geom.eli.visible_passphrase=3D1 > and thus expect to be able to provide a more detailed problem > description the next time this happens. I'm still experiencing the problem with yesterday's CURRENT. By default I load the following modules through loader.conf: zlib_load=3D"YES" crypto_load=3D"YES" =20 geom_eli_load=3D"YES" =20 opensolaris_load=3D"YES" =20 zfs_load=3D"YES" =20 acpi_video_load=3D"YES" =20 acpi_ibm_load=3D"YES" =20 snd_hda_load=3D"YES" =20 snd_uaudio_load=3D"YES" =20 if_iwn_load=3D"YES" =20 iwnfw_load=3D"YES" I noticed that if the system (ThinkPad R500) is running from battery (with those modules enabled) the hangs are almost guaranteed to happen, with external power the hangs are a lot less likely, but can happen as well. If I remove either snd_hda or snd_uaudio it get a lot less likely that the problem occurs, even when running from battery. Fabian --Sig_/g5+qD93HV8TdBnCey=bOlMD Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkyhmPkACgkQBYqIVf93VJ1LAwCdFwi4i02FKizCjzCsSbraRDc6 xe0AoKE19D6i9cZWUoLBPFWwAiiaLu4q =oogx -----END PGP SIGNATURE----- --Sig_/g5+qD93HV8TdBnCey=bOlMD--