2003-09-10 10:31:50

by Claas Langbehn

[permalink] [raw]
Subject: [2.6.0-test5-mm1] Suspend to RAM problems

Hello,

I have got kernel 2.6.0-test5-mm1 on an Epox 8k9a9i Mainboard with
KT400A and an Nvidia FX5200 using the nvidia-module and drivers.
I use only onboard IDE and onboard ethernet.

I want to be able to use Suspend to RAM with my machine. I tried
APM and ACPI, both with no success. I also tried with no X11.


1.) APM: (ACPI follows...)
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)

Sep 10 12:02:55 localhost apmd[441]: Suspending now
Sep 10 12:02:55 localhost kernel: hdc: start_power_step(step: 0)
Sep 10 12:02:55 localhost kernel: hdc: completing PM request, suspend
Sep 10 12:02:55 localhost kernel: hda: start_power_step(step: 0)
Sep 10 12:02:55 localhost kernel: hda: start_power_step(step: 1)
Sep 10 12:02:55 localhost kernel: hda: complete_power_step(step: 1, stat: 50, err: 0)
Sep 10 12:02:59 localhost kernel: hda: completing PM request, suspend
Sep 10 12:03:00 localhost kernel: hda: Wakeup request inited, waiting for !BSY...
Sep 10 12:03:00 localhost kernel: hda: start_power_step(step: 1000)
Sep 10 12:03:00 localhost kernel: blk: queue dfe03e00, I/O limit 4095Mb (mask 0xffffffff)
Sep 10 12:03:00 localhost kernel: hda: completing PM request, resume
Sep 10 12:03:00 localhost kernel: hdc: Wakeup request inited, waiting for !BSY...
Sep 10 12:03:00 localhost kernel: hdc: start_power_step(step: 1000)
Sep 10 12:03:00 localhost kernel: hdc: completing PM request, resume

I pressed the power button at the machines case, but it comes back to
life straight away. I also tried with apm --verbose --suspend and --standby,
but with no change.


2) ACPI
Thanks to Andrew de Quincey I can boot with ACPI without
problems and I can read out my temp and so on, but when I do
echo -n "mem" >/sys/power/state
the machine goes into sleep (STR) but crashes after waking up again.
And an
echo -n "S3" > /proc/acpi/sleep
doesn't work at all.
Also pressing the power button has NO effect. I think
it does not generate an event.


3) Questions
What can I do to get STR working straight?
Are these some stupid non-powersaving-aware drivers?
What makes my system wake up from apm suspend? How to debug?
I can see the CPU temp with ACPI, but how do I see the case temp?
Do I need to change things in the system BIOS or does linux ignore that?



Bye, claas


2003-09-10 11:13:16

by Claas Langbehn

[permalink] [raw]
Subject: Re: [ACPI] [2.6.0-test5-mm1] Suspend to RAM problems

I also tried to suspend with ACPI in single user mode:

echo 3 >/proc/acpi/sleep

makes the system sleep within a second.

After waking it up by pressing a key or the power button
the VGA Bios shows up for a second and afterwards I get
this message:

APIC error on CPU0: 08(08)

...and it repeats endlessly :(

my keyboard is dead afterwards.

2003-09-10 14:38:55

by Pavel Machek

[permalink] [raw]
Subject: Re: [ACPI] [2.6.0-test5-mm1] Suspend to RAM problems

Hi!

> I also tried to suspend with ACPI in single user mode:
>
> echo 3 >/proc/acpi/sleep
>
> makes the system sleep within a second.
>
> After waking it up by pressing a key or the power button
> the VGA Bios shows up for a second and afterwards I get
> this message:
>
> APIC error on CPU0: 08(08)
>
> ...and it repeats endlessly :(
>
> my keyboard is dead afterwards.

Can you test on -test3 kernel?
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

2003-09-10 15:36:16

by Patrick Mochel

[permalink] [raw]
Subject: Re: [2.6.0-test5-mm1] Suspend to RAM problems


> I have got kernel 2.6.0-test5-mm1 on an Epox 8k9a9i Mainboard with
> KT400A and an Nvidia FX5200 using the nvidia-module and drivers.
> I use only onboard IDE and onboard ethernet.
>
> I want to be able to use Suspend to RAM with my machine. I tried
> APM and ACPI, both with no success. I also tried with no X11.

> 1.) APM: (ACPI follows...)
> apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)

