public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
@ 2010-06-11 11:47 Maxim Levitsky
  2010-06-11 17:12 ` Len Brown
  2010-06-11 19:23 ` Rafael J. Wysocki
  0 siblings, 2 replies; 12+ messages in thread
From: Maxim Levitsky @ 2010-06-11 11:47 UTC (permalink / raw)
  To: linux-acpi@vger.kernel.org; +Cc: mjg59, Rafael J. Wysocki, len.brown

Just bisected it.

I also tried linux-acpi-next/test, and no change.

The sympthoms are that EC does't sent any GPEs, and therefore battery
insert/removal events don't show up.

It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
With regression the line is shown like this:


/sys/firmware/acpi/interrupts/gpe1C:   1	enabled

Without regression it is

/sys/firmware/acpi/interrupts/gpe1C:   22889	enabled

and steadily increasing.

After suspend/resume, regression disappears.

Best regards,
	Maxim Levitsky


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
  2010-06-11 11:47 commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system Maxim Levitsky
@ 2010-06-11 17:12 ` Len Brown
  2010-06-11 19:23 ` Rafael J. Wysocki
  1 sibling, 0 replies; 12+ messages in thread
From: Len Brown @ 2010-06-11 17:12 UTC (permalink / raw)
  To: Maxim Levitsky
  Cc: linux-acpi@vger.kernel.org, mjg59, Rafael J. Wysocki,
	Robert Moore, Lin Ming

On Fri, 11 Jun 2010, Maxim Levitsky wrote:

> Just bisected it.
> 
> I also tried linux-acpi-next/test, and no change.
> 
> The sympthoms are that EC does't sent any GPEs, and therefore battery
> insert/removal events don't show up.
> 
> It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
> With regression the line is shown like this:
> 
> 
> /sys/firmware/acpi/interrupts/gpe1C:   1	enabled
> 
> Without regression it is
> 
> /sys/firmware/acpi/interrupts/gpe1C:   22889	enabled
> 
> and steadily increasing.
> 
> After suspend/resume, regression disappears.
> 
> Best regards,
> 	Maxim Levitsky
> 

Woops, as commit 0f849d2cc6863c7874889ea60a871fb71399dd3f
(ACPICA: Minimize the differences between linux GPE code and ACPICA code 
base) shipped in 2.6.35-rc1, this is a regression vs 2.6.34.

thanks,
-Len Brown, Intel Open Source Technology Center



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
  2010-06-11 11:47 commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system Maxim Levitsky
  2010-06-11 17:12 ` Len Brown
@ 2010-06-11 19:23 ` Rafael J. Wysocki
  2010-06-11 19:43   ` Rafael J. Wysocki
  2010-06-11 19:47   ` Maxim Levitsky
  1 sibling, 2 replies; 12+ messages in thread
From: Rafael J. Wysocki @ 2010-06-11 19:23 UTC (permalink / raw)
  To: Maxim Levitsky; +Cc: linux-acpi@vger.kernel.org, mjg59, len.brown

On Friday, June 11, 2010, Maxim Levitsky wrote:
> Just bisected it.
> 
> I also tried linux-acpi-next/test, and no change.
> 
> The sympthoms are that EC does't sent any GPEs, and therefore battery
> insert/removal events don't show up.
> 
> It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
> With regression the line is shown like this:
> 
> 
> /sys/firmware/acpi/interrupts/gpe1C:   1	enabled
> 
> Without regression it is
> 
> /sys/firmware/acpi/interrupts/gpe1C:   22889	enabled
> 
> and steadily increasing.
> 
> After suspend/resume, regression disappears.

Hmm.

Can you please apply the following patches:

https://patchwork.kernel.org/patch/104903/
https://patchwork.kernel.org/patch/104912/
https://patchwork.kernel.org/patch/104909/
https://patchwork.kernel.org/patch/104911/
https://patchwork.kernel.org/patch/104910/

on top of current -git and see if the problem is still there?

Rafael

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
  2010-06-11 19:23 ` Rafael J. Wysocki
@ 2010-06-11 19:43   ` Rafael J. Wysocki
  2010-06-11 20:32     ` Maxim Levitsky
  2010-06-11 19:47   ` Maxim Levitsky
  1 sibling, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2010-06-11 19:43 UTC (permalink / raw)
  To: Maxim Levitsky
  Cc: linux-acpi@vger.kernel.org, mjg59, len.brown, Moore, Robert,
	Linux PM

