public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Latest acpica
@ 2005-09-08 16:50 Moore, Robert
       [not found] ` <971FCB6690CD0E4898387DBF7552B90E02A69A30-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Moore, Robert @ 2005-09-08 16:50 UTC (permalink / raw)
  To: Thomas Renninger, ML ACPI-devel

The compilation errors of this form:


dsdt_org.dsl   149:                     , AddressRangeMemory,
TypeStatic)

Error    1094 -                Missing ResourceSource string (required)
^

 
are caused by specifying a ResourceIndex with no corresponding
ResourceString.  We recently tightened up the iASL compiler to detect
this condition and flag it as an error, as per the following text from
the ACPI specification, 3.0:


DWord Address Space Descriptor 

Byte 46
 Resource Source Index
 (Optional) Only present if Resource Source (below) is present. This
field gives an index to the specific resource descriptor that this
device consumes from in the current resource template for the device
object pointed to in Resource Source.
 


A relevant ASL source statement is below.

 

                DWordMemory (ResourceProducer, PosDecode, MinFixed,
MaxFixed, Cacheable, ReadWrite,

                    0x00000000, // Address Space Granularity

                    0x000A0000, // Address Range Minimum

                    0x000BFFFF, // Address Range Maximum

                    0x00000000, // Address Translation Offset

                    0x00020000, 0x00,,

                    , AddressRangeMemory, TypeStatic)

 

It is the 0x00 that is causing the issue, it should not be there.

 

However, we recently changed the disassembler to detect this condition
within existing AML code and to emit ASL code that is compilable.  In
this case, the statement comes out of the disassembler like this:

 

                DWordMemory (ResourceProducer, PosDecode, MinFixed,
MaxFixed, Cacheable, ReadWrite,

                    0x00000000, // Address Space Granularity

                    0x000A0000, // Address Range Minimum

                    0x000BFFFF, // Address Range Maximum

                    0x00000000, // Address Translation Offset

                    0x00020000,,,

                    , AddressRangeMemory, TypeStatic)

 

Which is compilable code.

 

This change to the disassembler appeared in ACPICA version 20050617:

 

Enhanced the disassembler to emit compilable code in the face of
incorrect AML resource descriptors. If the optional ResourceSourceIndex
is present, but the ResourceSource is not, do not emit the
ResourceSourceIndex in the disassembly. Otherwise, the resulting code
cannot be compiled without errors.


> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Thomas Renninger
> Sent: Thursday, September 08, 2005 3:16 AM
> To: ML ACPI-devel
> Subject: [ACPI] Latest acpica
> 
> acpica-unix-20050902.tar.gz
> is now available under:
> http://developer.intel.com/technology/iapc/acpi/downloads.htm
> Thanks.
> 
> There is one concern:
> This has been discussed some weeks ago.
> The compiler throws dozens of errors on some DSDTs:
> 
> DSDT.dsl   777:                     , AddressRangeMemory, TypeStatic)
> Error    1084 -            Missing ResourceSource string (required) ^
> 
> I cannot find the mail now, but IIRC Len said this was added to
identify
> how many DSDTs violate specs (is it optional or not?) and should be
> removed
> again later.
> 
> The patch attached lowers the error to a warning, so that you get a
> compiled
> DSDT as output.
> Not sure, maybe the error/warning case should be reverted totally?
> 
> 
>       Thomas


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: Latest acpica
@ 2005-10-18 20:31 Moore, Robert
       [not found] ` <971FCB6690CD0E4898387DBF7552B90E031CC3AC-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Moore, Robert @ 2005-10-18 20:31 UTC (permalink / raw)
  To: Andrew Grover, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

It is my understanding that only flex-old will work to build iASL,
because the new flex is not compatible with lex in some important areas.

 

I don't know any more than this.

Bob

 

 

-----Original Message-----
From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Andrew
Grover
Sent: Tuesday, October 18, 2005 1:24 PM
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; Moore, Robert
Subject: Re: [ACPI] Latest acpica

 

Yeah I wish I knew enough flex to fix it, too. How hard can it be? :) --
Andy

