Kernel panic when unpluggin AC adaptor
demelier.david at gmail.com
Wed May 5 07:40:01 UTC 2010
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 <kostikbel at gmail.com>:
> >>> 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.
More information about the freebsd-stable