Date: Wed, 26 May 2010 17:08:57 +0200 From: David DEMELIER <demelier.david@gmail.com> To: Giovanni Trematerra <giovanni.trematerra@gmail.com> Cc: Brandon Gooch <jamesbrandongooch@gmail.com>, freebsd-stable@freebsd.org Subject: Re: Kernel panic when unpluggin AC adaptor Message-ID: <AANLkTimFKhf8PKYo3LLaawugbTItbBweMsjXRiPPZDV5@mail.gmail.com> In-Reply-To: <AANLkTinWSNyllR4-H22gEpohbyt2Uoc5EBS3fhgBKb9s@mail.gmail.com> References: <4DEBDE2C-C0D2-469D-AC42-DD5027926424@FreeBSD.org> <AANLkTinYntwwReJDB0blprk1TCy7j1xKca0LzTgUJBDe@mail.gmail.com> <AANLkTikOBiz6XI55pEFlG-SS07r7yyz2o9PifWB9vgHB@mail.gmail.com> <AANLkTinpUCeQpayi-ZjMAyJ6tNhXT5PWM0zLsntgbJ3P@mail.gmail.com> <AANLkTik6oKg1jFWD2zoS7fUZzZl-3Pj-EhgGa2xKer94@mail.gmail.com> <AANLkTimf7wzXoTjvdF07pkrUmU9qYVsxpUtbnmaNX6vv@mail.gmail.com> <AANLkTin7cURd4nS5de7lmtY3igFGGynd1w85Ywj2NCK3@mail.gmail.com> <AANLkTikQygqvB93L8RjGYF2k8ouIjzLFvxUJTuoOPWhc@mail.gmail.com> <AANLkTilfQjZjJACh1dj7XEHN7uZ36_8N0uh5sX_4eOHk@mail.gmail.com> <AANLkTinWSNyllR4-H22gEpohbyt2Uoc5EBS3fhgBKb9s@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2010/5/26 Giovanni Trematerra <giovanni.trematerra@gmail.com>: > On Wed, May 26, 2010 at 3:55 PM, Giovanni Trematerra > <giovanni.trematerra@gmail.com> wrote: >> On Wed, May 26, 2010 at 12:01 PM, David DEMELIER >> <demelier.david@gmail.com> wrote: >>> 2010/5/26 Giovanni Trematerra <giovanni.trematerra@gmail.com>: >>>> On Wed, May 26, 2010 at 11:14 AM, David DEMELIER >>>> <demelier.david@gmail.com> wrote: >>>>> 2010/5/25 Giovanni Trematerra <giovanni.trematerra@gmail.com>: >>>>>> On Tue, May 25, 2010 at 5:52 PM, David DEMELIER >>>>>> <demelier.david@gmail.com> wrote: >>>>>>> 2010/5/25 Giovanni Trematerra <giovanni.trematerra@gmail.com>: >>>>>>>> On Mon, May 24, 2010 at 9:43 PM, David DEMELIER >>>>>>>> <demelier.david@gmail.com> wrote: >>>>>>>>> 2010/5/12 Giovanni Trematerra <giovanni.trematerra@gmail.com>: >>>>>>>>>> On Fri, May 7, 2010 at 8:33 PM, Demelier David <demelier.david@g= mail.com> wrote: >>>>>>>>>>> Le Vendredi 07 mai 2010 =C3=A0 18:22 +0200, Giovanni Trematerra= a =C3=A9crit : >>>>>>>>>>>> On Fri, May 7, 2010 at 2:08 PM, Demelier David <demelier.david= @gmail.com> wrote: >>>>>>>>>>>> > Hi, >>>>>>>>>>>> > =C2=A0 =C2=A0 =C2=A0 =C2=A0I noticed that pluggin the AC ada= ptor when I boot without it does not >>>>>>>>>>>> > =C2=A0 =C2=A0 =C2=A0 =C2=A0panic. It only panic when removin= g it. >>>>>>>>>>>> > >>>>>>>>>>>> > =C2=A0 =C2=A0 =C2=A0 =C2=A0Maybe that could help ? >>>>>>>>>>>> > >>>>>>>>>>>> >>>>>>>>>>>> Good to know. The problem lies somewhere when performance stat= e change. >>>>>>>>>>>> In your case it happens when you remove AC adaptor. Let's hope= someone on >>>>>>>>>>>> acpi@ ml comes up with a good idea. >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Okay so for the moment no change, I'll wait for someone with an= idea >>>>>>>>>>> that could solve my problem. For me because the panic only happ= ens when >>>>>>>>>>> changing profile from ac plugged -> ac unplugged (and not the r= everse) 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 alloc= ate a >>>>>>>>>> new cx_ptr->p_lvlx =C2=A0via acpi_PkgGas. >>>>>>>>>> If acpi_PkgGas set cx_ptr->p_lvlx to NULL for any reasons you'll= have >>>>>>>>>> the panic that you reported. >>>>>>>>>> A solution would be to set acpi_cpu_hook to NULL so acpi_cpu_idl= e won't call it. >>>>>>>>>> I need some time to have a patch because of the possible race be= tween >>>>>>>>>> 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 at= tached >>>>>>>>>> patch, just to be >>>>>>>>>> sure that we catch it. >>>>>>>>>> >>>>>>>>> >>>>>>>>> Hi, it paniced today ! I don't know why it randomly panic but it = did, >>>>>>>>> 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 adap= ter. >>>>>>> >>>>>> >>>>>> 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 =C2= =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 >> > > Here the patch :( > Sorry, still the same :-( --=20 Demelier David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimFKhf8PKYo3LLaawugbTItbBweMsjXRiPPZDV5>