On 10/18/05, Mattia Dongili <malattia-k2GhghHVRtY@public.gmane.org
<mailto:malattia-k2GhghHVRtY@public.gmane.org> > wrote:

On Wed, Oct 12, 2005 at 10:37:59AM -0700, Andrew Grover wrote:
> I am using GNU flex 2.5.31. I was able to get it to build (on x86_64
even)
> with the attached patch. I have also attached the warnings, in case
those
> are of interest.

I tried building my DSDT with a patched iasl built with the latest flex 
available in debian (2.5.31) but it seems the -l flag is doing more bad
than good. I get a bunch of (meaningless) errors:

DSDT.dsl    34:     Scope (\_GPE)
Error    1094 -                ^ syntax error, unexpected
PARSEOP_NAMESEG, expecting ')'

DSDT.dsl    38:             Notify (\_SB.PCI0.USB1, 0x02)
Error    1094 -                        ^ syntax error, unexpected
PARSEOP_NAMESEG, expecting ','

DSDT.dsl    38:             Notify (\_SB.PCI0.USB1, 0x02)
Error    1094 -                         ^ Invalid character (0x2E),
expecting ASL keyword or name

DSDT.dsl    43:             Notify (\_SB.PCI0.USB2, 0x02)
Error    1094 -                        ^ syntax error, unexpected
PARSEOP_NAMESEG, expecting ','
...
...
ASL Input:  DSDT.dsl - 3597 lines, 124899 bytes, 20 keywords
Compilation complete. 15 Errors, 0 Warnings, 0 Remarks, 2 Optimizations

while building with flex-old I only get: 

DSDT.dsl  1347:                     Field (ECR, AnyAcc, Lock, Preserve)
Error    1073 -                              ^ Host Operation Region
requires ByteAcc access

ASL Input:  DSDT.dsl - 3896 lines, 131852 bytes, 1959 keywords
Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 388 Optimizations

So I'll probably simply build-depend on flex-old by now and I'll try to
learn 
more of flex soon :)

--
mattia
:wq!

 


