Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 2010 10:49:23 +0100
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Demelier David <demelier.david@gmail.com>
Cc:        Giovanni Trematerra <giovanni.trematerra@gmail.com>, freebsd-stable@freebsd.org, freebsd-acpi@freebsd.org
Subject:   Re: Kernel panic when unpluggin AC adaptor
Message-ID:  <4DEBDE2C-C0D2-469D-AC42-DD5027926424@FreeBSD.org>
In-Reply-To: <20100505074045.GA28030@Abricot.malikania.fr>
References:  <i2mb3954bba1005040141m97cbd6b0u69651cb26992ee97@mail.gmail.com> <20100504085332.GA24219@icarus.home.lan> <n2gb3954bba1005040351o718a9508u8e992b0469137bdf@mail.gmail.com> <r2p4e6cba831005040836y43a0bb21x82b4b25334a755fa@mail.gmail.com> <y2yb3954bba1005040927l538ef077q20aea7a4c5121fdd@mail.gmail.com> <h2ub3954bba1005040935h7e5207b2o399c357a1cfd407@mail.gmail.com> <20100504200139.GP23646@deviant.kiev.zoral.com.ua> <i2qb3954bba1005041327v72795c19va26e23dbb79159b9@mail.gmail.com> <20100504203809.GR23646@deviant.kiev.zoral.com.ua> <42ACDAF6-7EA9-4CE9-AA8D-FDA678A1EA74@FreeBSD.org> <20100505074045.GA28030@Abricot.malikania.fr>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <kostikbel@gmail.com>:
>>>>> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DEBDE2C-C0D2-469D-AC42-DD5027926424>