On Friday, June 11, 2010, Rafael J. Wysocki wrote:
> On Friday, June 11, 2010, Maxim Levitsky wrote:
> > Just bisected it.
> > 
> > I also tried linux-acpi-next/test, and no change.
> > 
> > The sympthoms are that EC does't sent any GPEs, and therefore battery
> > insert/removal events don't show up.
> > 
> > It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
> > With regression the line is shown like this:
> > 
> > 
> > /sys/firmware/acpi/interrupts/gpe1C:   1	enabled
> > 
> > Without regression it is
> > 
> > /sys/firmware/acpi/interrupts/gpe1C:   22889	enabled
> > 
> > and steadily increasing.
> > 
> > After suspend/resume, regression disappears.
> 
> Hmm.
> 
> Can you please apply the following patches:
> 
> https://patchwork.kernel.org/patch/104903/
> https://patchwork.kernel.org/patch/104912/
> https://patchwork.kernel.org/patch/104909/
> https://patchwork.kernel.org/patch/104911/
> https://patchwork.kernel.org/patch/104910/
> 
> on top of current -git and see if the problem is still there?

Also, regardless of whether or not this helps, please try to revert only the
changes made by the "guilty" commit in drivers/acpi/acpica/evxface.c and see
if that helps (this revert will conflict with the patches above, so you'll need
to unapply them before).

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
  2010-06-11 19:23 ` Rafael J. Wysocki
  2010-06-11 19:43   ` Rafael J. Wysocki
@ 2010-06-11 19:47   ` Maxim Levitsky
  2010-06-11 19:50     ` Rafael J. Wysocki
  2010-06-11 19:51     ` Maxim Levitsky
  1 sibling, 2 replies; 12+ messages in thread
From: Maxim Levitsky @ 2010-06-11 19:47 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-acpi@vger.kernel.org, mjg59, len.brown

On Fri, 2010-06-11 at 21:23 +0200, Rafael J. Wysocki wrote: 
> On Friday, June 11, 2010, Maxim Levitsky wrote:
> > Just bisected it.
> > 
> > I also tried linux-acpi-next/test, and no change.
> > 
> > The sympthoms are that EC does't sent any GPEs, and therefore battery
> > insert/removal events don't show up.
> > 
> > It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
> > With regression the line is shown like this:
> > 
> > 
> > /sys/firmware/acpi/interrupts/gpe1C:   1	enabled
> > 
> > Without regression it is
> > 
> > /sys/firmware/acpi/interrupts/gpe1C:   22889	enabled
> > 
> > and steadily increasing.
> > 
> > After suspend/resume, regression disappears.
> 
> Hmm.
> 
> Can you please apply the following patches:
> 
> https://patchwork.kernel.org/patch/104903/
> https://patchwork.kernel.org/patch/104912/
> https://patchwork.kernel.org/patch/104909/
> https://patchwork.kernel.org/patch/104911/
> https://patchwork.kernel.org/patch/104910/
> 
> on top of current -git and see if the problem is still there?
> 
> Rafael

These patch don't apply nether on top of linus tree nor on top of
acpi-test tree (which includes these?)

(Patches weren't damaged I know how to get them from patchwork)

Best regards,
Maxim Levitsky 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
  2010-06-11 19:47   ` Maxim Levitsky
@ 2010-06-11 19:50     ` Rafael J. Wysocki
  2010-06-11 19:59       ` Maxim Levitsky
  2010-06-11 19:51     ` Maxim Levitsky
  1 sibling, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2010-06-11 19:50 UTC (permalink / raw)
  To: Maxim Levitsky
  Cc: linux-acpi@vger.kernel.org, mjg59, len.brown, Linux PM,
	Moore, Robert

On Friday, June 11, 2010, Maxim Levitsky wrote:
> On Fri, 2010-06-11 at 21:23 +0200, Rafael J. Wysocki wrote: 
> > On Friday, June 11, 2010, Maxim Levitsky wrote:
> > > Just bisected it.
> > > 
> > > I also tried linux-acpi-next/test, and no change.
> > > 
> > > The sympthoms are that EC does't sent any GPEs, and therefore battery
> > > insert/removal events don't show up.
> > > 
> > > It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
> > > With regression the line is shown like this:
> > > 
> > > 
> > > /sys/firmware/acpi/interrupts/gpe1C:   1	enabled
> > > 
> > > Without regression it is
> > > 
> > > /sys/firmware/acpi/interrupts/gpe1C:   22889	enabled
> > > 
> > > and steadily increasing.
> > > 
> > > After suspend/resume, regression disappears.
> > 
> > Hmm.
> > 
> > Can you please apply the following patches:
> > 
> > https://patchwork.kernel.org/patch/104903/
> > https://patchwork.kernel.org/patch/104912/
> > https://patchwork.kernel.org/patch/104909/
> > https://patchwork.kernel.org/patch/104911/
> > https://patchwork.kernel.org/patch/104910/
> > 
> > on top of current -git and see if the problem is still there?
> > 
> > Rafael
> 
> These patch don't apply nether on top of linus tree nor on top of
> acpi-test tree (which includes these?)

Yes, acpi-test contains them, so you can test that tree.  I'm not sure why
they don't apply on top of the Linus' tree, though.

Rafael

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
  2010-06-11 19:47   ` Maxim Levitsky
  2010-06-11 19:50     ` Rafael J. Wysocki
@ 2010-06-11 19:51     ` Maxim Levitsky
  1 sibling, 0 replies; 12+ messages in thread