It's likely that if your system supports ACPI, the APM implementation will
not work, especially if you boot with ACPI enabled.

> 2) ACPI
> Thanks to Andrew de Quincey I can boot with ACPI without
> problems and I can read out my temp and so on, but when I do
> echo -n "mem" >/sys/power/state
> the machine goes into sleep (STR) but crashes after waking up again.

What exactly does it do on wakeup?

Would you please try the patch at:

http://developer.osdl.org/~mochel/patches/test5-pm1/test5-pm2.diff.bz2

against 2.6.0-test5 and report whether or not it works?

Also, please try removing all modules before suspending and reinserting
them after resuming.

Do you have any of the following enabled:

SMP?

Preempt?

APIC?


> And an
> echo -n "S3" > /proc/acpi/sleep

That should be:

echo "3" > /proc/acpi/sleep

But, please use the sysfs interface.


Thanks,


Pat

2003-09-10 15:46:20

by Claas Langbehn

[permalink] [raw]
Subject: Re: [2.6.0-test5-mm1] Suspend to RAM problems

Patrick Mochel wrote:

> > 1.) APM: (ACPI follows...)
> > apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
>
> It's likely that if your system supports ACPI, the APM implementation will
> not work, especially if you boot with ACPI enabled.

Sure. That was with an APM-only enabled kernel.


> > 2) ACPI
> > Thanks to Andrew de Quincey I can boot with ACPI without
> > problems and I can read out my temp and so on, but when I do
> > echo -n "mem" >/sys/power/state
> > the machine goes into sleep (STR) but crashes after waking up again.
>
> What exactly does it do on wakeup?

When the system sleeps, it the power LED blinks. I call it wake-up
when the system starts again. I press a key or the power button. Then
the system beeps once and it comes back...

> Would you please try the patch at:
> http://developer.osdl.org/~mochel/patches/test5-pm1/test5-pm2.diff.bz2

i will try it and report about my experiences later.


> Also, please try removing all modules before suspending and reinserting
> them after resuming.
I did that. But I have a lot inside the kernel. I will try to modularise
more.

> Do you have any of the following enabled:
>
> SMP?
no

> Preempt?
no

> APIC?
yes:
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_UP_APIC=y
CONFIG_X86_UP_IOAPIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y


> > echo -n "S3" > /proc/acpi/sleep

> That should be:
> echo "3" > /proc/acpi/sleep
>
> But, please use the sysfs interface.

alright. but that has the same effects.




bye, claas

2003-09-10 15:47:13

by Claas Langbehn

[permalink] [raw]
Subject: Re: [ACPI] [2.6.0-test5-mm1] Suspend to RAM problems

Pavel Machek wrote:

