From owner-freebsd-stable@FreeBSD.ORG Wed May 26 13:55:14 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 767D1106566B for ; Wed, 26 May 2010 13:55:14 +0000 (UTC) (envelope-from giovanni.trematerra@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id F35CC8FC16 for ; Wed, 26 May 2010 13:55:13 +0000 (UTC) Received: by fxm17 with SMTP id 17so1767860fxm.13 for ; Wed, 26 May 2010 06:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=J5CVONi1umAi5SMNvA2MoYvPZ1x24/4NHiJmwOgaZF0=; b=fCwe1m8VMQ0Wz5CgExrZiWy2I5RDnXiJ18bmc5uFKP75K8LQdrFy5OaU6MxRTgJ98S LiY3dQjXNKMh+mAqMDsf2WmDv2tMb9szqh47xVs31t0DoZqP7Qw80Dg2DTOoUKYezCBa RSkyFDbeVnAT+zBMsNEoJIa/DHgOlmeacLFjc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=EEwZ8eKIR2H7RM4k9kY2wvQmlWKlxRESg1Z3VMK+s2zr3ojvs0x2nhmDO2LUBueRSU 6qbma15GteoMu2zjO78Mb0yi7BRfucSKtK2jL7Wkuef5EAP3cJO/5VUO8Zp8DwrFfd1n LxUwbZcw6qFEYcJwHLRDiSiQJxXdGHAhJ4UkU= MIME-Version: 1.0 Received: by 10.223.50.193 with SMTP id a1mr7729355fag.34.1274882112480; Wed, 26 May 2010 06:55:12 -0700 (PDT) Received: by 10.223.103.209 with HTTP; Wed, 26 May 2010 06:55:11 -0700 (PDT) In-Reply-To: References: <4DEBDE2C-C0D2-469D-AC42-DD5027926424@FreeBSD.org> <1273257226.1671.3.camel@malikania.fr> Date: Wed, 26 May 2010 15:55:11 +0200 Message-ID: From: Giovanni Trematerra To: David DEMELIER Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Brandon Gooch , freebsd-stable@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, 26 May 2010 13:55:14 -0000 On Wed, May 26, 2010 at 12:01 PM, David DEMELIER wrote: > 2010/5/26 Giovanni Trematerra : >> On Wed, May 26, 2010 at 11:14 AM, David DEMELIER >> wrote: >>> 2010/5/25 Giovanni Trematerra : >>>> On Tue, May 25, 2010 at 5:52 PM, David DEMELIER >>>> wrote: >>>>> 2010/5/25 Giovanni Trematerra : >>>>>> On Mon, May 24, 2010 at 9:43 PM, David DEMELIER >>>>>> wrote: >>>>>>> 2010/5/12 Giovanni Trematerra : >>>>>>>> On Fri, May 7, 2010 at 8:33 PM, Demelier David wrote: >>>>>>>>> Le Vendredi 07 mai 2010 =E0 18:22 +0200, Giovanni Trematerra a = =E9crit : >>>>>>>>>> On Fri, May 7, 2010 at 2:08 PM, Demelier David wrote: >>>>>>>>>> > Hi, >>>>>>>>>> > =A0 =A0 =A0 =A0I noticed that pluggin the AC adaptor when I bo= ot without it does not >>>>>>>>>> > =A0 =A0 =A0 =A0panic. It only panic when removing it. >>>>>>>>>> > >>>>>>>>>> > =A0 =A0 =A0 =A0Maybe that could help ? >>>>>>>>>> > >>>>>>>>>> >>>>>>>>>> Good to know. The problem lies somewhere when performance state = change. >>>>>>>>>> In your case it happens when you remove AC adaptor. Let's hope s= omeone on >>>>>>>>>> acpi@ ml comes up with a good idea. >>>>>>>>>> >>>>>>>>> >>>>>>>>> Okay so for the moment no change, I'll wait for someone with an i= dea >>>>>>>>> that could solve my problem. For me because the panic only happen= s when >>>>>>>>> changing profile from ac plugged -> ac unplugged (and not the rev= erse) I >>>>>>>>> would think it's a cpu related acpi issue. >>>>>>>>> >>>>>>>> >>>>>>>> I looked deeper and it seems to me that when you unplug the AC >>>>>>>> adapter, acpi_cpu_notify calls acpi_cpu_cx_cst that try to allocat= e a >>>>>>>> new cx_ptr->p_lvlx =A0via acpi_PkgGas. >>>>>>>> If acpi_PkgGas set cx_ptr->p_lvlx to NULL for any reasons you'll h= ave >>>>>>>> the panic that you reported. >>>>>>>> A solution would be to set acpi_cpu_hook to NULL so acpi_cpu_idle = won't call it. >>>>>>>> I need some time to have a patch because of the possible race betw= een >>>>>>>> acpi_cpu_notify and >>>>>>>> acpi_cpu_idle during set acpi_cpu_hook to NULL. >>>>>>>> if you have time and want panic your system you could try the atta= ched >>>>>>>> patch, just to be >>>>>>>> sure that we catch it. >>>>>>>> >>>>>>> >>>>>>> Hi, it paniced today ! I don't know why it randomly panic but it di= d, >>>>>>> the backtrace didn't change. There is a picture about the panic : >>>>>>> >>>>>>> http://img541.imageshack.us/img541/2773/dsc00388xa.jpg >>>>>> >>>>>> What was you trying? acpi_idle5.diff.txt patch? >>>>>> How did it panic? Unplugging AC adapter? >>>>>> >>>>> >>>>> Hi, I tried this one : lvlx.diff.txt. Yes by unplugging the AC adapte= r. >>>>> >>>> >>>> This is an old one. Could you try acpi_idle5.diff.txt? I kept you in >>>> Cc when I sent to >>>> the list. If you have problems, let me know, I'll resend to you =A0the= patch. >>>> >>>> Thank you. >>>> >>> >>> Hi, it panic'ed with the same backtrace. >>> >> >> Can you please post your dmesg? >> > > Sent ! As your PC is in a good mood to make test, :) could you try this patch? Thank you -- Gianni