From: Maxim Levitsky @ 2010-06-11 19:51 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-acpi@vger.kernel.org, mjg59, len.brown

On Fri, 2010-06-11 at 22:47 +0300, Maxim Levitsky wrote: 
> On Fri, 2010-06-11 at 21:23 +0200, Rafael J. Wysocki wrote: 
> > On Friday, June 11, 2010, Maxim Levitsky wrote:
> > > Just bisected it.
> > > 
> > > I also tried linux-acpi-next/test, and no change.
> > > 
> > > The sympthoms are that EC does't sent any GPEs, and therefore battery
> > > insert/removal events don't show up.
> > > 
> > > It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
> > > With regression the line is shown like this:
> > > 
> > > 
> > > /sys/firmware/acpi/interrupts/gpe1C:   1	enabled
> > > 
> > > Without regression it is
> > > 
> > > /sys/firmware/acpi/interrupts/gpe1C:   22889	enabled
> > > 
> > > and steadily increasing.
> > > 
> > > After suspend/resume, regression disappears.
> > 
> > Hmm.
> > 
> > Can you please apply the following patches:
> > 
> > https://patchwork.kernel.org/patch/104903/
> > https://patchwork.kernel.org/patch/104912/
> > https://patchwork.kernel.org/patch/104909/
> > https://patchwork.kernel.org/patch/104911/
> > https://patchwork.kernel.org/patch/104910/
> > 
> > on top of current -git and see if the problem is still there?
> > 
> > Rafael
> 
> These patch don't apply nether on top of linus tree nor on top of
> acpi-test tree (which includes these?)