> > APIC error on CPU0: 08(08)
> >
> > ...and it repeats endlessly :(
> >
> > my keyboard is dead afterwards.
>
> Can you test on -test3 kernel?

Ok, I will later today.


BTW: when I suspend from X11 with the nvidia-drivers, then
the screen looks even worse :(

2003-09-10 16:10:13

by Pau Aliagas

[permalink] [raw]
Subject: Re: [2.6.0-test5-mm1] Suspend to RAM problems

On Wed, 10 Sep 2003, Claas Langbehn wrote:

> Patrick Mochel wrote:

> > > 2) ACPI
> > > Thanks to Andrew de Quincey I can boot with ACPI without
> > > problems and I can read out my temp and so on, but when I do
> > > echo -n "mem" >/sys/power/state
> > > the machine goes into sleep (STR) but crashes after waking up again.
> >
> > What exactly does it do on wakeup?

Mine crashes before suspending. It says something like:
Stoppings tasks
===========================================================
critical region / count pages [XXXXXXXXXXXX]

> When the system sleeps, it the power LED blinks. I call it wake-up
> when the system starts again. I press a key or the power button. Then
> the system beeps once and it comes back...
>
> > Would you please try the patch at:
> > http://developer.osdl.org/~mochel/patches/test5-pm1/test5-pm2.diff.bz2
>
> i will try it and report about my experiences later.

I'll give it a try too.

> > > echo -n "S3" > /proc/acpi/sleep
>
> > That should be:
> > echo "3" > /proc/acpi/sleep

$ ls /proc/acpi
ac_adapter battery dsdt event fan power_resource thermal_zone
alarm button embedded_controller fadt info processor

> > But, please use the sysfs interface.

It hangs the computer.

Pau

2003-09-10 17:11:59

by Pavel Machek

[permalink] [raw]
Subject: Re: [ACPI] [2.6.0-test5-mm1] Suspend to RAM problems

Hi!

> > > APIC error on CPU0: 08(08)
> > >
> > > ...and it repeats endlessly :(
> > >
> > > my keyboard is dead afterwards.
> >
> > Can you test on -test3 kernel?
>
> Ok, I will later today.
>
>
> BTW: when I suspend from X11 with the nvidia-drivers, then
> the screen looks even worse :(

Nvidia is binary only, right? I can't help with that.

Pavel

--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

2003-09-10 21:22:15

by Andrew de Quincey

[permalink] [raw]
Subject: Re: [ACPI] [2.6.0-test5-mm1] Suspend to RAM problems

On Wednesday 10 Sep 2003 6:11 pm, Pavel Machek wrote:
> Hi!
>
> > > > APIC error on CPU0: 08(08)
> > > >
> > > > ...and it repeats endlessly :(
> > > >
> > > > my keyboard is dead afterwards.
> > >
> > > Can you test on -test3 kernel?
> >
> > Ok, I will later today.
> >
> >
> > BTW: when I suspend from X11 with the nvidia-drivers, then
> > the screen looks even worse :(
>
> Nvidia is binary only, right? I can't help with that.

Unless he's using the opensource nv drivers that come with X?


2003-09-11 11:58:41

by Claas Langbehn

[permalink] [raw]
Subject: Re: [ACPI] [2.6.0-test5-mm1] Suspend to RAM problems

Pavel Machek wrote:

> >
> > APIC error on CPU0: 08(08)
> > ...and it repeats endlessly :(
> >
> > my keyboard is dead afterwards.
>
> Can you test on -test3 kernel?

no, I can't, because I need Andrew De Quincey's linux-2.6.0-test4-acpi-picmode-5.patch
to be able to boot acpi painless. :( But I could try with later
test-kernels.


2003-09-11 12:45:43

by Claas Langbehn

[permalink] [raw]
Subject: Re: [2.6.0-test5-mm1] Suspend to RAM problems

Patrick Mochel wrote:

> > 2) ACPI
> > Thanks to Andrew de Quincey I can boot with ACPI without
> > problems and I can read out my temp and so on, but when I do
> > echo -n "mem" >/sys/power/state
> > the machine goes into sleep (STR) but crashes after waking up again.
>
> What exactly does it do on wakeup?
>
> Would you please try the patch at:
>
> http://developer.osdl.org/~mochel/patches/test5-pm1/test5-pm2.diff.bz2
>
> against 2.6.0-test5 and report whether or not it works?

[...]
CC drivers/acpi/sleep/proc.o
drivers/acpi/sleep/proc.c: In function `acpi_system_write_sleep':
drivers/acpi/sleep/proc.c:72: error: void value not ignored as it
ought to be
make[3]: *** [drivers/acpi/sleep/proc.o] Error 1
make[2]: *** [drivers/acpi/sleep] Error 2
make[1]: *** [drivers/acpi] Error 2
make: *** [drivers] Error 2


Is there an incremental patch from -pm1 to -pm2?
I would apply it to -test5-mm1 then



claas

2003-09-11 15:57:20

by Patrick Mochel

[permalink] [raw]
Subject: Re: [2.6.0-test5-mm1] Suspend to RAM problems


> [...]
> CC drivers/acpi/sleep/proc.o
> drivers/acpi/sleep/proc.c: In function `acpi_system_write_sleep':
> drivers/acpi/sleep/proc.c:72: error: void value not ignored as it
> ought to be
> make[3]: *** [drivers/acpi/sleep/proc.o] Error 1
> make[2]: *** [drivers/acpi/sleep] Error 2
> make[1]: *** [drivers/acpi] Error 2
> make: *** [drivers] Error 2
>
>
> Is there an incremental patch from -pm1 to -pm2?
> I would apply it to -test5-mm1 then

Patch below. Sorry about that.


Pat

diff -Nru a/drivers/acpi/sleep/proc.c b/drivers/acpi/sleep/proc.c
--- a/drivers/acpi/sleep/proc.c Thu Sep 11 08:54:01 2003
+++ b/drivers/acpi/sleep/proc.c Thu Sep 11 08:54:01 2003
@@ -69,7 +69,7 @@
state = simple_strtoul(str, NULL, 0);
#ifdef CONFIG_SOFTWARE_SUSPEND
if (state == 4) {
- error = software_suspend();
+ software_suspend();
goto Done;
}
#endif

2003-09-13 14:19:36

by Claas Langbehn

[permalink] [raw]
Subject: Re: [ACPI] Re: [2.6.0-test5-mm1] Suspend to RAM problems

Hi again,


or do I need to setup something particular in my system BIOS?


Claas

2003-09-13 14:18:33

by Claas Langbehn

[permalink] [raw]
Subject: Re: [2.6.0-test5-mm1] Suspend to RAM problems

> > Is there an incremental patch from -pm1 to -pm2?
> > I would apply it to -test5-mm1 then
>
> Patch below. Sorry about that.

Also, no success. It's still the same.

I also tried with 2.4.22-ac2 with ACPI and also with APM.
I was only able to APM suspend the machine. Everything else
did not work :( I also tried without IO-APIC.


regards, claas


-------------------
some logs:
-------------------

# cat /proc/interupts
CPU0
0: 13882622 IO-APIC-edge timer
1: 3569 IO-APIC-edge i8042
2: 0 XT-PIC cascade
8: 4 IO-APIC-edge rtc
9: 0 IO-APIC-edge acpi
12: 35791 IO-APIC-edge i8042
14: 78195 IO-APIC-edge ide0
15: 27 IO-APIC-edge ide1
16: 1043206 IO-APIC-level nvidia
21: 16 IO-APIC-level ehci_hcd, uhci-hcd, uhci-hcd, uhci-hcd
22: 0 IO-APIC-level VIA8233
23: 167984 IO-APIC-level eth0
NMI: 0
LOC: 13881222
ERR: 0
MIS: 0


# lspci -v
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400 AGP] Host Bridge (rev 80)
Subsystem: VIA Technologies, Inc. VT8377 [KT400 AGP] Host Bridge
Flags: bus master, 66Mhz, medium devsel, latency 8
Memory at d0000000 (32-bit, prefetchable) [size=128M]
Capabilities: [80] AGP version 3.5
Capabilities: [c0] Power Management version 2

00:01.0 PCI bridge: VIA Technologies, Inc.: Unknown device b198 (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: e0000000-e1ffffff
Prefetchable memory behind bridge: d8000000-dfffffff
Capabilities: [80] Power Management version 2

00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00 [UHCI])
Subsystem: Unknown device 1695:3005
Flags: bus master, medium devsel, latency 32, IRQ 21
I/O ports at d000 [size=32]
Capabilities: [80] Power Management version 2

00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00 [UHCI])
Subsystem: Unknown device 1695:3005
Flags: bus master, medium devsel, latency 32, IRQ 21
I/O ports at d400 [size=32]
Capabilities: [80] Power Management version 2

00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00 [UHCI])
Subsystem: Unknown device 1695:3005
Flags: bus master, medium devsel, latency 32, IRQ 21
I/O ports at d800 [size=32]
Capabilities: [80] Power Management version 2

00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) (prog-if 20 [EHCI])
Subsystem: Unknown device 1695:3005
Flags: bus master, medium devsel, latency 32, IRQ 21
Memory at e2000000 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2

00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
Subsystem: VIA Technologies, Inc. VT8235 ISA Bridge
Flags: bus master, stepping, medium devsel, latency 0
Capabilities: [c0] Power Management version 2

00:11.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
Subsystem: Unknown device 1695:3005
Flags: bus master, medium devsel, latency 32, IRQ 20
I/O ports at dc00 [size=16]
Capabilities: [c0] Power Management version 2

00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 50)
Subsystem: Unknown device 1695:3005
Flags: medium devsel, IRQ 22
I/O ports at e000 [size=256]
Capabilities: [c0] Power Management version 2

00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
Subsystem: Unknown device 1695:3005
Flags: bus master, medium devsel, latency 32, IRQ 23
I/O ports at e400 [size=256]
Memory at e2001000 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Power Management version 2

01:00.0 VGA compatible controller: nVidia Corporation: Unknown device 0322 (rev a1) (prog-if 00 [VGA])
Subsystem: ABIT Computer Corp.: Unknown device 8f15
Flags: bus master, 66Mhz, medium devsel, latency 248, IRQ 16
Memory at e0000000 (32-bit, non-prefetchable) [size=16M]
Memory at d8000000 (32-bit, prefetchable) [size=128M]
Expansion ROM at <unassigned> [disabled] [size=128K]
Capabilities: [60] Power Management version 2
Capabilities: [44] AGP version 3.0

# dmesg


Linux version 2.6.0-test5-mm1 (root@zoo) (gcc version 3.3.2 20030831 (Debian prerelease)) #4 Fri Sep 12 00:01:52 CEST 2003
Video mode to be used for restore is ffff
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
511MB LOWMEM available.
found SMP MP-table at 000f5a10
hm, page 000f5000 reserved twice.
hm, page 000f6000 reserved twice.
hm, page 000f1000 reserved twice.
hm, page 000f2000 reserved twice.
On node 0 totalpages: 131056
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 126960 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI 2.2 present.
ACPI: RSDP (v000 KT400A ) @ 0x000f7410
ACPI: RSDT (v001 KT400A AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1fff3000
ACPI: FADT (v001 KT400A AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1fff3040
ACPI: MADT (v001 KT400A AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x1fff7000
ACPI: DSDT (v001 KT400A AWRDACPI 0x00001000 MSFT 0x0100000d) @ 0x00000000
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 6:8 APIC version 16
ACPI: LAPIC_NMI (acpi_id[0x00] polarity[0x1] trigger[0x1] lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] global_irq_base[0x0])
IOAPIC[0]: Assigned apic_id 2
IOAPIC[0]: apic_id 2, version 3, address 0xfec00000, IRQ 0-23
ACPI: INT_SRC_OVR (bus[0] irq[0x0] global_irq[0x2] polarity[0x0] trigger[0x0])
ACPI: INT_SRC_OVR (bus[0] irq[0x9] global_irq[0x9] polarity[0x0] trigger[0x0])
ACPI: INT_SRC_OVR (bus[0] irq[0xe] global_irq[0xe] polarity[0x1] trigger[0x1])
ACPI: INT_SRC_OVR (bus[0] irq[0xf] global_irq[0xf] polarity[0x1] trigger[0x1])
Enabling APIC mode: Flat. Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Building zonelist for node : 0
Kernel command line: root=/dev/hda1 devfs=mount
current: c04169c0
current->thread_info: c0474000
Initializing CPU#0
PID hash table entries: 2048 (order 11: 16384 bytes)
Detected 1533.329 MHz processor.
Console: colour VGA+ 80x25
Memory: 514172k/524224k available (2715k kernel code, 9304k reserved, 819k data, 352k init, 0k highmem)
zapping low mappings.
Calibrating delay loop... 3022.84 BogoMIPS
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
-> /dev
-> /dev/console
-> /root
CPU: After generic identify, caps: 0383fbff c1c3fbff 00000000 00000000
CPU: After vendor identify, caps: 0383fbff c1c3fbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After all inits, caps: 0383fbff c1c3fbff 00000000 00000020
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: AMD Athlon(tm) XP 1800+ stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
ENABLING IO-APIC IRQs
init IO_APIC IRQs
IO-APIC (apicid-pin) 2-0, 2-16, 2-17, 2-18, 2-19, 2-20, 2-21, 2-22, 2-23 not connected.
..TIMER: vector=0x31 pin1=2 pin2=-1
number of MP IRQ sources: 15.
number of IO-APIC #2 registers: 24.
testing the IO APIC.......................
IO APIC #2......
.... register #00: 02000000
....... : physical APIC id: 02
....... : Delivery Type: 0
....... : LTS : 0
.... register #01: 00178003
....... : max redirection entries: 0017
....... : PRQ implemented: 1
....... : IO APIC version: 0003
.... IRQ redirection table:
NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:
00 000 00 1 0 0 0 0 0 0 00
01 001 01 0 0 0 0 0 1 1 39
02 001 01 0 0 0 0 0 1 1 31
03 001 01 0 0 0 0 0 1 1 41
04 001 01 0 0 0 0 0 1 1 49
05 001 01 0 0 0 0 0 1 1 51
06 001 01 0 0 0 0 0 1 1 59
07 001 01 0 0 0 0 0 1 1 61
08 001 01 0 0 0 0 0 1 1 69
09 001 01 0 0 0 0 0 1 1 71
0a 001 01 0 0 0 0 0 1 1 79
0b 001 01 0 0 0 0 0 1 1 81
0c 001 01 0 0 0 0 0 1 1 89
0d 001 01 0 0 0 0 0 1 1 91
0e 001 01 0 0 0 0 0 1 1 99
0f 001 01 0 0 0 0 0 1 1 A1
10 000 00 1 0 0 0 0 0 0 00
11 000 00 1 0 0 0 0 0 0 00
12 000 00 1 0 0 0 0 0 0 00
13 000 00 1 0 0 0 0 0 0 00
14 000 00 1 0 0 0 0 0 0 00
15 000 00 1 0 0 0 0 0 0 00
16 000 00 1 0 0 0 0 0 0 00
17 000 00 1 0 0 0 0 0 0 00
IRQ to pin mappings:
IRQ0 -> 0:2
IRQ1 -> 0:1
IRQ3 -> 0:3
IRQ4 -> 0:4
IRQ5 -> 0:5
IRQ6 -> 0:6
IRQ7 -> 0:7
IRQ8 -> 0:8
IRQ9 -> 0:9
IRQ10 -> 0:10
IRQ11 -> 0:11
IRQ12 -> 0:12
IRQ13 -> 0:13
IRQ14 -> 0:14
IRQ15 -> 0:15
.................................... done.
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1532.0959 MHz.
..... host bus clock speed is 266.0601 MHz.
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb370, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20030813
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [ALKA] (IRQs 20)
ACPI: PCI Interrupt Link [ALKB] (IRQs 21)
ACPI: PCI Interrupt Link [ALKC] (IRQs 22)
ACPI: PCI Interrupt Link [ALKD] (IRQs 23)
Linux Plug and Play Support v0.97 (c) Adam Belay
SCSI subsystem initialized
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
IOAPIC[0]: Set PCI routing entry (2-16 -> 0xa9 -> IRQ 16 Mode:1 Active:1)
00:00:08[A] -> 2-16 -> IRQ 16
IOAPIC[0]: Set PCI routing entry (2-17 -> 0xb1 -> IRQ 17 Mode:1 Active:1)
00:00:08[B] -> 2-17 -> IRQ 17
IOAPIC[0]: Set PCI routing entry (2-18 -> 0xb9 -> IRQ 18 Mode:1 Active:1)
00:00:08[C] -> 2-18 -> IRQ 18
IOAPIC[0]: Set PCI routing entry (2-19 -> 0xc1 -> IRQ 19 Mode:1 Active:1)
00:00:08[D] -> 2-19 -> IRQ 19
Pin 2-17 already programmed
Pin 2-18 already programmed
Pin 2-19 already programmed
Pin 2-16 already programmed
Pin 2-18 already programmed
Pin 2-19 already programmed
Pin 2-16 already programmed
Pin 2-17 already programmed
Pin 2-19 already programmed
Pin 2-16 already programmed
Pin 2-17 already programmed
Pin 2-18 already programmed
Pin 2-18 already programmed
Pin 2-19 already programmed
Pin 2-16 already programmed
Pin 2-17 already programmed
_CRS returns NULL! Using IRQ 21 for device (PCI Interrupt Link [ALKB]).
ACPI: PCI Interrupt Link [ALKB] enabled at IRQ 21
IOAPIC[0]: Set PCI routing entry (2-21 -> 0xc9 -> IRQ 21 Mode:1 Active:1)
00:00:10[A] -> 2-21 -> IRQ 21
Pin 2-21 already programmed
Pin 2-21 already programmed
Pin 2-21 already programmed
_CRS returns NULL! Using IRQ 20 for device (PCI Interrupt Link [ALKA]).
ACPI: PCI Interrupt Link [ALKA] enabled at IRQ 20
IOAPIC[0]: Set PCI routing entry (2-20 -> 0xd1 -> IRQ 20 Mode:1 Active:1)
00:00:11[A] -> 2-20 -> IRQ 20
Pin 2-21 already programmed
_CRS returns NULL! Using IRQ 22 for device (PCI Interrupt Link [ALKC]).
ACPI: PCI Interrupt Link [ALKC] enabled at IRQ 22
IOAPIC[0]: Set PCI routing entry (2-22 -> 0xd9 -> IRQ 22 Mode:1 Active:1)
00:00:11[C] -> 2-22 -> IRQ 22
_CRS returns NULL! Using IRQ 23 for device (PCI Interrupt Link [ALKD]).
ACPI: PCI Interrupt Link [ALKD] enabled at IRQ 23
IOAPIC[0]: Set PCI routing entry (2-23 -> 0xe1 -> IRQ 23 Mode:1 Active:1)
00:00:11[D] -> 2-23 -> IRQ 23
Pin 2-16 already programmed
Pin 2-17 already programmed
Pin 2-18 already programmed
Pin 2-19 already programmed
Pin 2-23 already programmed
Pin 2-23 already programmed
Pin 2-23 already programmed
Pin 2-23 already programmed
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even 'acpi=off'
pty: 256 Unix98 ptys configured
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
apm: overridden by ACPI.
ikconfig 0.6 with /proc/config*
devfs: v1.22 (20021013) Richard Gooch ([email protected])
devfs: boot_options: 0x1
udf: registering filesystem
SGI XFS for Linux with no debug enabled
Initializing Cryptographic API
PCI: Via IRQ fixup for 0000:00:10.0, from 11 to 5
PCI: Via IRQ fixup for 0000:00:10.1, from 11 to 5
PCI: Via IRQ fixup for 0000:00:10.2, from 10 to 5
ACPI: Power Button (FF) [PWRF]
ACPI: Fan [FAN] (on)
ACPI: Processor [CPU0] (supports C1 C2)
ACPI: Thermal Zone [THRM] (26 C)
request_module: failed /sbin/modprobe -- parport_lowlevel. error = -16
lp: driver loaded but no devices found
Real Time Clock Driver v1.12
Serial: 8250/16550 driver $Revision: 1.90 $ IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
parport0: irq 7 detected
parport0: cpp_daisy: aa5500ff(38)
parport0: assign_addrs: aa5500ff(38)
parport0: cpp_daisy: aa5500ff(38)
parport0: assign_addrs: aa5500ff(38)
lp0: using parport0 (polling).
Using anticipatory scheduling io scheduler
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
via-rhine.c:v1.10-LK1.1.19-2.5 July-12-2003 Written by Donald Becker
http://www.scyld.com/network/via-rhine.html
eth0: VIA VT6102 Rhine-II at 0xe2001000, 00:04:61:46:e7:38, IRQ 23.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 41e1.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1
ide0: BM-DMA at 0xdc00-0xdc07, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xdc08-0xdc0f, BIOS settings: hdc:DMA, hdd:pio
hda: ST3120023A, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: TOSHIBA DVD-ROM SD-R5112, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 234441648 sectors (120034 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
/dev/ide/host0/bus0/target0/lun0: p1 p2
hdc: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
ehci_hcd 0000:00:10.3: EHCI Host Controller
ehci_hcd 0000:00:10.3: irq 21, pci mem e080f000
ehci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:10.3: USB 2.0 enabled, EHCI 1.00, driver 2003-Jun-13
hub 1-0:0: USB hub found
hub 1-0:0: 6 ports detected
drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1
uhci-hcd 0000:00:10.0: UHCI Host Controller
uhci-hcd 0000:00:10.0: irq 21, io base 0000d000
uhci-hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
hub 2-0:0: USB hub found
hub 2-0:0: 2 ports detected
uhci-hcd 0000:00:10.1: UHCI Host Controller
uhci-hcd 0000:00:10.1: irq 21, io base 0000d400
uhci-hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
hub 3-0:0: USB hub found
hub 3-0:0: 2 ports detected
uhci-hcd 0000:00:10.2: UHCI Host Controller
uhci-hcd 0000:00:10.2: irq 21, io base 0000d800
uhci-hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
hub 4-0:0: USB hub found
hub 4-0:0: 2 ports detected
drivers/usb/core/usb.c: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
drivers/usb/core/usb.c: registered new driver usb-storage
USB Mass Storage support registered.
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
input: PC Speaker
input: PS2++ Logitech Wheel Mouse on isa0060/serio1
serio: i8042 AUX port at 0x60,0x64 irq 12
input: AT Set 2 keyboard on isa0060/serio0
serio: i8042 KBD port at 0x60,0x64 irq 1
Advanced Linux Sound Architecture Driver Version 0.9.6 (Wed Aug 20 20:27:13 2003 UTC).
request_module: failed /sbin/modprobe -- snd-card-0. error = -16
PCI: Setting latency timer of device 0000:00:11.5 to 64
hub 1-0:0: debounce: port 3: delay 100ms stable 4 status 0x501
hub 3-0:0: debounce: port 1: delay 100ms stable 4 status 0x101
hub 3-0:0: new USB device on port 1, assigned address 2
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0317
ALSA device list:
#0: VIA 8235 at 0xe000, irq 22
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
BIOS EDD facility v0.09 2003-Jan-22, 1 devices found
PM: Reading swsusp image.
PM: Resume from disk failed.
ACPI: (supports S0 S3 S4 S5)
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 352k freed
EXT3 FS on hda1, internal journal
nvidia: module license 'NVIDIA' taints kernel.
0: nvidia: loading NVIDIA Linux x86 nvidia.o Kernel Module 1.0-4496 Wed Jul 16 19:03:09 PDT 2003
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
eth0: Setting full-duplex based on MII #1 link partner capability of 41e1.

2003-09-13 15:56:47

by Pavel Machek

[permalink] [raw]
Subject: Re: [ACPI] Re: [2.6.0-test5-mm1] Suspend to RAM problems

Hi!

> > > > 2) ACPI
> > > > Thanks to Andrew de Quincey I can boot with ACPI without
> > > > problems and I can read out my temp and so on, but when I do
> > > > echo -n "mem" >/sys/power/state
> > > > the machine goes into sleep (STR) but crashes after waking up again.
> > >
> > > What exactly does it do on wakeup?
>
> Mine crashes before suspending. It says something like:
> Stoppings tasks
> ===========================================================
> critical region / count pages [XXXXXXXXXXXX]

This looks like swsusp, not S3.
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]