public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Kohjinsha sleep problems
@ 2008-01-01 23:19 Pavel Machek
  2008-01-04 21:33 ` Alessandro Guido
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2008-01-01 23:19 UTC (permalink / raw)
  To: ACPI mailing list, kernel list

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
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: Kohjinsha sleep problems
  2008-01-01 23:19 Kohjinsha sleep problems Pavel Machek
@ 2008-01-04 21:33 ` Alessandro Guido
  2008-01-05 21:35   ` Pavel Machek
  0 siblings, 1 reply; 4+ messages in thread
From: Alessandro Guido @ 2008-01-04 21:33 UTC (permalink / raw)
  To: Pavel Machek; +Cc: ACPI mailing list, kernel list

Il Wednesday 02 January 2008 00:19:55 Pavel Machek ha scritto:
> 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  FACS@...b.......
  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.

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

* Re: Kohjinsha sleep problems
  2008-01-04 21:33 ` Alessandro Guido
@ 2008-01-05 21:35   ` Pavel Machek
  2008-01-05 21:44     ` Pavel Machek
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2008-01-05 21:35 UTC (permalink / raw)
  To: Alessandro Guido; +Cc: ACPI mailing list, kernel list

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  FACS@...b.......
>   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, 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

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

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

* Re: Kohjinsha sleep problems
  2008-01-05 21:35   ` Pavel Machek
@ 2008-01-05 21:44     ` Pavel Machek
  0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2008-01-05 21:44 UTC (permalink / raw)
  To: Alessandro Guido; +Cc: ACPI mailing list, kernel list

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
            signature   length      hwsignature waking_vector
> >   0000: 46 41 43 53 40 00 00 00 62 12 00 00 00 00 00 00  FACS@...b.......
> >   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
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

end of thread, other threads:[~2008-01-05 21:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-01 23:19 Kohjinsha sleep problems Pavel Machek
2008-01-04 21:33 ` Alessandro Guido
2008-01-05 21:35   ` Pavel Machek
2008-01-05 21:44     ` Pavel Machek

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