Drat, I was in .patches folder, and this is why these didn't apply... 
> 
> (Patches weren't damaged I know how to get them from patchwork)
> 
> Best regards,
> Maxim Levitsky 
> 



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
  2010-06-11 19:50     ` Rafael J. Wysocki
@ 2010-06-11 19:59       ` Maxim Levitsky
  0 siblings, 0 replies; 12+ messages in thread
From: Maxim Levitsky @ 2010-06-11 19:59 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: linux-acpi@vger.kernel.org, Linux PM, Moore, Robert, len.brown

On Fri, 2010-06-11 at 21:50 +0200, Rafael J. Wysocki wrote: 
> On Friday, June 11, 2010, Maxim Levitsky wrote:
> > On Fri, 2010-06-11 at 21:23 +0200, Rafael J. Wysocki wrote: 
> > > On Friday, June 11, 2010, Maxim Levitsky wrote:
> > > > Just bisected it.
> > > > 
> > > > I also tried linux-acpi-next/test, and no change.
> > > > 
> > > > The sympthoms are that EC does't sent any GPEs, and therefore battery
> > > > insert/removal events don't show up.
> > > > 
> > > > It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
> > > > With regression the line is shown like this:
> > > > 
> > > > 
> > > > /sys/firmware/acpi/interrupts/gpe1C:   1	enabled
> > > > 
> > > > Without regression it is
> > > > 
> > > > /sys/firmware/acpi/interrupts/gpe1C:   22889	enabled
> > > > 
> > > > and steadily increasing.
> > > > 
> > > > After suspend/resume, regression disappears.
> > > 
> > > Hmm.
> > > 
> > > Can you please apply the following patches:
> > > 
> > > https://patchwork.kernel.org/patch/104903/
> > > https://patchwork.kernel.org/patch/104912/
> > > https://patchwork.kernel.org/patch/104909/
> > > https://patchwork.kernel.org/patch/104911/
> > > https://patchwork.kernel.org/patch/104910/
> > > 
> > > on top of current -git and see if the problem is still there?
> > > 
> > > Rafael
> > 
> > These patch don't apply nether on top of linus tree nor on top of
> > acpi-test tree (which includes these?)
> 
> Yes, acpi-test contains them, so you can test that tree.  I'm not sure why
> they don't apply on top of the Linus' tree, though.
I was using acpi-next all the time, so these patches don't help.
I partially reverted the guilty commit, and compile the kernel.


Best regards,
Maxim Levitsky

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
  2010-06-11 19:43   ` Rafael J. Wysocki
@ 2010-06-11 20:32     ` Maxim Levitsky
  2010-06-11 20:34       ` Rafael J. Wysocki
  0 siblings, 1 reply; 12+ messages in thread
From: Maxim Levitsky @ 2010-06-11 20:32 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: linux-acpi@vger.kernel.org, mjg59, len.brown, Moore, Robert,
	Linux PM

On Fri, 2010-06-11 at 21:43 +0200, Rafael J. Wysocki wrote: 
> On Friday, June 11, 2010, Rafael J. Wysocki wrote:
> > On Friday, June 11, 2010, Maxim Levitsky wrote:
> > > Just bisected it.
> > > 
> > > I also tried linux-acpi-next/test, and no change.
> > > 
> > > The sympthoms are that EC does't sent any GPEs, and therefore battery
> > > insert/removal events don't show up.
> > > 
> > > It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
> > > With regression the line is shown like this:
> > > 
> > > 
> > > /sys/firmware/acpi/interrupts/gpe1C:   1	enabled
> > > 
> > > Without regression it is
> > > 
> > > /sys/firmware/acpi/interrupts/gpe1C:   22889	enabled
> > > 
> > > and steadily increasing.
> > > 
> > > After suspend/resume, regression disappears.
> > 
> > Hmm.
> > 
> > Can you please apply the following patches:
> > 
> > https://patchwork.kernel.org/patch/104903/
> > https://patchwork.kernel.org/patch/104912/
> > https://patchwork.kernel.org/patch/104909/
> > https://patchwork.kernel.org/patch/104911/
> > https://patchwork.kernel.org/patch/104910/
> > 
> > on top of current -git and see if the problem is still there?
> 
> Also, regardless of whether or not this helps, please try to revert only the
> changes made by the "guilty" commit in drivers/acpi/acpica/evxface.c and see
> if that helps (this revert will conflict with the patches above, so you'll need
> to unapply them before).
> 
> Thanks,
> Rafael
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Yes, reverting changes in 'drivers/acpi/acpica/evxface.c' do restore
correct behavior.

Best regards,
Maxim Levitsky


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
  2010-06-11 20:32     ` Maxim Levitsky
@ 2010-06-11 20:34       ` Rafael J. Wysocki
  2010-06-11 20:59         ` [linux-pm] " Rafael J. Wysocki
  0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2010-06-11 20:34 UTC (permalink / raw)
  To: Maxim Levitsky
  Cc: linux-acpi@vger.kernel.org, mjg59, len.brown, Moore, Robert,
	Linux PM

On Friday, June 11, 2010, Maxim Levitsky wrote:
> On Fri, 2010-06-11 at 21:43 +0200, Rafael J. Wysocki wrote: 
> > On Friday, June 11, 2010, Rafael J. Wysocki wrote:
> > > On Friday, June 11, 2010, Maxim Levitsky wrote:
> > > > Just bisected it.
> > > > 
> > > > I also tried linux-acpi-next/test, and no change.
> > > > 
> > > > The sympthoms are that EC does't sent any GPEs, and therefore battery
> > > > insert/removal events don't show up.
> > > > 
> > > > It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
> > > > With regression the line is shown like this:
> > > > 
> > > > 
> > > > /sys/firmware/acpi/interrupts/gpe1C:   1	enabled
> > > > 
> > > > Without regression it is
> > > > 
> > > > /sys/firmware/acpi/interrupts/gpe1C:   22889	enabled
> > > > 
> > > > and steadily increasing.
> > > > 
> > > > After suspend/resume, regression disappears.
> > > 
> > > Hmm.
> > > 
> > > Can you please apply the following patches:
> > > 
> > > https://patchwork.kernel.org/patch/104903/
> > > https://patchwork.kernel.org/patch/104912/
> > > https://patchwork.kernel.org/patch/104909/
> > > https://patchwork.kernel.org/patch/104911/
> > > https://patchwork.kernel.org/patch/104910/
> > > 
> > > on top of current -git and see if the problem is still there?
> > 
> > Also, regardless of whether or not this helps, please try to revert only the
> > changes made by the "guilty" commit in drivers/acpi/acpica/evxface.c and see
> > if that helps (this revert will conflict with the patches above, so you'll need
> > to unapply them before).
> > 
> > Thanks,
> > Rafael
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> Yes, reverting changes in 'drivers/acpi/acpica/evxface.c' do restore
> correct behavior.

Good.  I think we'll need to revert them for .35, then.

I'll prepare a patch and send it to Len.

Rafael

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [linux-pm] commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
  2010-06-11 20:34       ` Rafael J. Wysocki
@ 2010-06-11 20:59         ` Rafael J. Wysocki
  2010-06-11 21:43           ` Maxim Levitsky
  0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2010-06-11 20:59 UTC (permalink / raw)
  To: linux-pm
  Cc: Maxim Levitsky, linux-acpi@vger.kernel.org, Moore, Robert,
	len.brown

On Friday, June 11, 2010, Rafael J. Wysocki wrote:
> On Friday, June 11, 2010, Maxim Levitsky wrote:
> > On Fri, 2010-06-11 at 21:43 +0200, Rafael J. Wysocki wrote: 
> > > On Friday, June 11, 2010, Rafael J. Wysocki wrote:
> > > > On Friday, June 11, 2010, Maxim Levitsky wrote:
> > > > > Just bisected it.
> > > > > 
> > > > > I also tried linux-acpi-next/test, and no change.
> > > > > 
> > > > > The sympthoms are that EC does't sent any GPEs, and therefore battery
> > > > > insert/removal events don't show up.
> > > > > 
> > > > > It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
> > > > > With regression the line is shown like this:
> > > > > 
> > > > > 
> > > > > /sys/firmware/acpi/interrupts/gpe1C:   1	enabled
> > > > > 
> > > > > Without regression it is
> > > > > 
> > > > > /sys/firmware/acpi/interrupts/gpe1C:   22889	enabled
> > > > > 
> > > > > and steadily increasing.
> > > > > 
> > > > > After suspend/resume, regression disappears.
> > > > 
> > > > Hmm.
> > > > 
> > > > Can you please apply the following patches:
> > > > 
> > > > https://patchwork.kernel.org/patch/104903/
> > > > https://patchwork.kernel.org/patch/104912/
> > > > https://patchwork.kernel.org/patch/104909/
> > > > https://patchwork.kernel.org/patch/104911/
> > > > https://patchwork.kernel.org/patch/104910/
> > > > 
> > > > on top of current -git and see if the problem is still there?
> > > 
> > > Also, regardless of whether or not this helps, please try to revert only the
> > > changes made by the "guilty" commit in drivers/acpi/acpica/evxface.c and see
> > > if that helps (this revert will conflict with the patches above, so you'll need
> > > to unapply them before).
> > > 
> > > Thanks,
> > > Rafael
> > > --
> > > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> > > the body of a message to majordomo@vger.kernel.org
> > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > 
> > Yes, reverting changes in 'drivers/acpi/acpica/evxface.c' do restore
> > correct behavior.
> 
> Good.  I think we'll need to revert them for .35, then.
> 
> I'll prepare a patch and send it to Len.

Can you check if the patch below fixes the issue?

Rafael

---
From: Rafael J. Wysocki <rjw@sisk.pl>
Subject: ACPI / ACPICA: Do not attempt to disable GPE when installing handler

Commit 0f849d2cc6863c7874889ea60a871fb71399dd3f (ACPICA: Minimize
the differences between linux GPE code and ACPICA code base)
introduced a change attempting to disable a GPE before installing
a handler for it in acpi_install_gpe_handler() which was incorrect.
First, the GPE disabled by it is never enabled again (except during
resume) which leads to battery insert/remove events not being
reported on the Maxim Levitsky's machine.  Second, the disabled
GPE is still reported as enabled by the sysfs interface that only
checks its enable register's enable_for_run mask.

Revert this change for now, because it causes more damage to happen
than the bug it was supposed to fix.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reported-by: Maxim Levitsky <maximlevitsky@gmail.com>
---
 drivers/acpi/acpica/evxface.c |   20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

Index: linux-2.6/drivers/acpi/acpica/evxface.c
===================================================================
--- linux-2.6.orig/drivers/acpi/acpica/evxface.c
+++ linux-2.6/drivers/acpi/acpica/evxface.c
@@ -719,13 +720,6 @@ acpi_install_gpe_handler(acpi_handle gpe
 	handler->context = context;
 	handler->method_node = gpe_event_info->dispatch.method_node;
 
-	/* Disable the GPE before installing the handler */
-
-	status = acpi_ev_disable_gpe(gpe_event_info);
-	if (ACPI_FAILURE (status)) {
-		goto unlock_and_exit;
-	}
-
 	/* Install the handler */
 
 	flags = acpi_os_acquire_lock(acpi_gbl_gpe_lock);

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [linux-pm] commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system
  2010-06-11 20:59         ` [linux-pm] " Rafael J. Wysocki
@ 2010-06-11 21:43           ` Maxim Levitsky
  0 siblings, 0 replies; 12+ messages in thread
From: Maxim Levitsky @ 2010-06-11 21:43 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: linux-pm, linux-acpi@vger.kernel.org, Moore, Robert, len.brown

On Fri, 2010-06-11 at 22:59 +0200, Rafael J. Wysocki wrote: 
> On Friday, June 11, 2010, Rafael J. Wysocki wrote:
> > On Friday, June 11, 2010, Maxim Levitsky wrote:
> > > On Fri, 2010-06-11 at 21:43 +0200, Rafael J. Wysocki wrote: 
> > > > On Friday, June 11, 2010, Rafael J. Wysocki wrote:
> > > > > On Friday, June 11, 2010, Maxim Levitsky wrote:
> > > > > > Just bisected it.
> > > > > > 
> > > > > > I also tried linux-acpi-next/test, and no change.
> > > > > > 
> > > > > > The sympthoms are that EC does't sent any GPEs, and therefore battery
> > > > > > insert/removal events don't show up.
> > > > > > 
> > > > > > It can be see by doing 'grep  . /sys/firmware/acpi/interrupts/*'
> > > > > > With regression the line is shown like this:
> > > > > > 
> > > > > > 
> > > > > > /sys/firmware/acpi/interrupts/gpe1C:   1	enabled
> > > > > > 
> > > > > > Without regression it is
> > > > > > 
> > > > > > /sys/firmware/acpi/interrupts/gpe1C:   22889	enabled
> > > > > > 
> > > > > > and steadily increasing.
> > > > > > 
> > > > > > After suspend/resume, regression disappears.
> > > > > 
> > > > > Hmm.
> > > > > 
> > > > > Can you please apply the following patches:
> > > > > 
> > > > > https://patchwork.kernel.org/patch/104903/
> > > > > https://patchwork.kernel.org/patch/104912/
> > > > > https://patchwork.kernel.org/patch/104909/
> > > > > https://patchwork.kernel.org/patch/104911/
> > > > > https://patchwork.kernel.org/patch/104910/
> > > > > 
> > > > > on top of current -git and see if the problem is still there?
> > > > 
> > > > Also, regardless of whether or not this helps, please try to revert only the
> > > > changes made by the "guilty" commit in drivers/acpi/acpica/evxface.c and see
> > > > if that helps (this revert will conflict with the patches above, so you'll need
> > > > to unapply them before).
> > > > 
> > > > Thanks,
> > > > Rafael
> > > > --
> > > > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> > > > the body of a message to majordomo@vger.kernel.org
> > > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > > 
> > > Yes, reverting changes in 'drivers/acpi/acpica/evxface.c' do restore
> > > correct behavior.
> > 
> > Good.  I think we'll need to revert them for .35, then.
> > 
> > I'll prepare a patch and send it to Len.
> 
> Can you check if the patch below fixes the issue?
Yes it does. Thanks!

Best regards,
Maxim Levitsky


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-06-11 21:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-11 11:47 commit 'ACPICA: Minimize the differences between linux GPE code and ACPICA code base' breaks EC GPE on my system Maxim Levitsky
2010-06-11 17:12 ` Len Brown
2010-06-11 19:23 ` Rafael J. Wysocki
2010-06-11 19:43   ` Rafael J. Wysocki
2010-06-11 20:32     ` Maxim Levitsky
2010-06-11 20:34       ` Rafael J. Wysocki
2010-06-11 20:59         ` [linux-pm] " Rafael J. Wysocki
2010-06-11 21:43           ` Maxim Levitsky
2010-06-11 19:47   ` Maxim Levitsky
2010-06-11 19:50     ` Rafael J. Wysocki
2010-06-11 19:59       ` Maxim Levitsky
2010-06-11 19:51     ` Maxim Levitsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox