* 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
* 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
* 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
[not found] ` <971FCB6690CD0E4898387DBF7552B90E96D4F8-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2005-02-16 1:45 ` Mark Eaton
0 siblings, 0 replies; 4+ messages in thread
From: Mark Eaton @ 2005-02-16 1:45 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Ok so the problem probably isn't the dsdt.
Thanks.
On Wed, 16 Feb 2005 11:36 am, you wrote:
> 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? */
>
> <snip>
--
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