[-- Attachment #2: Type: text/html, Size: 6564 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: Latest acpica
@ 2005-10-13 17:15 Moore, Robert
  0 siblings, 0 replies; 20+ messages in thread
From: Moore, Robert @ 2005-10-13 17:15 UTC (permalink / raw)
  To: Mattia Dongili, Andrew Grover; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I am the developer and maintainer for ACPICA and the iASL compiler. If
there are any changes required, send them to me and I will integrate
them.

Bob


> -----Original Message-----
> From: Mattia Dongili [mailto:malattia-k2GhghHVRtY@public.gmane.org]
> Sent: Thursday, October 13, 2005 12:57 AM
> To: Andrew Grover
> Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; Moore, Robert
> Subject: Re: [ACPI] Latest acpica
> 
> On Thu, October 13, 2005 2:00 am, Andrew Grover said:
> [...nice insight on acpica-unix...]
> >
> > Regards -- Andy (no longer working on acpi, I just want a debian
iasl
> pkg
> > ;-)
> 
> Thanks a lot, you'll have your package soon :)
> 
> --
> mattia
> :wq!
> 



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: Latest acpica
@ 2005-09-08 19:35 Moore, Robert
       [not found] ` <971FCB6690CD0E4898387DBF7552B90E02AA4005-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Moore, Robert @ 2005-09-08 19:35 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: Frank, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

And this seems like a fairly relevant quote as well:

>Flex no longer conforms to the POSIX lex behaviour



> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Matthew Wilcox
> Sent: Thursday, September 08, 2005 12:31 PM
> To: Moore, Robert
> Cc: Frank; acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: Re: [ACPI] Latest acpica
> 
> On Thu, Sep 08, 2005 at 12:23:50PM -0700, Moore, Robert wrote:
> > Tell me what needs to change in order to make it compatible.
> 
> I've never looked into it in any detail.  From the Debian description:
> 
>  The behaviour of Flex has undergone a major change since version
>  2.5.4a; Flex scanners are now reenterant, you may have multiple
>  scanners in the same program with differing sets of defaults, and
>  they play nicer with modern C and C++ compilers. The Flip side is
>  that Flex no longer conforms to the POSIX lex behaviour, and the
>  scanners require conforming implementations when flex is used in ANSI
>  C mode. The package flex-old provides the older behaviour.
> 
> The GNU web page has some more detail:
> 
>
http://www.gnu.org/software/flex/manual/html_chapter/flex_20.html#SEC20
> 
> and there's a bug showing exactly this problem being encountered here:
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=191942
> 
> The important bit is probably the quote:
> 
> 	The relevant change in the new flex is that it's no longer valid
> 	to call unput() from the section after %%, only in actions or
> 	in the %{ ... %} section.
> 
> HTH.
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
> Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: Latest acpica
@ 2005-09-08 19:23 Moore, Robert
       [not found] ` <971FCB6690CD0E4898387DBF7552B90E02AA3FD6-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Moore, Robert @ 2005-09-08 19:23 UTC (permalink / raw)
  To: Matthew Wilcox, Frank; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Tell me what needs to change in order to make it compatible.
Bob

> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Matthew Wilcox
> Sent: Thursday, September 08, 2005 11:39 AM
> To: Frank
> Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: Re: [ACPI] Latest acpica
> 
> On Thu, Sep 08, 2005 at 06:59:57PM +0200, Frank wrote:
> > I am having problems compiling this compiler on AMD64.
> > It throws the following error message:
> >
> > [compiler] $ make
> > cc -Wall -O2 -Wstrict-prototypes -D_LINUX -DACPI_ASL_COMPILER -
> I../include
> > -c -o aslcompilerlex.o aslcompilerlex.c
> > aslcompiler.l: In function `comment':
> > aslcompiler.l:847: error: `yytext_ptr' undeclared (first use in this
> function)
> > aslcompiler.l:847: error: (Each undeclared identifier is reported
only
> once
> > aslcompiler.l:847: error: for each function it appears in.)
> > make: *** [aslcompilerlex.o] Error 1
> 
> Are you on Debian?  I think this means you need to install flex-old.
> 
> Do Intel have any plans to make this compatible with versions of GNU
flex
> after 2.5.4a?
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
> Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Latest acpica
@ 2005-09-08 10:15 Thomas Renninger
       [not found] ` <43200F57.9040000-l3A5Bk7waGM@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Thomas Renninger @ 2005-09-08 10:15 UTC (permalink / raw)
  To: ML ACPI-devel

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

acpica-unix-20050902.tar.gz
is now available under:
http://developer.intel.com/technology/iapc/acpi/downloads.htm
Thanks.

There is one concern:
This has been discussed some weeks ago.
The compiler throws dozens of errors on some DSDTs:

DSDT.dsl   777:                     , AddressRangeMemory, TypeStatic)
Error    1084 -            Missing ResourceSource string (required) ^

I cannot find the mail now, but IIRC Len said this was added to identify
how many DSDTs violate specs (is it optional or not?) and should be removed
again later.

The patch attached lowers the error to a warning, so that you get a compiled
DSDT as output.
Not sure, maybe the error/warning case should be reverted totally?


      Thomas

[-- Attachment #2: resource_string_warning.diff --]
[-- Type: text/x-patch, Size: 3108 bytes --]

--- compiler/aslrestype2.c.orig	2005-09-08 12:05:25.000000000 +0200
+++ compiler/aslrestype2.c	2005-09-08 12:08:10.000000000 +0200
@@ -331,7 +331,7 @@
              */
             else if (ResSourceIndex)
             {
-                AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE,
+                AslError (ASL_WARNING, ASL_MSG_RESOURCE_SOURCE,
                     InitializerOp, NULL);
             }
             break;
@@ -545,7 +545,7 @@
              */
             else if (ResSourceIndex)
             {
-                AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE,
+                AslError (ASL_WARNING, ASL_MSG_RESOURCE_SOURCE,
                     InitializerOp, NULL);
             }
             break;
@@ -757,7 +757,7 @@
              */
             else if (ResSourceIndex)
             {
-                AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE,
+                AslError (ASL_WARNING, ASL_MSG_RESOURCE_SOURCE,
                     InitializerOp, NULL);
             }
             break;
@@ -1430,7 +1430,7 @@
              */
             else if (ResSourceIndex)
             {
-                AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE,
+                AslError (ASL_WARNING, ASL_MSG_RESOURCE_SOURCE,
                     InitializerOp, NULL);
             }
             break;
@@ -1639,7 +1639,7 @@
              */
             else if (ResSourceIndex)
             {
-                AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE,
+                AslError (ASL_WARNING, ASL_MSG_RESOURCE_SOURCE,
                     InitializerOp, NULL);
             }
             break;
@@ -1846,7 +1846,7 @@
              */
             else if (ResSourceIndex)
             {
-                AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE,
+                AslError (ASL_WARNING, ASL_MSG_RESOURCE_SOURCE,
                     InitializerOp, NULL);
             }
             break;
@@ -2034,7 +2034,7 @@
              */
             else if (ResSourceIndex)
             {
-                AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE,
+                AslError (ASL_WARNING, ASL_MSG_RESOURCE_SOURCE,
                     InitializerOp, NULL);
             }
             break;
@@ -2234,7 +2234,7 @@
              */
             else if (ResSourceIndex)
             {
-                AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE,
+                AslError (ASL_WARNING, ASL_MSG_RESOURCE_SOURCE,
                     InitializerOp, NULL);
             }
             break;
@@ -2431,7 +2431,7 @@
              */
             else if (ResSourceIndex)
             {
-                AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE,
+                AslError (ASL_WARNING, ASL_MSG_RESOURCE_SOURCE,
                     InitializerOp, NULL);
             }
             break;
@@ -2592,7 +2592,7 @@
              */
             else if (HasResSourceIndex)
             {
-                AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE,
+                AslError (ASL_WARNING, ASL_MSG_RESOURCE_SOURCE,
                     InitializerOp, NULL);
             }
             break;

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

end of thread, other threads:[~2005-10-19  3:38 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-08 16:50 Latest acpica Moore, Robert
     [not found] ` <971FCB6690CD0E4898387DBF7552B90E02A69A30-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-09-08 17:21   ` Thomas Renninger
  -- strict thread matches above, loose matches on Subject: below --
2005-10-18 20:31 Moore, Robert
     [not found] ` <971FCB6690CD0E4898387DBF7552B90E031CC3AC-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-10-19  3:38   ` Andrew Grover
2005-10-13 17:15 Moore, Robert
2005-09-08 19:35 Moore, Robert
     [not found] ` <971FCB6690CD0E4898387DBF7552B90E02AA4005-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-10-12 17:37   ` Andrew Grover
     [not found]     ` <c0a09e5c0510121037l3be5774bj3ec5e0d50449c69f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2005-10-12 21:56       ` Mattia Dongili
     [not found]         ` <20051012215628.GG3658-MEqNC12sBsHxa7XIdbXXog@public.gmane.org>
