public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: _PTS call hangs system
@ 2004-09-16 18:05 Starikovskiy, Alexey Y
       [not found] ` <6EDC9204B3704C4C8522539D5C1185E52443B0-g/v8ENnfjb4gGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Starikovskiy, Alexey Y @ 2004-09-16 18:05 UTC (permalink / raw)
  To: Andre Eisenbach, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f



>Am Donnerstag 16 September 2004 04:23 schrieb Starikovskiy, Alexey Y:
>> Have you tried to disable the call to _SST? It is at the end of same
>> function acpi_enter_sleep_state_prep(). Can it be that kernel hangs
>> _after_ the call to _PTS?
>
>I hadn't tried it before, so I just did. Disabling _SST and leaving in
_PTS
>still hangs the system. In the DSDT, _SST is empty (except some Debug
>messages) also.
Do you have  _GTS? Can I ask you to try to comment out call to it (with
_PTS not commented out)?

>Does anybody know how I can get the DSDT Debug messages onto the
console
>somehow?
No :( Actually it may not work here, because you are very near to
switching off many devices and console may not be available at this
point.

Thanks,
	Alex.


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: _PTS call hangs system
@ 2004-09-20  8:05 Starikovskiy, Alexey Y
       [not found] ` <6EDC9204B3704C4C8522539D5C1185E52449B7-g/v8ENnfjb4gGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Starikovskiy, Alexey Y @ 2004-09-20  8:05 UTC (permalink / raw)
  To: Andre Eisenbach; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Could you post your whole DSDT and dmesg?
BTW, if you enable debug in ACPI and do "Store ("BLA-BLA-BLA", Debug)"
in any method of DSDT, ACPI will print it to console (even from _PTS and
_GTS).

Thanks,
	Alex.

