* the role of the dstd
@ 2006-08-24 19:28 Joeri Hendrickx
2006-08-24 20:13 ` Sanjoy Mahajan
0 siblings, 1 reply; 8+ messages in thread
From: Joeri Hendrickx @ 2006-08-24 19:28 UTC (permalink / raw)
To: linux-acpi
Hi
Since my asus laptop's acpi won't work decently in Linux (lid close
won't generate event and such) I've been reading up and I've come to the
conclusion that the problem must be a messed up DSTD.
I do have some questions about it, though.
For one, if the DSTD is part of the BIOS, how come windows does work,
while it must rely on the same data (I haven't installed any drivers for
power mgt yet lid close does work, and so do the volume butons) If
windows knows something we don't, can't we get the correct data from there?
Kind regards,
J. Hendrickx, hoping to see my suspend to ram working someday
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: the role of the dstd
2006-08-24 19:28 the role of the dstd Joeri Hendrickx
@ 2006-08-24 20:13 ` Sanjoy Mahajan
2006-09-13 17:06 ` Ruslán Ledesma Garza
0 siblings, 1 reply; 8+ messages in thread
From: Sanjoy Mahajan @ 2006-08-24 20:13 UTC (permalink / raw)
To: Joeri Hendrickx; +Cc: linux-acpi
> For one, if the DSTD is part of the BIOS, how come windows does
> work, while it must rely on the same data
I'm not an ACPI expert but here is my understanding. Hopefully it's
close enough to reality that the experts need to make only minor
corrections and can keep hacking.
Often, or rather always, the manufacturer tests the DSDT only with
Windows. If Windows makes assumptions about how the DSDT code should
be interpreted that are different from what Linux assumes, even if
Linux's assumptions are compatible with the ACPI spec, then the DSDT
might fail when run with Linux.
For example, Windows serializes (runs in one thread) procedures
automatically, even if a procedure is labelled NotSerialized. But
Linux ACPI, unless you pass a boot option to tell it to act like
Windows, will not serialize those procedures, and each one can run in
its own thread.
Therefore, race conditions from a sloppy DSDT, which might be hidden
in Windows, are often exposed in Linux. And so S3 suspend might hang
because of one of those races or locking problems. My old Thinkpad
600X improved its S3 suspend behavior somewhat when booting with the
"Act like Windows" option.
ACPI development on Linux is often: "My laptop doesn't suspend in
Linux" (for a modern laptop it's almost certain that it suspends in
Windows) and then people finding what bug needs to be introduced into
the Linux DSDT interpreter so that Linux can act just like Windows.
-Sanjoy
`Never underestimate the evil of which men of power are capable.'
--Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: the role of the dstd
2006-08-24 20:13 ` Sanjoy Mahajan
@ 2006-09-13 17:06 ` Ruslán Ledesma Garza
0 siblings, 0 replies; 8+ messages in thread
From: Ruslán Ledesma Garza @ 2006-09-13 17:06 UTC (permalink / raw)
To: Sanjoy Mahajan, linux-acpi
Is this option "act like windows" really available? Is it a boot parameter?
Thanks in advance.
On 8/24/06, Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> wrote:
> > For one, if the DSTD is part of the BIOS, how come windows does
> > work, while it must rely on the same data
>
> I'm not an ACPI expert but here is my understanding. Hopefully it's
> close enough to reality that the experts need to make only minor
> corrections and can keep hacking.
>
> Often, or rather always, the manufacturer tests the DSDT only with
> Windows. If Windows makes assumptions about how the DSDT code should
> be interpreted that are different from what Linux assumes, even if
> Linux's assumptions are compatible with the ACPI spec, then the DSDT
> might fail when run with Linux.
>
> For example, Windows serializes (runs in one thread) procedures
> automatically, even if a procedure is labelled NotSerialized. But
> Linux ACPI, unless you pass a boot option to tell it to act like
> Windows, will not serialize those procedures, and each one can run in
> its own thread.
>
> Therefore, race conditions from a sloppy DSDT, which might be hidden
> in Windows, are often exposed in Linux. And so S3 suspend might hang
> because of one of those races or locking problems. My old Thinkpad
> 600X improved its S3 suspend behavior somewhat when booting with the
> "Act like Windows" option.
>
> ACPI development on Linux is often: "My laptop doesn't suspend in
> Linux" (for a modern laptop it's almost certain that it suspends in
> Windows) and then people finding what bug needs to be introduced into
> the Linux DSDT interpreter so that Linux can act just like Windows.
>
> -Sanjoy
>
> `Never underestimate the evil of which men of power are capable.'
> --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <9d90148c0609131004r5217843fiebcaf6f537f617e8@mail.gmail.com>]
* RE: the role of the dstd
@ 2006-09-13 18:41 Moore, Robert
2006-09-13 19:04 ` Sanjoy Mahajan
0 siblings, 1 reply; 8+ messages in thread
From: Moore, Robert @ 2006-09-13 18:41 UTC (permalink / raw)
To: Sanjoy Mahajan, Ruslán Ledesma Garza; +Cc: linux-acpi
> For example, Windows serializes (runs in one thread) procedures
> automatically, even if a procedure is labelled NotSerialized. But
> Linux ACPI, unless you pass a boot option to tell it to act like
> Windows, will not serialize those procedures, and each one can run in
> its own thread.
Actually, we think that Windows does NOT serialize everything within the AML interpreter.
> -----Original Message-----
> From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi-
> owner@vger.kernel.org] On Behalf Of Sanjoy Mahajan
> Sent: Wednesday, September 13, 2006 11:11 AM
> To: Ruslán Ledesma Garza
> Cc: linux-acpi@vger.kernel.org
> Subject: Re: the role of the dstd
>
> > Is this option "act like windows" really available? Is it a boot
> > parameter?
>
> It is. Add these options to your boot parameters:
>
> acpi_os_name="Microsoft Windows" acpi_serialize
>
> -Sanjoy
>
> `Never underestimate the evil of which men of power are capable.'
> --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: the role of the dstd
@ 2006-09-13 19:09 Moore, Robert
2006-09-14 1:45 ` Ruslán Ledesma Garza
0 siblings, 1 reply; 8+ messages in thread
From: Moore, Robert @ 2006-09-13 19:09 UTC (permalink / raw)
To: Sanjoy Mahajan; +Cc: Ruslán Ledesma Garza, linux-acpi
We have a "slack mode" for the interpreter which enables the "MS compatibility" features. For Linux, this mode is enabled by default.
Acpi_serialize is in fact used to serialize all methods, for those systems that have trouble with multiple threads.
We do see systems that apparently do not fail on Windows, but fail on ACPICA based systems (fail with multithread issues.) We are still investigating these, perhaps timing related.
Bob
> -----Original Message-----
> From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi-
> owner@vger.kernel.org] On Behalf Of Sanjoy Mahajan
> Sent: Wednesday, September 13, 2006 12:05 PM
> To: Moore, Robert
> Cc: Ruslán Ledesma Garza; linux-acpi@vger.kernel.org
> Subject: Re: the role of the dstd
>
> Interesting; thanks for the correction. So acpi_serialize isn't
> necessarily the right option to use?
>
> -Sanjoy
>
> `Never underestimate the evil of which men of power are capable.'
> --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: the role of the dstd
2006-09-13 19:09 Moore, Robert
@ 2006-09-14 1:45 ` Ruslán Ledesma Garza
0 siblings, 0 replies; 8+ messages in thread
From: Ruslán Ledesma Garza @ 2006-09-14 1:45 UTC (permalink / raw)
To: Moore, Robert; +Cc: Sanjoy Mahajan, linux-acpi
I've tested this boot option but seems to have no effect on my dell
inspiron 1150 bios version A07. Someone told me to file a bug on
bugzilla, so I expect to do it soon.
On 9/13/06, Moore, Robert <robert.moore@intel.com> wrote:
> We have a "slack mode" for the interpreter which enables the "MS compatibility" features. For Linux, this mode is enabled by default.
>
> Acpi_serialize is in fact used to serialize all methods, for those systems that have trouble with multiple threads.
>
> We do see systems that apparently do not fail on Windows, but fail on ACPICA based systems (fail with multithread issues.) We are still investigating these, perhaps timing related.
>
> Bob
>
>
> > -----Original Message-----
> > From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi-
> > owner@vger.kernel.org] On Behalf Of Sanjoy Mahajan
> > Sent: Wednesday, September 13, 2006 12:05 PM
> > To: Moore, Robert
> > Cc: Ruslán Ledesma Garza; linux-acpi@vger.kernel.org
> > Subject: Re: the role of the dstd
> >
> > Interesting; thanks for the correction. So acpi_serialize isn't
> > necessarily the right option to use?
> >
> > -Sanjoy
> >
> > `Never underestimate the evil of which men of power are capable.'
> > --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-09-14 1:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24 19:28 the role of the dstd Joeri Hendrickx
2006-08-24 20:13 ` Sanjoy Mahajan
2006-09-13 17:06 ` Ruslán Ledesma Garza
[not found] <9d90148c0609131004r5217843fiebcaf6f537f617e8@mail.gmail.com>
2006-09-13 18:10 ` Sanjoy Mahajan
-- strict thread matches above, loose matches on Subject: below --
2006-09-13 18:41 Moore, Robert
2006-09-13 19:04 ` Sanjoy Mahajan
2006-09-13 19:09 Moore, Robert
2006-09-14 1:45 ` Ruslán Ledesma Garza
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox