From owner-freebsd-acpi@FreeBSD.ORG Wed May 5 09:49:28 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 D08D31065672; Wed, 5 May 2010 09:49:28 +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 606E18FC0C; Wed, 5 May 2010 09:49:28 +0000 (UTC) Received: from e.earth.lavabit.com (e.earth.lavabit.com [192.168.111.14]) by karen.lavabit.com (Postfix) with ESMTP id 4074311BA1D; Wed, 5 May 2010 04:49:27 -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 94UZTEC4PIEG; Wed, 05 May 2010 04:49:27 -0500 Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: <20100505074045.GA28030@Abricot.malikania.fr> Date: Wed, 5 May 2010 10:49:23 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <4DEBDE2C-C0D2-469D-AC42-DD5027926424@FreeBSD.org> References: <20100504085332.GA24219@icarus.home.lan> <20100504200139.GP23646@deviant.kiev.zoral.com.ua> <20100504203809.GR23646@deviant.kiev.zoral.com.ua> <42ACDAF6-7EA9-4CE9-AA8D-FDA678A1EA74@FreeBSD.org> <20100505074045.GA28030@Abricot.malikania.fr> To: Demelier David 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 09:49:28 -0000 On 5 May 2010, at 08:40, Demelier David wrote: > On Wed, May 05, 2010 at 01:19:45AM +0100, Rui Paulo wrote: >> On 4 May 2010, at 21:38, Kostik Belousov wrote: >>=20 >>> 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. >>=20 >> 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? >>=20 >=20 > May 4 15:48:32 Melon power_profile: changed to 'economy' > May 4 15:48:35 Melon power_profile: changed to 'performance' I wasn't asking about the profiles. Show us the output of sysctl dev.cpu = with and without the AC cord plugged in. Regards, -- Rui Paulo