Re: ACPI woes again..

2002-07-05 Thread Alex Zepeda

On Fri, Jul 05, 2002 at 06:46:05PM +0900, Takanori Watanabe wrote:

> Would you review this description?

How about:

--- acpi.4.orig Thu Jun 13 02:50:06 2002
+++ acpi.4  Fri Jul  5 21:16:59 2002
@@ -258,10 +258,35 @@
 bus/children scan of the namespace.
 The ACPI CA code will still
 know about the avoided region.
+.Sh OVERRIDING YOUR BIOS BYTECODE
+ACPI interprets bytecode named AML, ACPI Machine Language, provided by BIOS
+vendor as memory image at boot time. Sometimes, the AML code contains
+incorrect bytecode that does not wreak havoc with the Microsoft implementations
+of ACPI. Such bugs can often times prevent FreeBSD from booting. In case of 
+such issues, we provide a way to override buggy AML with your own AML 
+code.
+.Pp
+In order to load your AML code, 
+you must edit 
+.Pa /boot/loader.conf
+and 
+include the follwing lines.
+.Bd -literal -offset indent
+acpi_dsdt_load="YES"
+acpi_dsdt_name="/boot/acpi_dsdt.aml" #You may change the name.
+.Ed
+.Pp
+In order to prepare your AML code, you will require
+.Xr acpidump 8 ,
+.Xr iasl 1
+in devel/acpicatools port, and some ACPI knowledge.
+
 .Sh COMPATIBILITY
 ACPI is only found/supported on Intel platforms (i386/IA32 and IA64).
 .Sh SEE ALSO
 .Xr config 8 ,
+.Xr loader.conf 5 ,
+.Xr acpidump 8 ,
 .Xr acpi 9
 .Sh AUTHORS
 .An -nosplit

- alex

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ACPI woes again..

2002-07-05 Thread Ducrot Bruno

On Fri, Jul 05, 2002 at 05:08:24AM -0700, Terry Lambert wrote:
> Takanori Watanabe wrote:
> > +.Sh OVERRIDING YOUR BIOS BYTECODE
> > +ACPI interprets bytecode named AML, ACPI Machine Language, provided by BIOS
> > +vendor as memory image at boot time. Sometimes, the AML code contains
> > +problem that is not appeared in Microsoft implement. So we provide a way
> > +to override it with your own AML code.
> > +.Pp
> 
> How does Windows deal with hardware that has this problem?
> Do they use a "rogues" list, and replace the AML, too (only
> automatically)?

Actually, their ACPI implementation suck, so that most of buggy   
AML work.  For example, they don't check correctly if a they have
the right to read/write to some Operational Region.
If an AML declare incorrecly such regions, under FBSD
(or other free OS with an ACPI-CA implementation), it can not
work since the bound checking work as expected.  

But as a consequence, those regions can't be acceded.
As an example, the status of the AC can not be reported
correctly under a Satellite 3000-601 due to this kind of bug.

-- 
Ducrot Bruno
http://www.poupinou.orgPage profaissionelle
http://toto.tu-me-saoules.com  Haume page

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ACPI woes again..

2002-07-05 Thread Takanori Watanabe

In message <[EMAIL PROTECTED]>, Alex Zepeda wrote:
>On Fri, Jul 05, 2002 at 04:01:08PM +0900, Takanori Watanabe wrote:
>
>>  We already have a way to use your own bytecode without recompiling.
>> Simply put your AML file to /boot/acpi_dsdt.aml and add 'acpi_dsdt_load="YES
>"
>> to your /boot/loader.conf (Other necessary setting exist in /boot/default/lo
>ader.conf)
>
>Cool!  I can boot now!!
>
>When will this make it into the man page?

Would you review this description?

--- acpi.4  Fri Jul  5 17:41:29 2002
+++ acpi.4.new  Fri Jul  5 18:37:27 2002
@@ -258,10 +258,33 @@
 bus/children scan of the namespace.
 The ACPI CA code will still
 know about the avoided region.
+.Sh OVERRIDING YOUR BIOS BYTECODE
+ACPI interprets bytecode named AML, ACPI Machine Language, provided by BIOS
+vendor as memory image at boot time. Sometimes, the AML code contains
+problem that is not appeared in Microsoft implement. So we provide a way 
+to override it with your own AML code.
+.Pp
+In order to load your AML code, 
+you must edit 
+.Pa /boot/loader.conf
+and 
+include the follwing lines.
+.Bd -literal -offset indent
+acpi_dsdt_load="YES"
+acpi_dsdt_name="/boot/acpi_dsdt.aml" #You may change the name.
+.Ed
+.Pp
+In order to prepare your AML code, you will require
+.Xr acpidump 8 ,
+.Xr iasl 1
+in devel/acpicatools port, and some ACPI knowledge.
+
 .Sh COMPATIBILITY
 ACPI is only found/supported on Intel platforms (i386/IA32 and IA64).
 .Sh SEE ALSO
 .Xr config 8 ,
+.Xr loader.conf 5 ,
+.Xr acpidump 8 ,
 .Xr acpi 9
 .Sh AUTHORS
 .An -nosplit

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message