From owner-freebsd-acpi@FreeBSD.ORG Wed May 5 00:36:42 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 87A3D1065675; Wed, 5 May 2010 00:36:42 +0000 (UTC) (envelope-from rpaulo@freebsd.org) Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by mx1.freebsd.org (Postfix) with ESMTP id 40EF78FC20; Wed, 5 May 2010 00:36:41 +0000 (UTC) Received: from e.earth.lavabit.com (e.earth.lavabit.com [192.168.111.14]) by karen.lavabit.com (Postfix) with ESMTP id 097CD11BA4D; Tue, 4 May 2010 19:19:49 -0500 (CDT) Received: from 10.0.10.3 (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by lavabit.com with ESMTP id 1D0N7MKNW0LO; Tue, 04 May 2010 19:19:49 -0500 Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: <20100504203809.GR23646@deviant.kiev.zoral.com.ua> Date: Wed, 5 May 2010 01:19:45 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <42ACDAF6-7EA9-4CE9-AA8D-FDA678A1EA74@FreeBSD.org> References: <20100504083738.GA23820@icarus.home.lan> <20100504085332.GA24219@icarus.home.lan> <20100504200139.GP23646@deviant.kiev.zoral.com.ua> <20100504203809.GR23646@deviant.kiev.zoral.com.ua> To: Kostik Belousov X-Mailer: Apple Mail (2.1078) 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: Wed, 05 May 2010 00:36:42 -0000 On 4 May 2010, at 21:38, Kostik Belousov wrote: > 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 : >>>>=20 >>>> http://img63.imageshack.us/img63/4244/dsc00361g.jpg >>>=20 >>> Please try adding code fragment like this: >>> if (cx_next->p_lvlx =3D=3D NULL) >>> printf("Going to panic.\n"); >>> to dev/acpi/acpi_cpu.c:acpi_cpu_idle() function, right before >>> CPU_GET_REG(cx_next->p_lvlx, 1); >>> line and see if it prints the message immediately before the panic. >>>=20 >>=20 >> Yes it does at the beginning of the kernel panic. >=20 > 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. I don't remember the details, but I've seen this before. Does your CPU = Cx levels change when you plug/unplug the AC adapter? Regards, -- Rui Paulo