* RE: DSDT errors
@ 2005-02-16 1:36 Moore, Robert
[not found] ` <971FCB6690CD0E4898387DBF7552B90E96D4F8-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Moore, Robert @ 2005-02-16 1:36 UTC (permalink / raw)
To: Moore, Robert, Mark Eaton,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
But actually, we don't look at the return value anyway (yet)
Status = AcpiEvaluateObject (NULL, METHOD_NAME__WAK, &ArgList, NULL);
if (ACPI_FAILURE (Status) && Status != AE_NOT_FOUND)
{
ACPI_REPORT_ERROR (("Method _WAK failed, %s\n", AcpiFormatException (Status)));
}
/* TBD: _WAK "sometimes" returns stuff - do we want to look at it? */
> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Moore, Robert
> Sent: Tuesday, February 15, 2005 5:11 PM
> To: Mark Eaton; acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: RE: [ACPI] DSDT errors
>
> 7.3.7 \_WAK (System Wake)
> After the system wakes from a sleeping state, it will invoke the \_WAK
> method and pass the sleeping state value that has ended. This operation
> occurs asynchronously with other driver notifications in the system and is
> not the first action to be taken when the system wakes. The AML code for
> this control method issues device, thermal, and other notifications to
> ensure that OSPM checks the state of devices, thermal zones, and so on,
> that could not be maintained during the system sleeping state. For
> example, if the system cannot determine whether a device was inserted or
> removed from a bus while in the S2 state, the _WAK method would issue a
> devicecheck type of notification for that bus when issued with the
> sleeping state value of 2 (for more information about types of
> notifications, see section 5.6.3, “Device Object Notifications”). Notice
> that a device check notification from the \_SB node will cause OSPM to re-
> enumerate the entire tree .
> Hardware is not obligated to track the state needed to supply the
> resulting status; however, this method must return status concerning the
> last sleep operation initiated by OSPM. The result codes can be used to
> provide additional information to OSPM or user.
> Arguments:
> 0 The value of the sleeping state (1 for S1, 2 for S2, and so on).
> Result Code (2 DWORD package):
> Status Bit field of defined conditions that occurred during sleep.
> 0x00000000 Wake was signaled and was successful
> 0x00000001 Wake was signaled but failed due to lack of power.
> 0x00000002 Wake was signaled but failed due to thermal condition.
>
> Other Reserved
> PSS If non-zero, the effective S-state the power supply really entered.
>
> This value is used to detect when the targeted S-state was not entered
> because of too much current being drawn from the power supply. For
> example, this might occur when some active device’s current consumption
> pushes the system’s power requirements over the low power supply mark,
> thus preventing the lower power mode from being entered as desired.
>
> > -----Original Message-----
> > From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> > admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Mark Eaton
> > Sent: Tuesday, February 15, 2005 5:01 PM
> > To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > Subject: [ACPI] DSDT errors
> >
> > I am looking at my DSDT for an acer ferrari 300 laptop. It hangs on
> resume
> > and
> > I believe the problem (at least partially) is the _WAK function which
> > doesn't
> > return a value. The question is what should it return ?
> >
> > The method is as below.
> >
> > Method (\_WAK, 1, NotSerialized)
> > {
> > Store (0x01, \_SB.PCI0.ISA.LIDP)
> > If (LEqual (Arg0, 0x03))
> > {
> > \_SB.Z001 (0x91)
> > Acquire (\_SB.PSMX, 0xFFFF)
> > Store (0x80, \_SB.BCMD)
> > Store (0x07, \_SB.DID)
> > Store (Zero, \_SB.SMIC)
> > Release (\_SB.PSMX)
> > }
> >
> > If (LEqual (Arg0, 0x04))
> > {
> > Acquire (\_SB.PSMX, 0xFFFF)
> > Store (0x80, \_SB.BCMD)
> > Store (0x04, \_SB.DID)
> > Store (Zero, \_SB.SMIC)
> > Release (\_SB.PSMX)
> > Store (\_SB.INF, Local0)
> > If (LEqual (Local0, 0x07)) {}
> > Else
> > {
> > Store (Local0, Local1)
> > Store (Local0, Local2)
> > Store (Local0, \_SB.PCI0.AGP.VGA.DABL)
> > And (Local1, 0x01, \_SB.PCI0.AGP.VGA.CRTA)
> > And (Local2, 0x02, \_SB.PCI0.AGP.VGA.LCDA)
> > }
> > }
> >
> > Store (0xBA, \_SB.PCI0.ISA.Z002)
> > \_SB.Z001 (0x97)
> > }
> >
> >
> > thanks.
> > If this has nothing to do with my problem I can supply the entire dsdt
> for
> > someone to have a look at.
> >
> > --
> > Mark Eaton
> > meaton-tw97OP0PknkAvxtiuMwx3w@public.gmane.org
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > Acpi-devel mailing list
> > Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > https://lists.sourceforge.net/lists/listinfo/acpi-devel
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=ick
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
^ permalink raw reply [flat|nested] 4+ messages in thread* RE: DSDT errors
@ 2005-02-16 1:10 Moore, Robert
0 siblings, 0 replies; 4+ messages in thread
From: Moore, Robert @ 2005-02-16 1:10 UTC (permalink / raw)
To: Mark Eaton, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
7.3.7 \_WAK (System Wake)
After the system wakes from a sleeping state, it will invoke the \_WAK method and pass the sleeping state value that has ended. This operation occurs asynchronously with other driver notifications in the system and is not the first action to be taken when the system wakes. The AML code for this control method issues device, thermal, and other notifications to ensure that OSPM checks the state of devices, thermal zones, and so on, that could not be maintained during the system sleeping state. For example, if the system cannot determine whether a device was inserted or removed from a bus while in the S2 state, the _WAK method would issue a devicecheck type of notification for that bus when issued with the sleeping state value of 2 (for more information about types of notifications, see section 5.6.3, “Device Object Notifications”). Notice that a device check notification from the \_SB node will cause OSPM to re-enumerate the entire tree .
Hardware is not obligated to track the state needed to supply the resulting status; however, this method must return status concerning the last sleep operation initiated by OSPM. The result codes can be used to provide additional information to OSPM or user.
Arguments:
0 The value of the sleeping state (1 for S1, 2 for S2, and so on).
Result Code (2 DWORD package):
Status Bit field of defined conditions that occurred during sleep.
0x00000000 Wake was signaled and was successful
0x00000001 Wake was signaled but failed due to lack of power.
0x00000002 Wake was signaled but failed due to thermal condition.
Other Reserved
PSS If non-zero, the effective S-state the power supply really entered.
This value is used to detect when the targeted S-state was not entered because of too much current being drawn from the power supply. For example, this might occur when some active device’s current consumption pushes the system’s power requirements over the low power supply mark, thus preventing the lower power mode from being entered as desired.
> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Mark Eaton
> Sent: Tuesday, February 15, 2005 5:01 PM
> To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: [ACPI] DSDT errors
>
> I am looking at my DSDT for an acer ferrari 300 laptop. It hangs on resume
> and
> I believe the problem (at least partially) is the _WAK function which
> doesn't
> return a value. The question is what should it return ?
>
> The method is as below.
>
> Method (\_WAK, 1, NotSerialized)
> {
> Store (0x01, \_SB.PCI0.ISA.LIDP)
> If (LEqual (Arg0, 0x03))
> {
> \_SB.Z001 (0x91)
> Acquire (\_SB.PSMX, 0xFFFF)
> Store (0x80, \_SB.BCMD)
> Store (0x07, \_SB.DID)
> Store (Zero, \_SB.SMIC)
> Release (\_SB.PSMX)
> }
>
> If (LEqual (Arg0, 0x04))
> {
> Acquire (\_SB.PSMX, 0xFFFF)
> Store (0x80, \_SB.BCMD)
> Store (0x04, \_SB.DID)
> Store (Zero, \_SB.SMIC)
> Release (\_SB.PSMX)
> Store (\_SB.INF, Local0)
> If (LEqual (Local0, 0x07)) {}
> Else
> {
> Store (Local0, Local1)
> Store (Local0, Local2)
> Store (Local0, \_SB.PCI0.AGP.VGA.DABL)
> And (Local1, 0x01, \_SB.PCI0.AGP.VGA.CRTA)
> And (Local2, 0x02, \_SB.PCI0.AGP.VGA.LCDA)
> }
> }
>
> Store (0xBA, \_SB.PCI0.ISA.Z002)
> \_SB.Z001 (0x97)
> }
>
>
> thanks.
> If this has nothing to do with my problem I can supply the entire dsdt for
> someone to have a look at.
>
> --
> Mark Eaton
> meaton-tw97OP0PknkAvxtiuMwx3w@public.gmane.org
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
^ permalink raw reply [flat|nested] 4+ messages in thread* Call for help: list of machines with working S3
@ 2005-02-14 21:11 Pavel Machek
2005-02-15 23:35 ` I can't get iasl to compile Mark Eaton
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2005-02-14 21:11 UTC (permalink / raw)
To: ACPI mailing list, kernel list, seife-l3A5Bk7waGM,
rjw-KKrjLPT3xs0
Hi!
Stefan provided me initial list of machines where S3 works (including
video). If you have machine that is not on the list, please send me a
diff. If you have eMachines... I'd like you to try playing with
vbetool (it worked for me), and if it works for you supplying right
model numbers.
Pavel
Video issues with S3 resume
~~~~~~~~~~~~~~~~~~~~~~~~~~~
2003-2005, Pavel Machek
During S3 resume, hardware needs to be reinitialized. For most
devices, this is easy, and kernel driver knows how to do
it. Unfortunately there's one exception: video card. Those are usually
initialized by BIOS, and kernel does not have enough information to
boot video card. (Kernel usually does not even contain video card
driver -- vesafb and vgacon are widely used).
This is not problem for swsusp, because during swsusp resume, BIOS is
run normally so video card is normally initialized. S3 has absolutely
no change to work with SMP/HT. Be sure it to turn it off before
testing (swsusp should work ok, OTOH).
There are few types of systems where video works after S3 resume:
(1) systems where video state is preserved over S3.
(2) systems where it is possible to call video bios during S3
resume. Unfortunately, it is not correct to call video BIOS at that
point, but it happens to work on some machines. Use
acpi_sleep=s3_bios.
(3) systems that initialize video card into vga text mode and where BIOS
works well enough to be able to set video mode. Use
acpi_sleep=s3_mode on these.
(4) on some systems s3_bios kicks video into text mode, and
acpi_sleep=s3_bios,s3_mode is needed.
(5) radeon systems, where X can soft-boot your video card. You'll need
patched X, and plain text console (no vesafb or radeonfb), see
http://www.doesi.gmxhome.de/linux/tm800s3/s3.html.
(6) other radeon systems, where vbetool is enough to bring system back
to life. Do vbetool vbestate save > /tmp/delme; echo 3 > /proc/acpi/sleep;
vbetool post; vbetool vbestate restore < /tmp/delme; setfont
<whatever>, and your video should work.
Now, if you pass acpi_sleep=something, and it does not work with your
bios, you'll get hard crash during resume. Be carefull. Also it is
safest to do your experiments with plain old VGA console. vesafb and
radeonfb (etc) drivers have tendency to crash the machine during resume.
You may have system where none of above works. At that point you
either invent another ugly hack that works, or write proper driver for
your video card (good luck getting docs :-(). Maybe suspending from X
(proper X, knowing your hardware, not XF68_FBcon) might have better
chance of working.
Table of known working systems:
Model hack (or "how to do it")
------------------------------------------------------------------------------
IBM TP R32 / Type 2658-MMG none (1)
Athlon HP Omnibook XE3 none (1)
Compaq Armada E500 - P3-700 none (1) (S1 also works OK)
IBM t41p none (1)
Athlon64 desktop prototype s3_bios (2)
HP NC6000 s3_bios (2)
Toshiba Satellite 4080XCDT s3_mode (3)
Toshiba Satellite 4030CDT s3_mode (3)
Dell D600, ATI RV250 vga=normal (**)
Asus L2400D s3_mode (3)(***) (S1 also works OK)
Toshiba Satellite P10-554 s3_bios,s3_mode (4)(****)
Acer TM 800 vga=normal, X patches, see webpage (5)
Athlon64 Arima W730a vbestate needed (6)
eMachines athlon64 machines vbestate needed (6) (someone please get me model #s)
(**) Text console is "strange" after resume. Backlight is switched on again
by the X server. X server is:
| X Window System Version 6.8.1.904 (6.8.2 RC 4)
| Release Date: 2 February 2005
| X Protocol Version 11, Revision 0, Release 6.8.1.904
| Build Operating System: SuSE Linux [ELF] SuSE
as present in SUSE 9.3preview3.
(***) To be tested with a newer kernel.
(****) Not with SMP kernel, UP only.
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 4+ messages in thread* I can't get iasl to compile
@ 2005-02-15 23:35 ` Mark Eaton
2005-02-16 0:00 ` Matthew Garrett
0 siblings, 1 reply; 4+ messages in thread
From: Mark Eaton @ 2005-02-15 23:35 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I have been trying to get suspend/resume to work on my laptop but it hangs as
soon as resume, so I was going to look at the dsdt (being an acer it is
probably broken) but I cant get iasl to compile.
I have downloaded the latest iasl from intel's (acpica-unix-20041203) site but
get the following errors when trying to compile it.
bison -v -d -y -pAslCompiler aslcompiler.y
conflicts: 57 shift/reduce, 50 reduce/reduce
aslcompiler.y:913.7-81: warning: rule never reduced because of conflicts:
TermArg: Type2IntegerOpcode
aslcompiler.y:914.7-81: warning: rule never reduced because of conflicts:
TermArg: Type2StringOpcode
aslcompiler.y:915.7-81: warning: rule never reduced because of conflicts:
TermArg: Type2BufferOpcode
aslcompiler.y:916.7-81: warning: rule never reduced because of conflicts:
TermArg: Type2BufferOrStringOpcode
aslcompiler.y:958.7-82: warning: rule never reduced because of conflicts:
OptionalParameterTypePackage: ','
aslcompiler.y:981.7-82: warning: rule never reduced because of conflicts:
OptionalParameterTypesPackage: ','
aslcompiler.y:1572.7-38: warning: rule never reduced because of conflicts:
CaseTermList: CaseTerm
aslcompiler.y:1581.7-38: warning: rule never reduced because of conflicts:
DefaultTermList: CaseTerm
aslcompiler.y:3062.37-48: warning: rule never reduced because of conflicts:
OptionalResourceType: /* empty */
cp y.tab.c aslcompilerparse.c
cp y.tab.h aslcompiler.y.h
cc -Wall -O2 -Wstrict-prototypes -D_LINUX -D_ACPI_ASL_COMPILER -I../include
-c -o aslcompilerparse.o aslcompilerparse.c
flex -i -PAslCompiler -oaslcompilerlex.c aslcompiler.l
cc -Wall -O2 -Wstrict-prototypes -D_LINUX -D_ACPI_ASL_COMPILER -I../include
-c -o aslcompilerlex.o aslcompilerlex.c
aslcompiler.l: In function `comment':
aslcompiler.l:846: error: `yytext_ptr' undeclared (first use in this function)
aslcompiler.l:846: error: (Each undeclared identifier is reported only once
aslcompiler.l:846: error: for each function it appears in.)
make: *** [aslcompilerlex.o] Error 1
This is on a debian sid linux system
gcc 3.3.5
bison 1.875d
flex 2.5.31
--
Mark Eaton
meaton-tw97OP0PknkAvxtiuMwx3w@public.gmane.org
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I can't get iasl to compile
@ 2005-02-16 0:00 ` Matthew Garrett
2005-02-16 1:00 ` DSDT errors Mark Eaton
0 siblings, 1 reply; 4+ messages in thread
From: Matthew Garrett @ 2005-02-16 0:00 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Wed, 2005-02-16 at 09:35 +1000, Mark Eaton wrote:
> This is on a debian sid linux system
> gcc 3.3.5
> bison 1.875d
> flex 2.5.31
You need the flex-old package. Newer versions of flex are incompatible
with some older code.
--
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 4+ messages in thread
* DSDT errors
2005-02-16 0:00 ` Matthew Garrett
@ 2005-02-16 1:00 ` Mark Eaton
0 siblings, 0 replies; 4+ messages in thread
From: Mark Eaton @ 2005-02-16 1:00 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I am looking at my DSDT for an acer ferrari 300 laptop. It hangs on resume and
I believe the problem (at least partially) is the _WAK function which doesn't
return a value. The question is what should it return ?
The method is as below.
Method (\_WAK, 1, NotSerialized)
{
Store (0x01, \_SB.PCI0.ISA.LIDP)
If (LEqual (Arg0, 0x03))
{
\_SB.Z001 (0x91)
Acquire (\_SB.PSMX, 0xFFFF)
Store (0x80, \_SB.BCMD)
Store (0x07, \_SB.DID)
Store (Zero, \_SB.SMIC)
Release (\_SB.PSMX)
}
If (LEqual (Arg0, 0x04))
{
Acquire (\_SB.PSMX, 0xFFFF)
Store (0x80, \_SB.BCMD)
Store (0x04, \_SB.DID)
Store (Zero, \_SB.SMIC)
Release (\_SB.PSMX)
Store (\_SB.INF, Local0)
If (LEqual (Local0, 0x07)) {}
Else
{
Store (Local0, Local1)
Store (Local0, Local2)
Store (Local0, \_SB.PCI0.AGP.VGA.DABL)
And (Local1, 0x01, \_SB.PCI0.AGP.VGA.CRTA)
And (Local2, 0x02, \_SB.PCI0.AGP.VGA.LCDA)
}
}
Store (0xBA, \_SB.PCI0.ISA.Z002)
\_SB.Z001 (0x97)
}
thanks.
If this has nothing to do with my problem I can supply the entire dsdt for
someone to have a look at.
--
Mark Eaton
meaton-tw97OP0PknkAvxtiuMwx3w@public.gmane.org
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-02-16 1:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-16 1:36 DSDT errors Moore, Robert
[not found] ` <971FCB6690CD0E4898387DBF7552B90E96D4F8-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-02-16 1:45 ` Mark Eaton
-- strict thread matches above, loose matches on Subject: below --
2005-02-16 1:10 Moore, Robert
2005-02-14 21:11 Call for help: list of machines with working S3 Pavel Machek
2005-02-15 23:35 ` I can't get iasl to compile Mark Eaton
2005-02-16 0:00 ` Matthew Garrett
2005-02-16 1:00 ` DSDT errors Mark Eaton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox