Re: Kernel panic when unpluggin AC adaptor

2010-05-19 Thread Brandon Gooch
On Tue, May 18, 2010 at 10:47 PM, Brandon Gooch wrote: > On Tue, May 18, 2010 at 9:04 AM, Giovanni Trematerra > wrote: >> On Sat, May 15, 2010 at 9:12 PM, Brandon Gooch >> wrote: >>> On Thu, May 13, 2010 at 7:25 PM, Giovanni Trematerra >>> wrote: On Thu, May 13, 2010 at 1:09 AM, Brandon Go

Re: Kernel panic when unpluggin AC adaptor

2010-05-18 Thread Brandon Gooch
On Tue, May 18, 2010 at 9:04 AM, Giovanni Trematerra wrote: > On Sat, May 15, 2010 at 9:12 PM, Brandon Gooch > wrote: >> On Thu, May 13, 2010 at 7:25 PM, Giovanni Trematerra >> wrote: >>> On Thu, May 13, 2010 at 1:09 AM, Brandon Gooch >>> wrote: On Wed, May 12, 2010 at 9:41 AM, Attilio Rao

Re: Kernel panic when unpluggin AC adaptor

2010-05-18 Thread Taku YAMAMOTO
Is it faster to call sched_bind() temporarily in acpi_cpu_notify() than locking around many places? If we successfully sched_bind() to the subject CPU, I think we're guaranteed that the acpi_cpu_idle() is not running on that CPU. On Tue, 18 May 2010 16:04:07 +0200 Giovanni Trematerra wrote: >

Re: Kernel panic when unpluggin AC adaptor

2010-05-18 Thread Giovanni Trematerra
On Sat, May 15, 2010 at 9:12 PM, Brandon Gooch wrote: > On Thu, May 13, 2010 at 7:25 PM, Giovanni Trematerra > wrote: >> On Thu, May 13, 2010 at 1:09 AM, Brandon Gooch >> wrote: >>> On Wed, May 12, 2010 at 9:41 AM, Attilio Rao wrote: 2010/5/12 David DEMELIER : > I remove the patch, and

Re: Kernel panic when unpluggin AC adaptor

2010-05-15 Thread Brandon Gooch
On Thu, May 13, 2010 at 7:25 PM, Giovanni Trematerra wrote: > On Thu, May 13, 2010 at 1:09 AM, Brandon Gooch > wrote: >> On Wed, May 12, 2010 at 9:41 AM, Attilio Rao wrote: >>> 2010/5/12 David DEMELIER : I remove the patch, and built the kernel (I updated the src this morning) and it d

Re: Kernel panic when unpluggin AC adaptor

2010-05-13 Thread Andriy Gapon
on 14/05/2010 03:25 Giovanni Trematerra said the following: > Attilio and I came up with this patch. It seems ready for stress > testing and review > Please test and report back. It seems that there is inconsistent indentation for some of new lines. Original style seems to be softtabstop=4 tabstop

Re: Kernel panic when unpluggin AC adaptor

2010-05-13 Thread Attilio Rao
2010/5/14 Giovanni Trematerra : > On Thu, May 13, 2010 at 1:09 AM, Brandon Gooch > wrote: >> On Wed, May 12, 2010 at 9:41 AM, Attilio Rao wrote: >>> 2010/5/12 David DEMELIER : I remove the patch, and built the kernel (I updated the src this morning) and it does not panic now. It's reall

Re: Kernel panic when unpluggin AC adaptor

2010-05-13 Thread Giovanni Trematerra
On Thu, May 13, 2010 at 1:09 AM, Brandon Gooch wrote: > On Wed, May 12, 2010 at 9:41 AM, Attilio Rao wrote: >> 2010/5/12 David DEMELIER : >>> I remove the patch, and built the kernel (I updated the src this >>> morning) and it does not panic now. It's really odd. If it reappears >>> soon I will t

Re: Kernel panic when unpluggin AC adaptor

2010-05-05 Thread Giovanni Trematerra
Would you be so kind to try to revert this patch? I'm just guessing You have to pass -R flag to patch program to apply the patch = --- head/sys/dev/acpica/acpi_acad.c 2009/06/05 18:44:36 193530 +++ head/sys/dev/acpica/acpi_acad.c 2009/09/30 17:07:49 197649

Re: Kernel panic when unpluggin AC adaptor

2010-05-05 Thread Demelier David
On Wed, May 05, 2010 at 12:45:46PM +0100, Rui Paulo wrote: > Please try this patch: > > Index: acpi_cpu.c > === > --- acpi_cpu.c(revision 207322) > +++ acpi_cpu.c(working copy) > @@ -997,12 +997,12 @@ > if (notify

Re: Kernel panic when unpluggin AC adaptor

2010-05-05 Thread Rui Paulo
Please try this patch: Index: acpi_cpu.c === --- acpi_cpu.c (revision 207322) +++ acpi_cpu.c (working copy) @@ -997,12 +997,12 @@ if (notify != ACPI_NOTIFY_CX_STATES) return; +ACPI_SERIAL_BEGIN(cpu); /* Updat

Re: Kernel panic when unpluggin AC adaptor

2010-05-05 Thread Demelier David
On Wed, May 05, 2010 at 10:49:23AM +0100, Rui Paulo wrote: > > 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: > >> > >>> On Tue, May 04, 2010 at 10:27:23PM +0200, David DEMELIER

Re: Kernel panic when unpluggin AC adaptor

2010-05-05 Thread Rui Paulo
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: >> >>> 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:3

Re: Kernel panic when unpluggin AC adaptor

2010-05-05 Thread Demelier David
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

Re: Kernel panic when unpluggin AC adaptor

2010-05-04 Thread Rui Paulo
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.imageshac

Re: Kernel panic when unpluggin AC adaptor

2010-05-04 Thread Kostik Belousov
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 addi