From owner-freebsd-acpi@FreeBSD.ORG Tue May 4 21:01:04 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 89983106566B for ; Tue, 4 May 2010 21:01:04 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id F045C8FC0C for ; Tue, 4 May 2010 21:01:03 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o44Kc9Il059484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 May 2010 23:38:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o44Kc95c051351; Tue, 4 May 2010 23:38:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o44Kc9TB051350; Tue, 4 May 2010 23:38:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 4 May 2010 23:38:09 +0300 From: Kostik Belousov To: David DEMELIER Message-ID: <20100504203809.GR23646@deviant.kiev.zoral.com.ua> References: <20100504083738.GA23820@icarus.home.lan> <20100504085332.GA24219@icarus.home.lan> <20100504200139.GP23646@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Bi+HF1AHjw0mn3zx" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-1.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, DNS_FROM_OPENWHOIS,URIBL_SBL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Giovanni Trematerra , freebsd-stable@freebsd.org, freebsd-acpi@freebsd.org Subject: Re: Kernel panic when unpluggin AC adaptor X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2010 21:01:04 -0000 --Bi+HF1AHjw0mn3zx Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 04, 2010 at 10:27:23PM +0200, David DEMELIER wrote: > 2010/5/4 Kostik Belousov : > > On Tue, May 04, 2010 at 06:35:52PM +0200, David DEMELIER wrote: > >> Good news ! It worked, check the picture here : > >> > >> http://img63.imageshack.us/img63/4244/dsc00361g.jpg > > > > Please try adding code fragment like this: > > =9A =9A =9A =9Aif (cx_next->p_lvlx =3D=3D NULL) > > =9A =9A =9A =9A =9A =9A =9A =9Aprintf("Going to panic.\n"); > > to =9Adev/acpi/acpi_cpu.c:acpi_cpu_idle() function, right before > > =9A =9ACPU_GET_REG(cx_next->p_lvlx, 1); > > line and see if it prints the message immediately before the panic. > > >=20 > Yes it does at the beginning of the kernel panic. Ok, so the point of panic is found, it is NULL cx_next->p_lvlx resource. With the data in hand, I recommend you to ask on acpi@ (added a Cc:) about the cause and possible solution. --Bi+HF1AHjw0mn3zx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkvghbAACgkQC3+MBN1Mb4gXlgCgsSPpn8IIMi0+2oZHTKz0haxO StgAoICD29XstQKYHcmwzOcQVubm4Qil =aXZF -----END PGP SIGNATURE----- --Bi+HF1AHjw0mn3zx--