>-----Original Message-----
>From: Andre Eisenbach [mailto:andre-+hZUvIEKc2q1Z/+hSey0Gg@public.gmane.org]
>Sent: Saturday, September 18, 2004 1:59 AM
>To: Starikovskiy, Alexey Y
>Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: Re: [ACPI] _PTS call hangs system
>
>Am Freitag 17 September 2004 04:08 schrieb Starikovskiy, Alexey Y:
>> >I may try to go throught the _PTS procedure next to figure out which
>> > call specifically hangs - if that is of any use?
>>
>> I think Sleep(2000) is a main suspect here. That architecture are you
>> using? Is it 64 bit one?
>
>It's a AMD XP (32-bit).
>
>I've tried it many times today and it crashes every time EXCEPT when I
>comment
>out ALL lines in that S5 branch. As in, this works:
>
>        If (LEqual (Arg0, 0x05))
>        {
>/*
>            Store (0x00, \_SB.PCI0.ISA.EC0.WORE)
>            If (\_SB.PCI0.ISA.WOLE)
>            {
>                Store (0x01, \_SB.PCI0.ISA.EC0.WOLE)
>            }
>            Else
>            {
>                Store (0x00, \_SB.PCI0.ISA.EC0.WOLE)
>            }
>
>            \_SB.PCI0.ISA.HPSS (0x02, 0x00)
>            Sleep (0x07D0)
>*/
>        }
>
>Every other combination (only the Sleep() enabled, only one other line
>enabled, whatever) causes the system to hang on shutdown. So only not
>calling
>that procedure or not doing anything inside seem to help at this point.
>
>Seems very odd.
>
>Cheers,
>    Andre


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <6EDC9204B3704C4C8522539D5C1185E524462D@mssmsx403.ccr.corp.intel.com>]
* re:_PTS call hangs system
@ 2004-09-16 11:23 Starikovskiy, Alexey Y
       [not found] ` <6EDC9204B3704C4C8522539D5C1185E5244239-g/v8ENnfjb4gGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Starikovskiy, Alexey Y @ 2004-09-16 11:23 UTC (permalink / raw)
  To: andre-+hZUvIEKc2q1Z/+hSey0Gg; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi Andre,

Have you tried to disable the call to _SST? It is at the end of same
function acpi_enter_sleep_state_prep(). Can it be that kernel hangs
_after_ the call to _PTS? 

PTS stands for "Prepare-to-Sleep", so it can disable some hardware
(com-port or video). May be this is the reason, why you cannot get any
debug prints.

Regards,
	Alex.  


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

^ permalink raw reply	[flat|nested] 8+ messages in thread
* _PTS call hangs system
@ 2004-09-15  3:40 Andre Eisenbach
  0 siblings, 0 replies; 8+ messages in thread
From: Andre Eisenbach @ 2004-09-15  3:40 UTC (permalink / raw)
  To: ACPI Developers

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

Hey guys!

I've done some more debugging to figure out why my notebook won't shut down 
anymore. To recap, it works up to 2.8.6.1-mm3, but no kernel thereafter.

The following call in /drivers/acpi/hardware/hwsleep.c hangs:
 status = acpi_evaluate_object (NULL, METHOD_NAME__PTS, &arg_list, NULL);

This is in acpi_enter_sleep_state_prep(). 
When I comment out that line, it continues on just fine and shuts off.

I'm very surprised by this, since a diff -ru between mm3 and mm4 brings up no 
changes in drivers/acpi at all. So I don't know why it works in mm3 and not 
mm4 (and above).

Also, I've put Debug statements in my DSDT in the _PTS function, but somehow 
they are not printed to the console (or dmesg), even so I have 
CONFIG_ACPI_DEBUG=y
CONFIG_PM_DEBUG=y
in my kernel config.
Somehow I had managed to get the DSDT debug strings onto the console once 
before, but I forgot how to do it. Any tips would be appreciated.

Belo is my DSDT code, method _PTS for reference.

I've downloaded the ACPI specs and will try to read up on what PTS is supposed 
to do. Maybe I'll come up with something.

Meanwhile, if you guys have any ideas, please let me know!

Thanks so much for your help!

Regards,
   Andre

--- SNIPP ---

    Method (_PTS, 1, NotSerialized)
    {
        If (LEqual (Arg0, 0x01)) {}
        If (LEqual (Arg0, 0x03))
        {
            Store (0x01, \_SB.PCI0.ISA.EC0.WORE)
            Store (0x00, \_SB.PCI0.PMU.LLOW)
            Store (0x01, \_SB.PCI0.PMU.LHGH)
        }

        If (LEqual (Arg0, 0x04))
        {
            Store (0x01, \_SB.PCI0.ISA.EC0.S4FG)
            Store (0x00, \_SB.PCI0.ISA.EC0.WORE)
            \_SB.PCI0.ISA.HPSS (0x18, 0x00)
        }

        If (LEqual (Arg0, 0x05))
        {
            Store (0x00, \_SB.PCI0.ISA.EC0.WORE)
            If (\_SB.PCI0.ISA.WOLE)
            {
                Store (0x01, \_SB.PCI0.ISA.EC0.WOLE)
            }
            Else
            {
                Store (0x00, \_SB.PCI0.ISA.EC0.WOLE)
            }

            \_SB.PCI0.ISA.HPSS (0x02, 0x00)
            Sleep (0x07D0)
        }
    }

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-16 18:05 _PTS call hangs system Starikovskiy, Alexey Y
     [not found] ` <6EDC9204B3704C4C8522539D5C1185E52443B0-g/v8ENnfjb4gGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-09-17 10:45   ` Andre Eisenbach
  -- strict thread matches above, loose matches on Subject: below --
2004-09-20  8:05 Starikovskiy, Alexey Y
     [not found] ` <6EDC9204B3704C4C8522539D5C1185E52449B7-g/v8ENnfjb4gGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-09-20 21:30   ` Andre Eisenbach
     [not found]     ` <200409201430.06459.andre-+hZUvIEKc2q1Z/+hSey0Gg@public.gmane.org>
2004-09-24 14:03       ` Stefan Seyfried
     [not found] <6EDC9204B3704C4C8522539D5C1185E524462D@mssmsx403.ccr.corp.intel.com>
     [not found] ` <6EDC9204B3704C4C8522539D5C1185E524462D-g/v8ENnfjb4gGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-09-17 21:58   ` Andre Eisenbach
2004-09-16 11:23 Starikovskiy, Alexey Y
     [not found] ` <6EDC9204B3704C4C8522539D5C1185E5244239-g/v8ENnfjb4gGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-09-16 17:33   ` _PTS " Andre Eisenbach
2004-09-15  3:40 Andre Eisenbach

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