From owner-freebsd-stable@FreeBSD.ORG Wed May 5 07:40:01 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9BAFF1065675; Wed, 5 May 2010 07:40:01 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id CA8608FC19; Wed, 5 May 2010 07:40:00 +0000 (UTC) Received: by wyf23 with SMTP id 23so560035wyf.13 for ; Wed, 05 May 2010 00:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=lbk/dFCi/z6rFH89Dn6lj6AIU2w3kH4aCB52uoIXJng=; b=IQcqq09G0vJ4rw4zv2cJSuEGzYIcjGCZ8ZZwJPH7p8RbivEupoZsBH48eQOTGG3PN9 TfRUOiidq6esyMibV1c/3pc6GTzYqQxfhWuCqkeRkp/QTpBg9HgOUGysgVQVqBf7wRzV zu1VASCxiEU53gq8/IZo0T/Sk9Oa1auFFTNrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=YOMATGZfGXaXRNdAdFZqAgYDy94ChKQ/owpvBF/d5FMQVPD+it34JnnqjTqmEYOb13 MWGAqfJ1PuE0/BiN8FFL89DyyGbSncSFN59hERB8nQi+QFdhZjYJ2L8pJw+5DYURWh2g GVU6A6Cy02DT2IO2iez+Izs0ERpiqZDp10YNw= Received: by 10.227.155.213 with SMTP id t21mr2227397wbw.66.1273045191334; Wed, 05 May 2010 00:39:51 -0700 (PDT) Received: from Abricot.malikania.fr (121.21.102-84.rev.gaoland.net [84.102.21.121]) by mx.google.com with ESMTPS id x14sm56580679wbs.18.2010.05.05.00.39.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 05 May 2010 00:39:50 -0700 (PDT) Date: Wed, 5 May 2010 09:40:46 +0200 From: Demelier David To: Rui Paulo Message-ID: <20100505074045.GA28030@Abricot.malikania.fr> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42ACDAF6-7EA9-4CE9-AA8D-FDA678A1EA74@FreeBSD.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Kostik Belousov , Giovanni Trematerra , freebsd-stable@freebsd.org, freebsd-acpi@freebsd.org Subject: Re: Kernel panic when unpluggin AC adaptor X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2010 07:40:01 -0000 On Wed, May 05, 2010 at 01:19:45AM +0100, Rui Paulo wrote: > 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 : > >>>> > >>>> http://img63.imageshack.us/img63/4244/dsc00361g.jpg > >>> > >>> Please try adding code fragment like this: > >>> if (cx_next->p_lvlx == 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. > >>> > >> > >> 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. > > 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? > May 4 15:48:32 Melon power_profile: changed to 'economy' May 4 15:48:35 Melon power_profile: changed to 'performance' I think yes. King regards. -- Demelier David