linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* APM suspend/resume ceased to work with 2.4.28
@ 2004-11-22  3:25 Philippe Troin
  2004-11-22 17:36 ` Marcelo Tosatti
  0 siblings, 1 reply; 7+ messages in thread
From: Philippe Troin @ 2004-11-22  3:25 UTC (permalink / raw)
  To: LKML; +Cc: Marcelo Tosatti

Seen on a Dell Inspiron 3800 with BIOS revision A17.

APM suspend/resume works perfectly with 2.4.27 (or at least, as well
as APM can).

Since I did not see any differences in arch/i386/kernel/apm.c between
.27 and .28, I'm at loss to explain the problem.

Phil.

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

* Re: APM suspend/resume ceased to work with 2.4.28
  2004-11-22  3:25 APM suspend/resume ceased to work with 2.4.28 Philippe Troin
@ 2004-11-22 17:36 ` Marcelo Tosatti
  2004-11-23  0:03   ` Philippe Troin
  0 siblings, 1 reply; 7+ messages in thread
From: Marcelo Tosatti @ 2004-11-22 17:36 UTC (permalink / raw)
  To: Philippe Troin; +Cc: LKML

On Sun, Nov 21, 2004 at 07:25:20PM -0800, Philippe Troin wrote:
> Seen on a Dell Inspiron 3800 with BIOS revision A17.
> 
> APM suspend/resume works perfectly with 2.4.27 (or at least, as well
> as APM can).
> 
> Since I did not see any differences in arch/i386/kernel/apm.c between
> .27 and .28, I'm at loss to explain the problem.

Guess: Are you using ACPI ? 

:(

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

* Re: APM suspend/resume ceased to work with 2.4.28
  2004-11-22 17:36 ` Marcelo Tosatti
@ 2004-11-23  0:03   ` Philippe Troin
  2004-11-23  7:02     ` Marcelo Tosatti
  0 siblings, 1 reply; 7+ messages in thread
From: Philippe Troin @ 2004-11-23  0:03 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: LKML

Marcelo Tosatti <marcelo.tosatti@cyclades.com> writes:

> On Sun, Nov 21, 2004 at 07:25:20PM -0800, Philippe Troin wrote:
> > Seen on a Dell Inspiron 3800 with BIOS revision A17.
> > 
> > APM suspend/resume works perfectly with 2.4.27 (or at least, as well
> > as APM can).
> > 
> > Since I did not see any differences in arch/i386/kernel/apm.c between
> > .27 and .28, I'm at loss to explain the problem.
> 
> Guess: Are you using ACPI ? 

ACPI is compiled in, but the kernel is booted with noacpi...

Phil.

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

* Re: APM suspend/resume ceased to work with 2.4.28
  2004-11-23  0:03   ` Philippe Troin
@ 2004-11-23  7:02     ` Marcelo Tosatti
  2004-11-25  6:10       ` Philippe Troin
  2004-12-03  1:50       ` Philippe Troin
  0 siblings, 2 replies; 7+ messages in thread
From: Marcelo Tosatti @ 2004-11-23  7:02 UTC (permalink / raw)
  To: Philippe Troin; +Cc: LKML

On Mon, Nov 22, 2004 at 04:03:05PM -0800, Philippe Troin wrote:
> Marcelo Tosatti <marcelo.tosatti@cyclades.com> writes:
> 
> > On Sun, Nov 21, 2004 at 07:25:20PM -0800, Philippe Troin wrote:
> > > Seen on a Dell Inspiron 3800 with BIOS revision A17.
> > > 
> > > APM suspend/resume works perfectly with 2.4.27 (or at least, as well
> > > as APM can).
> > > 
> > > Since I did not see any differences in arch/i386/kernel/apm.c between
> > > .27 and .28, I'm at loss to explain the problem.
> > 
> > Guess: Are you using ACPI ? 
> 
> ACPI is compiled in, but the kernel is booted with noacpi...
> 
> Phil.

Phil, 

Can you please try 2.4.28-pre3 ? 

Lets try to find out where it started to happen. I've got no clue, 
there are no indeed no APM related changes in 2.4.28.

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

