Content-Type: multipart/mixed; boundary="===============6355306044219101552==" MIME-Version: 1.0 From: Thomas Renninger Subject: [Devel] False positive iasl compiler error on resource object? Date: Fri, 10 Sep 2010 11:33:31 +0200 Message-ID: <201009101133.31663.trenn@suse.de> List-ID: To: devel@acpica.org --===============6355306044219101552== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I have a machine with a _CRS function which shows: Method (_CRS, 0, NotSerialized) { Name (XY0, ResourceTemplate () { WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, Entir= eRange, 0x0000, // Granularity 0x0000, // Range Minimum 0x0000, // Range Maximum 0x0000, // Translation Offset 0x0000, // Length ,, _Y10, TypeStatic) } This produces the compiler error: DSDT.dsl.orig 2364: 0x0000, // Length Error 4122 - ^ Invalid combination of = Length and Min/Max fixed flags Because iasl thinks this hits this condition: Advanced Configuration and Power Interface Specification Revision 3.0b October 10, 2006 6.4.3.5 Address Space Resource Descriptors Table 6-38 Valid combination of Address Space Descriptors fields .. _LEN _MIF _MAF Definition 0 1 1 (Illegal combination) But the _CRS function can still fill up the length of this resource object parts while _CRS gets executed (and the compiler probably does not take this into account), by e.g.: CreateWordField (XY0, \_SB.PCI0._CRS._Y10._LEN, LEN9) Store (Local0, LEN9) and the resource, returned to OS, might fulfill the ACPI specification and return a valid length, _MIF, _MAF combination: _LEN _MIF _MAF Definition >0 1 1 Fixed size, fixed location resource d= escriptor. _GRA must be 0 and _LEN must be (= _MAX - _MIN +1). I wonder whether my above assumptions are correct and the Error 4122 should get removed from the iasl compiler, at least in this case? Thanks, Thomas --===============6355306044219101552==--