Skip to contentSkip to conversation

Kohjinsha sleep problems

DISCUSSION Pavel Machek 2 participants 4 messages Jan 1, 2008 – Jan 5, 2008 ACPI

lore
Share & tools
lore
#0 lore raw

Hi!

On kohjinsha, wakeup code does not seem to be reached at all. I tried looking around FACS, but it seems very empty:

(none):/data/l/kohji# acpidump -t FACS
FACS @ 0x1f7bffc0
  0000: 46 41 43 53 40 00 00 00 00 00 00 00 00 00 00 00
FACS@...........
  0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
  0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
  0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
(none):/data/l/kohji# iasl -d FACS.aml

Intel ACPI Component Architecture
AML Disassembler version 20060912 [Dec 20 2006] Copyright (C) 2000 - 2006 Intel Corporation Supports ACPI Specification Revision 3.0a

Loading Acpi table from file FACS.aml
iasl[1864]: segfault at 080e5000 eip 08062f5c esp bf9d1e50 error 4 Segmentation fault
(none):/data/l/kohji#

In dmesg I find:

DMI 2.3 present.
ACPI: RSDP 000E9010, 0014 (r0 OID_00)
ACPI: RSDT 1F7B1E40, 0030 (r1 AMD RSDT_000 31303030 AMD 31303030)
ACPI: FACP 1F7B1D40, 0084 (r1 AMD FACP_000 31303030 AMD 31303030)
ACPI: DSDT 1F7B0000, 1D30 (r1 INSYDE CS553x 1007 INTL 20030122)
ACPI: FACS 1F7BFFC0, 0040
ACPI: BOOT 1F7B1DD0, 0028 (r1 AMD BOOT_000 31303030 AMD 31303030)
ACPI: DBGP 1F7B1E00, 0034 (r1 AMD DBGP_000 31303030 AMD 31303030)
ACPI: PM-Timer IO Port: 0x9c10

What should be done to debug this? I guess FACS is strictly neccessary for sleep support?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#1 lore raw

Il Wednesday 02 January 2008 00:19:55 Pavel Machek ha scritto:

Quoted 6 lines

Hi!

On kohjinsha, wakeup code does not seem to be reached at all. I tried looking around FACS, but it seems very empty:

...

The same on my laptop:

FACS @ 0x2fefafc0

  0000: 46 41 43 53 40 00 00 00 62 12 00 00 00 00 00 00  [email protected].......
  0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

I've never been able to resume from STR with Linux (works with Windows Vista). STD works, although I have to press the power button in order to resume.

#2 lore raw

HI!

Quoted 14 lines
Quoted 4 lines

On kohjinsha, wakeup code does not seem to be reached at all. I tried looking around FACS, but it seems very empty:

...

The same on my laptop:

FACS @ 0x2fefafc0

  0000: 46 41 43 53 40 00 00 00 62 12 00 00 00 00 00 00  [email protected].......
  0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Quoted 3 lines

I've never been able to resume from STR with Linux (works with Windows Vista). STD works, although I have to press the power button in order to resume.

Hmm, it is pretty empty on thinkpad x60, too, and s2ram actually works here:

root@amd:/home/pavel# acpidump -t FACS
FACS @ 0x7f6f4000
  0000: 46 41 43 53 40 00 00 00 95 15 00 00 00 00 00 00 FACS@...........
  0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
  0020: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
  0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

...and iasl actually segfaults here, too :-(

root@amd:/data/l/kohji# iasl -d FACS.x60.aml 

Intel ACPI Component Architecture
AML Disassembler version 20061109 [May 18 2007] Copyright (C) 2000 - 2006 Intel Corporation Supports ACPI Specification Revision 3.0a

Loading Acpi table from file FACS.x60.aml Segmentation fault (core dumped) root@amd:/data/l/kohji#

...hmm, if it is buffer overflow, we have security problem in iasl. Anyway, how do I decode FACS?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#3 lore raw

Hi!

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

On kohjinsha, wakeup code does not seem to be reached at all. I tried looking around FACS, but it seems very empty:

...

The same on my laptop:

FACS @ 0x2fefafc0

signature length hwsignature waking_vector

Quoted 9 lines
Quoted 9 lines
  0000: 46 41 43 53 40 00 00 00 62 12 00 00 00 00 00 00  [email protected].......
  0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

I've never been able to resume from STR with Linux (works with Windows Vista). STD works, although I have to press the power button in order to resume.

Hmm, that is strange. firmware_waking_vector seems to be all zeros. How can that work?

struct acpi_table_facs {
char signature[4]; /* ASCII table signature */
u32 length; /* Length of structure, in bytes */
u32 hardware_signature; /* Hardware configuration signature */
u32 firmware_waking_vector; /* 32-bit physical address of
the Firmware Waking Vector */

...aha, firmware_waking_vector is to be filled by Linux, so I guess this was false alarm.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html