* Re: APM suspend/resume ceased to work with 2.4.28
  2004-11-23  7:02     ` Marcelo Tosatti
@ 2004-11-25  6:10       ` Philippe Troin
  2004-12-03  1:50       ` Philippe Troin
  1 sibling, 0 replies; 7+ messages in thread
From: Philippe Troin @ 2004-11-25  6:10 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: LKML

Marcelo Tosatti <marcelo.tosatti@cyclades.com> writes:

> On Mon, Nov 22, 2004 at 04:03:05PM -0800, Philippe Troin wrote:
> > Marcelo Tosatti <marcelo.tosatti@cyclades.com> writes:
> > 
> > > On Sun, Nov 21, 2004 at 07:25:20PM -0800, Philippe Troin wrote:
> > > > Seen on a Dell Inspiron 3800 with BIOS revision A17.
> > > > 
> > > > APM suspend/resume works perfectly with 2.4.27 (or at least, as well
> > > > as APM can).
> > > > 
> > > > Since I did not see any differences in arch/i386/kernel/apm.c between
> > > > .27 and .28, I'm at loss to explain the problem.
> > > 
> > > Guess: Are you using ACPI ? 
> > 
> > ACPI is compiled in, but the kernel is booted with noacpi...
> > 
> > Phil.
> 
> Phil, 
> 
> Can you please try 2.4.28-pre3 ? 
> 
> Lets try to find out where it started to happen. I've got no clue, 
> there are no indeed no APM related changes in 2.4.28.

The bug was introduced between rc1 and rc2.

I'm still working on it to narrow it down to which delta introduced
the bug.

I suspect either the ACPI or the APIC/DMI changes.

Phil.

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

* Re: APM suspend/resume ceased to work with 2.4.28
  2004-11-23  7:02     ` Marcelo Tosatti
  2004-11-25  6:10       ` Philippe Troin
@ 2004-12-03  1:50       ` Philippe Troin
  2004-12-03  3:13         ` Len Brown
  1 sibling, 1 reply; 7+ messages in thread
From: Philippe Troin @ 2004-12-03  1:50 UTC (permalink / raw)
  To: Brown, Len; +Cc: Marcelo Tosatti, LKML, linux-acpi

[-- Attachment #1: Type: text/plain, Size: 617 bytes --]

Philippe Troin <phil@fifi.org> writes:

> Where do we go from here?

I just diffed out the boot log between 2.4.27 and 2.4.28.  And I found
this new message appearing in 2.4.28:

        ACPI: IRQ9 SCI: Edge set to Level Trigger.

Weird since IRQ 9 is not in use in this system.  IRQ9 is typically
used by ACPI.

After some digging in the sources, I found that the newly introduced
(2.4.28-rc2) function acpi_early_init() runs wether or not acpi=off
was specified on the command line.

This trivial patch makes my laptop suspend-happy.  Len, please confirm
that this is ok.  Marcelo, please include in 29-pre.

Phil.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: linux-2.4.28-8-acpi.patch --]
[-- Type: text/x-patch, Size: 440 bytes --]

diff -ruN linux-2.4.28.orig/drivers/acpi/bus.c linux-2.4.28/drivers/acpi/bus.c
--- linux-2.4.28.orig/drivers/acpi/bus.c	Wed Nov 17 03:54:21 2004
+++ linux-2.4.28/drivers/acpi/bus.c	Thu Dec  2 16:49:54 2004
@@ -1850,6 +1850,9 @@
 	acpi_status		status = AE_OK;
 	struct acpi_buffer	buffer = {sizeof(acpi_fadt), &acpi_fadt};
 
+	if (acpi_disabled)
+		return;
+
 	ACPI_FUNCTION_TRACE("acpi_bus_init");
 
 	status = acpi_initialize_subsystem();

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

* Re: APM suspend/resume ceased to work with 2.4.28
  2004-12-03  1:50       ` Philippe Troin
@ 2004-12-03  3:13         ` Len Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Len Brown @ 2004-12-03  3:13 UTC (permalink / raw)
  To: Philippe Troin, Marcelo Tosatti; +Cc: LKML, linux-acpi

On Thu, 2004-12-02 at 20:50, Philippe Troin wrote:
> Philippe Troin <phil@fifi.org> writes:

> This trivial patch makes my laptop suspend-happy.

Good catch Phil!

My fault -- we fixed this in 2.6 and I failed to backport it to 2.4:-(

I've included your patch w/ minor syntax change to the ACPI patch.

Marcelo, please do a 

	bk pull bk://linux-acpi.bkbits.net/24-latest-release

thanks,
-Len

ps. a plain patch is also available here:
ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/24-latest-release/acpi-20040326-24-latest-release.diff.gz

This will update the following files:

 drivers/acpi/bus.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

through these ChangeSets:

<len.brown@intel.com> (04/12/02 1.1458.1.9)
   [ACPI] acpi=off must disable acpi_early_init()
   
   Signed-off-by: Philippe Troin <phil@fifi.org>
   Signed-off-by: Len Brown <len.brown@intel.com>





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

end of thread, other threads:[~2004-12-03  3:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-22  3:25 APM suspend/resume ceased to work with 2.4.28 Philippe Troin
2004-11-22 17:36 ` Marcelo Tosatti
2004-11-23  0:03   ` Philippe Troin
2004-11-23  7:02     ` Marcelo Tosatti
2004-11-25  6:10       ` Philippe Troin
2004-12-03  1:50       ` Philippe Troin
2004-12-03  3:13         ` Len Brown
     [not found] <F7DC2337C7631D4386A2DF6E8FB22B300225E3FC@hdsmsx401.amr.corp.intel.com>

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).