2005-10-13  0:00           ` Andrew Grover
     [not found]             ` <c0a09e5c0510121700saa456d6kff2b05b858bc1251-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2005-10-13  7:56               ` Mattia Dongili
2005-10-18 20:14       ` Mattia Dongili
     [not found]         ` <20051018201407.GB3945-MEqNC12sBsHxa7XIdbXXog@public.gmane.org>
2005-10-18 20:23           ` Andrew Grover
2005-09-08 19:23 Moore, Robert
     [not found] ` <971FCB6690CD0E4898387DBF7552B90E02AA3FD6-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-09-08 19:30   ` Matthew Wilcox
2005-09-08 10:15 Thomas Renninger
     [not found] ` <43200F57.9040000-l3A5Bk7waGM@public.gmane.org>
2005-09-08 16:59   ` Frank
     [not found]     ` <200509081859.57340.hugelmopf-S0/GAf8tV78@public.gmane.org>
2005-09-08 17:15       ` Thomas Renninger
2005-09-08 18:38       ` Matthew Wilcox
     [not found]         ` <20050908183832.GA4770-6jwH94ZQLHl74goWV3ctuw@public.gmane.org>
2005-09-08 19:49           ` Frank
     [not found]             ` <200509082149.57483.hugelmopf-S0/GAf8tV78@public.gmane.org>
2005-09-09  8:10               ` Sebastian Henschel

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