From owner-freebsd-acpi@FreeBSD.ORG Tue Jun 12 01:28:26 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EC33106564A for ; Tue, 12 Jun 2012 01:28:26 +0000 (UTC) (envelope-from robert.moore@intel.com) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx1.freebsd.org (Postfix) with ESMTP id 185CB8FC0A for ; Tue, 12 Jun 2012 01:28:26 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 11 Jun 2012 18:28:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,352,1309762800"; d="scan'208";a="151656531" Received: from orsmsx606.amr.corp.intel.com ([10.22.226.128]) by orsmga001.jf.intel.com with ESMTP; 11 Jun 2012 18:28:20 -0700 Received: from orsmsx102.amr.corp.intel.com (10.22.225.129) by orsmsx606.amr.corp.intel.com (10.22.226.128) with Microsoft SMTP Server (TLS) id 8.2.255.0; Mon, 11 Jun 2012 18:28:20 -0700 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.60]) by ORSMSX102.amr.corp.intel.com ([169.254.1.88]) with mapi id 14.01.0355.002; Mon, 11 Jun 2012 18:28:19 -0700 From: "Moore, Robert" To: Chris Whitehouse , "freebsd-acpi@FreeBSD.org" Thread-Topic: can't recompile vanilla dsdt Thread-Index: AQHNRx0gr2BzrVNpm0yZ3LOU+rQaBJb15vZQ Date: Tue, 12 Jun 2012 01:28:19 +0000 Message-ID: <94F2FBAB4432B54E8AACC7DFDE6C92E346ADA823@ORSMSX101.amr.corp.intel.com> References: <4FD4BBF7.1080103@onetel.com> In-Reply-To: <4FD4BBF7.1080103@onetel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: RE: can't recompile vanilla dsdt X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2012 01:28:26 -0000 The -cr flag will disable resource descriptor validation during compile. >-----Original Message----- >From: owner-freebsd-acpi@freebsd.org [mailto:owner-freebsd- >acpi@freebsd.org] On Behalf Of Chris Whitehouse >Sent: Sunday, June 10, 2012 8:24 AM >To: freebsd-acpi@FreeBSD.org >Subject: can't recompile vanilla dsdt > >Hi > >[please cc me, I'm not subscribed, thanks] > >I'm hoping someone can help me with this small problem. I created a >custom aml a while ago: > >http://lists.freebsd.org/pipermail/freebsd-acpi/2009-March/005558.html > >Now I want to redo it but even a vanilla dsdt won't recompile. I'm sure >I didn't have these errors previously, perhaps the compiler has become >more strict? > >Anyway, > >muji64# iasl nc6320.asl > >Intel ACPI Component Architecture >ASL Optimizing Compiler version 20110527-64 >Copyright (c) 2000 - 2011 Intel Corporation > >nc6320.asl 830: 0x00000000, // Length >Error 4122 - ^ Invalid combination of >Length and Min/Max fixed flags > >nc6320.asl 837: 0x011FEFFF, // Length >Error 4118 - ^ Length is not equal to >fixed Min/Max window > >nc6320.asl 2978: Method (_BCQ, 0, Serialized) >Warning 1099 - Unknown reserved name ^ (_BCQ) > >nc6320.asl 2978: Method (_BCQ, 0, Serialized) >Warning 1099 - Unknown reserved name ^ (_BCQ) > >nc6320.asl 3395: Name (C1A6, Package (0x08) >Remark 5048 - ^ >Initializer list shorter than declared package length > >nc6320.asl 4398: Return (0x00) >Warning 1128 - Reserved method should not return a value ^ (_DIS) > >nc6320.asl 4402: Return (0x00) >Warning 1128 - ^ Reserved >method should not return a value (_DIS) > >nc6320.asl 4722: Return (0x00) >Warning 1128 - Reserved method should not return a value ^ (_DIS) > >nc6320.asl 4726: Return (0x00) >Warning 1128 - ^ Reserved >method should not return a value (_DIS) > >nc6320.asl 5677: If (LEqual (C214, 0xFFFFFFFD)) >Warning 1100 - Statement is unreachable ^ > >ASL Input: nc6320.asl - 14586 lines, 528295 bytes, 6747 keywords >Compilation complete. 2 Errors, 7 Warnings, 1 Remarks, 2310 Optimizations > >The two errors are here in the asl: > > 789 Name (C08D, ResourceTemplate () > 790 { > 791 WordBusNumber (ResourceProducer, MinFixed, >MaxFixed, PosDecode, > 792 0x0000, // Granularity > 793 0x0000, // Range Minimum > 794 0x00FF, // Range Maximum > 795 0x0000, // Translation Offset > 796 0x0100, // Length > 797 ,, ) > 798 IO (Decode16, > 799 0x0CF8, // Range Minimum > 800 0x0CF8, // Range Maximum > 801 0x01, // Alignment > 802 0x08, // Length > 803 ) > 804 WordIO (ResourceProducer, MinFixed, MaxFixed, >PosDecode, EntireRange, > 805 0x0000, // Granularity > 806 0x0000, // Range Minimum > 807 0x0CF7, // Range Maximum > 808 0x0000, // Translation Offset > 809 0x0CF8, // Length > 810 ,, , TypeStatic) > 811 WordIO (ResourceProducer, MinFixed, MaxFixed, >PosDecode, EntireRange, > 812 0x0000, // Granularity > 813 0x0D00, // Range Minimum > 814 0xFFFF, // Range Maximum > 815 0x0000, // Translation Offset > 816 0xF300, // Length > 817 ,, , TypeStatic) > 818 DWordMemory (ResourceProducer, PosDecode, >MinFixed, MaxFixed, Cacheable, ReadWrite, > 819 0x00000000, // Granularity > 820 0x000A0000, // Range Minimum > 821 0x000BFFFF, // Range Maximum > 822 0x00000000, // Translation Offset > 823 0x00020000, // Length > 824 ,, , AddressRangeMemory, TypeStatic) > 825 DWordMemory (ResourceProducer, PosDecode, >MinFixed, MaxFixed, Cacheable, ReadWrite, > 826 0x00000000, // Granularity > 827 0x00000000, // Range Minimum > 828 0xFEDFFFFF, // Range Maximum > 829 0x00000000, // Translation Offset > 830 0x00000000, // Length > ^^^^^^^^ > 831 ,, _Y02, AddressRangeMemory, TypeStatic) > 832 DWordMemory (ResourceProducer, PosDecode, >MinFixed, MaxFixed, Cacheable, ReadWrite, > 833 0x00000000, // Granularity > 834 0xFEE01000, // Range Minimum > 835 0xFFFFFFFF, // Range Maximum > 836 0x00000000, // Translation Offset > 837 0x011FEFFF, // Length > ^^^^^^^^ > 838 ,, , AddressRangeMemory, TypeStatic) > 839 }) > > > >Both these compile ok: > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 825 DWordMemory (ResourceProducer, PosDecode, >MinFixed, MaxFixed, Cacheable, ReadWrite, > 826 0x00000000, // Granularity > 827 0x0000D000, // Range Minimum > ^ > 828 0xFEDFFFFF, // Range Maximum > 829 0x00000000, // Translation Offset > 830 0xFEDF3000, // Length > ^^^^^^^^ > 831 ,, _Y02, AddressRangeMemory, TypeStatic) > 832 DWordMemory (ResourceProducer, PosDecode, >MinFixed, MaxFixed, Cacheable, ReadWrite, > 833 0x00000000, // Granularity > 834 0xFEE01000, // Range Minimum > 835 0xFFFFFFFF, // Range Maximum > 836 0x00000000, // Translation Offset > 837 0x011FF000, // Length > ^^^^ > 838 ,, , AddressRangeMemory, TypeStatic) >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 825 DWordMemory (ResourceProducer, PosDecode, >MinFixed, MaxFixed, Cacheable, ReadWrite, > 826 0x00000000, // Granularity > 827 0x00000000, // Range Minimum > 828 0xFEDFFFFF, // Range Maximum > 829 0x00000000, // Translation Offset > 830 0xFEE00000, // Length > ^^^^^^^^ > 831 ,, _Y02, AddressRangeMemory, TypeStatic) > 832 DWordMemory (ResourceProducer, PosDecode, >MinFixed, MaxFixed, Cacheable, ReadWrite, > 833 0x00000000, // Granularity > 834 0xFEE01000, // Range Minimum > 835 0xFFFFFFFF, // Range Maximum > 836 0x00000000, // Translation Offset > 837 0x011FF000, // Length > ^^^^ > 838 ,, , AddressRangeMemory, TypeStatic) >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >The first has (nearly) contiguous ranges, in the second the range in the >DWordMemory at line 825 overlaps with the range in the DWordMemory at >line 818. > >Should I be changing the lengths to correspond to the range max and min >values or the other way round? > > >uname -a >FreeBSD muji64 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 >UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC >amd64 > >Complete asl http://www.fishercroft.plus.com/ > >Thanks for any help, sorry for such a long post. > >Chris >_______________________________________________ >freebsd-acpi@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-acpi >To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org"