From owner-freebsd-acpi@FreeBSD.ORG Sun Jun 10 15:24:16 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 AB8F4106566C for ; Sun, 10 Jun 2012 15:24:16 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from april.london.02.net (april.london.02.net [87.194.255.143]) by mx1.freebsd.org (Postfix) with ESMTP id 554628FC17 for ; Sun, 10 Jun 2012 15:24:15 +0000 (UTC) Received: from [192.168.2.51] (87.194.237.233) by april.london.02.net (8.5.140) id 4F728CFB0199FA6E for freebsd-acpi@FreeBSD.org; Sun, 10 Jun 2012 16:23:36 +0100 Message-ID: <4FD4BBF7.1080103@onetel.com> Date: Sun, 10 Jun 2012 16:23:35 +0100 From: Chris Whitehouse User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111228 Thunderbird/9.0 MIME-Version: 1.0 To: freebsd-acpi@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 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: Sun, 10 Jun 2012 15:24:16 -0000 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: ============================================================ 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) ================================================================== 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) =================================================================== 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 From owner-freebsd-acpi@FreeBSD.ORG Mon Jun 11 11:07:16 2012 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE5CC1065680 for ; Mon, 11 Jun 2012 11:07:16 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8F17B8FC17 for ; Mon, 11 Jun 2012 11:07:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q5BB7GmP053208 for ; Mon, 11 Jun 2012 11:07:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q5BB7FHW053206 for freebsd-acpi@FreeBSD.org; Mon, 11 Jun 2012 11:07:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Jun 2012 11:07:15 GMT Message-Id: <201206111107.q5BB7FHW053206@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-acpi@FreeBSD.org 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: Mon, 11 Jun 2012 11:07:16 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/164329 acpi [acpi] hw.acpi.thermal.tz0.temperature shows strange v o kern/163268 acpi [acpi_hp] fix driver detach in absence of CMI o kern/162859 acpi [acpi] ACPI battery/acline monitoring partialy working o kern/161715 acpi [acpi] Dell E6520 doesn't resume after ACPI suspend o kern/161713 acpi [acpi] Suspend on Dell E6520 o kern/160838 acpi [acpi] ACPI Battery Monitor Non-Functional o kern/160419 acpi [acpi_thermal] acpi_thermal kernel thread high CPU usa o kern/158689 acpi [acpi] value of sysctl hw.acpi.thermal.polling_rate ne o kern/154955 acpi [acpi] Keyboard or ACPI doesn't work on Lenovo S10-3 o kern/152438 acpi [acpi]: patch to acpi_asus(4) to add extra sysctls for o kern/152098 acpi [acpi] Lenovo T61p does not resume o i386/146715 acpi [acpi] Suspend works, resume not on a HP Probook 4510s o kern/145306 acpi [acpi]: Can't change brightness on HP ProBook 4510s o i386/143798 acpi [acpi] shutdown problem with SiS K7S5A o kern/143420 acpi [acpi] ACPI issues with Toshiba o kern/142009 acpi [acpi] [panic] Panic in AcpiNsGetAttachedObject o kern/139088 acpi [acpi] ACPI Exception: AE_AML_INFINITE_LOOP error o amd64/138210 acpi [acpi] acer aspire 5536 ACPI problems (S3, brightness, o kern/137042 acpi [acpi] hp laptop's lcd not wakes up after suspend to r o i386/136008 acpi [acpi] Dell Vostro 1310 will not shutdown (Requires us o bin/135349 acpi [patch] teach acpidump(8) to disassemble arbitrary mem o kern/132602 acpi [acpi] ACPI Problem with Intel SS4200: System does not p kern/128634 acpi [patch] fix acpi_asus(4) in asus a6f laptop o bin/126162 acpi [acpi] ACPI autoload failed : loading required module o kern/123039 acpi [acpi] ACPI AML_BUFFER_LIMIT errors during boot a i386/122887 acpi [panic] [atkbdc] 7.0-RELEASE on IBM HS20 panics immed o kern/121504 acpi [patch] Correctly set hw.acpi.osname on certain machin s kern/112544 acpi [acpi] [patch] Add High Precision Event Timer Driver f o kern/105537 acpi [acpi] problems in acpi on HP Compaq nc6320 o kern/91594 acpi [acpi] FreeBSD > 5.4 w/ACPI fails to detect Intel Pro/ o kern/73823 acpi [request] acpi / power-on by timer support o kern/56024 acpi ACPI suspend drains battery while in S3 32 problems total. 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" From owner-freebsd-acpi@FreeBSD.ORG Thu Jun 14 20:00:59 2012 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAB7E1065672 for ; Thu, 14 Jun 2012 20:00:59 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from woodbine.london.02.net (woodbine.london.02.net [87.194.255.145]) by mx1.freebsd.org (Postfix) with ESMTP id 3D9638FC1B for ; Thu, 14 Jun 2012 20:00:58 +0000 (UTC) Received: from [192.168.2.51] (87.194.237.233) by woodbine.london.02.net (8.5.140) id 4F70C66701CB375A; Thu, 14 Jun 2012 20:59:23 +0100 Message-ID: <4FDA429B.8060003@onetel.com> Date: Thu, 14 Jun 2012 20:59:23 +0100 From: Chris Whitehouse User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111228 Thunderbird/9.0 MIME-Version: 1.0 To: "Moore, Robert" References: <4FD4BBF7.1080103@onetel.com> <94F2FBAB4432B54E8AACC7DFDE6C92E346ADA823@ORSMSX101.amr.corp.intel.com> In-Reply-To: <94F2FBAB4432B54E8AACC7DFDE6C92E346ADA823@ORSMSX101.amr.corp.intel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-acpi@FreeBSD.org" 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: Thu, 14 Jun 2012 20:00:59 -0000 On 12/06/2012 02:28, Moore, Robert wrote: > The -cr flag will disable resource descriptor validation during compile. Hi Robert, thanks for the info. I had tried the -f flag, the -cr doesn't appear in the man page for some reason. Both -f and -cr allow it compile but I was hoping to actually correct it but I don't know whether to correct the length or the range max and min. thanks Chris > > >> -----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: >> >> ============================================================ >> 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) >> ================================================================== >> 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) >> =================================================================== >> >> 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" > From owner-freebsd-acpi@FreeBSD.ORG Thu Jun 14 20:03:38 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D00AF1065716 for ; Thu, 14 Jun 2012 20:03:38 +0000 (UTC) (envelope-from robert.moore@intel.com) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx1.freebsd.org (Postfix) with ESMTP id 813F48FC18 for ; Thu, 14 Jun 2012 20:03:38 +0000 (UTC) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 14 Jun 2012 13:03:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="165785331" Received: from orsmsx603.amr.corp.intel.com ([10.22.226.49]) by fmsmga001.fm.intel.com with ESMTP; 14 Jun 2012 13:03:38 -0700 Received: from orsmsx105.amr.corp.intel.com (10.22.225.132) by orsmsx603.amr.corp.intel.com (10.22.226.49) with Microsoft SMTP Server (TLS) id 8.2.255.0; Thu, 14 Jun 2012 13:03:37 -0700 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.60]) by ORSMSX105.amr.corp.intel.com ([169.254.4.96]) with mapi id 14.01.0355.002; Thu, 14 Jun 2012 13:03:37 -0700 From: "Moore, Robert" To: Chris Whitehouse Thread-Topic: can't recompile vanilla dsdt Thread-Index: AQHNRx0gr2BzrVNpm0yZ3LOU+rQaBJb15vZQgATQi4D//4sAgA== Date: Thu, 14 Jun 2012 20:03:36 +0000 Message-ID: <94F2FBAB4432B54E8AACC7DFDE6C92E346ADD2EC@ORSMSX101.amr.corp.intel.com> References: <4FD4BBF7.1080103@onetel.com> <94F2FBAB4432B54E8AACC7DFDE6C92E346ADA823@ORSMSX101.amr.corp.intel.com> <4FDA429B.8060003@onetel.com> In-Reply-To: <4FDA429B.8060003@onetel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-acpi@FreeBSD.org" 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: Thu, 14 Jun 2012 20:03:39 -0000 We find that "usually", when there are issues with the resource descriptor = values, this means that the BIOS dynamically updates these values, and the = original ASL code simply has garbage values in these fields. We may, in fact, back out the resource descriptor value checking in iASL fo= r this reason. Therefore, there should be no need to change the values. If there is a man page for iASL on FreeBSD, it sounds like it is out of dat= e and should be updated. Bob > -----Original Message----- > From: Chris Whitehouse [mailto:cwhiteh@onetel.com] > Sent: Thursday, June 14, 2012 12:59 PM > To: Moore, Robert > Cc: freebsd-acpi@FreeBSD.org > Subject: Re: can't recompile vanilla dsdt >=20 > On 12/06/2012 02:28, Moore, Robert wrote: > > The -cr flag will disable resource descriptor validation during > compile. >=20 > Hi Robert, >=20 > thanks for the info. I had tried the -f flag, the -cr doesn't appear in > the man page for some reason. Both -f and -cr allow it compile but I > was hoping to actually correct it but I don't know whether to correct > the length or the range max and min. >=20 > thanks >=20 > Chris > > > > > >> -----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.htm > >> l > >> > >> 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" > > From owner-freebsd-acpi@FreeBSD.ORG Fri Jun 15 17:58:12 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1D861065674 for ; Fri, 15 Jun 2012 17:58:12 +0000 (UTC) (envelope-from iwasaki@jp.FreeBSD.org) Received: from locore.org (ns01.locore.org [218.45.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id 5C7BB8FC19 for ; Fri, 15 Jun 2012 17:58:11 +0000 (UTC) Received: from localhost (celeron.v4.locore.org [192.168.0.10]) by locore.org (8.14.5/8.14.5/iwasaki) with ESMTP/inet id q5FHw4Rn099626 for ; Sat, 16 Jun 2012 02:58:04 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Sat, 16 Jun 2012 02:58:04 +0900 (JST) Message-Id: <20120616.025804.48535013.iwasaki@jp.FreeBSD.org> To: freebsd-acpi@freebsd.org From: Mitsuru IWASAKI X-Mailer: Mew version 3.3 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [CFT] acpi_ibm event handler 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: Fri, 15 Jun 2012 17:58:12 -0000 Hi, I've noticed that brightness up/down keys on my Thinkpad X61 doesn't work. Checking DSDT of X61, many changes were found comparing with older Thinkpad (eg. X41). So I made the patches against acpi_ibm(4) as a workaround so that devd(8) events are handled by event handler in acpi_ibm(4). the patches at: http://people.freebsd.org/~iwasaki/acpi/acpi_ibm-20120615.diff With the following sysctl setting, now brightness control is working :) sysctl dev.acpi_ibm.0.events=1 sysctl dev.acpi_ibm.0.handlerevents='0x04 0x10 0x11' Thanks! From owner-freebsd-acpi@FreeBSD.ORG Sat Jun 16 01:30:38 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B8342106564A for ; Sat, 16 Jun 2012 01:30:38 +0000 (UTC) (envelope-from freegih@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 887B28FC18 for ; Sat, 16 Jun 2012 01:30:38 +0000 (UTC) Received: by dadv36 with SMTP id v36so4978165dad.13 for ; Fri, 15 Jun 2012 18:30:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=yVrdyx+8PYZMhKggVNkilveRMh/2C5oXIVUFQaXXZtI=; b=ZX6pcIcFuquQm9HlOxFwTNeQCAQjWqpPdVNx39rznF4T0qsVAUGjikdpjHg+u7RXgc wR5MG2xmiliFgQZNGfX0EMArVFx/AymVZswarREyhZo5Dbrk7VVQFzCf2MaIAIVaP83J sKJ8MkYisA9nC+Zs7T57Wi4GSEbd1J6y1eiv+tkuO4NBDzvLAx8GxiXIvLqj9/M0VmsU 55tZIFhRineUxOtqoCZU7+hof8kREt6Js+D5i7h5BiMKEaL01rpmd7Uqv3vZt6t6YSN7 yxrk7clxn4rhDOnUVBsz6w26xTjy5TJ04nvXwQw2W1vNCa5OzC4c2uQjpd31KlI0jvPn U1zg== Received: by 10.68.192.73 with SMTP id he9mr26722948pbc.17.1339810238142; Fri, 15 Jun 2012 18:30:38 -0700 (PDT) Received: from [10.1.2.99] ([58.249.125.76]) by mx.google.com with ESMTPS id gh10sm15062219pbc.19.2012.06.15.18.30.36 (version=SSLv3 cipher=OTHER); Fri, 15 Jun 2012 18:30:37 -0700 (PDT) Message-ID: <4FDBE1BA.3070204@gmail.com> Date: Sat, 16 Jun 2012 09:30:34 +0800 From: freegih User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:12.0) Gecko/20120603 Thunderbird/12.0.1 MIME-Version: 1.0 To: Mitsuru IWASAKI References: <20120616.025804.48535013.iwasaki@jp.FreeBSD.org> In-Reply-To: <20120616.025804.48535013.iwasaki@jp.FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: [CFT] acpi_ibm event handler 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: Sat, 16 Jun 2012 01:30:38 -0000 Thanks, it looks good, works on my X61, I also have SL500 , the lenovo tp. can somebody make acpi_ibm works on the Lenovo ThinkPads ? On 2012/06/16 01:58, Mitsuru IWASAKI wrote: > Hi, > > I've noticed that brightness up/down keys on my Thinkpad X61 doesn't > work. Checking DSDT of X61, many changes were found comparing with > older Thinkpad (eg. X41). So I made the patches against acpi_ibm(4) > as a workaround so that devd(8) events are handled by event handler in > acpi_ibm(4). > > the patches at: > http://people.freebsd.org/~iwasaki/acpi/acpi_ibm-20120615.diff > > With the following sysctl setting, now brightness control is working :) > > sysctl dev.acpi_ibm.0.events=1 > sysctl dev.acpi_ibm.0.handlerevents='0x04 0x10 0x11' > > Thanks! > _______________________________________________ > 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" From owner-freebsd-acpi@FreeBSD.ORG Sat Jun 16 04:48:05 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 B8EA1106564A for ; Sat, 16 Jun 2012 04:48:05 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 4382A8FC15 for ; Sat, 16 Jun 2012 04:48:05 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so3516449wgb.31 for ; Fri, 15 Jun 2012 21:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=vfoz7mweYtVz7qIOwh3q3JIBEaB5fygz10m6axrfa1Q=; b=XEh90ZNedo0u3t6dfwkGhH8TK+Q5itzsKcp0vfvX6PDHM/iDxHnQLRZ8fqOK2q9oXV aOP8nHnimeqd4MIaDhQKK0AiYzkmxp3N1Vcd6dYfput746tJ86DaNj3D2Sv1r8Ont9uG 72uxBDvmanMPZZmhBJTgm6TTjJkpw26jAy/Sxd9WzM6Mqp4AX/pfObLpQ5Vy0p3lH58W ifEBH/BzYnWOegND85cU9xLK85MQh7CQAaQIr/X36fIWCofzkwHEL1IapJo6wQvr6cNa xYbv/BOKzRoUDOLyXEiPMFuiTfRj0jDf+Lp0wBweqMZ+mQLYQLDZfo9zhXx0cF0+cyy4 I93Q== MIME-Version: 1.0 Received: by 10.180.78.233 with SMTP id e9mr9141887wix.5.1339821634858; Fri, 15 Jun 2012 21:40:34 -0700 (PDT) Received: by 10.223.155.4 with HTTP; Fri, 15 Jun 2012 21:40:34 -0700 (PDT) In-Reply-To: <4FDBE1BA.3070204@gmail.com> References: <20120616.025804.48535013.iwasaki@jp.FreeBSD.org> <4FDBE1BA.3070204@gmail.com> Date: Fri, 15 Jun 2012 21:40:34 -0700 Message-ID: From: Kevin Oberman To: freegih Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-acpi@freebsd.org Subject: Re: [CFT] acpi_ibm event handler 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: Sat, 16 Jun 2012 04:48:05 -0000 On Fri, Jun 15, 2012 at 6:30 PM, freegih wrote: > Thanks, it looks good, works on my X61, =C2=A0I also have SL500 , the len= ovo tp. > > =C2=A0can somebody make acpi_ibm works on the Lenovo ThinkPads ? > > > > On 2012/06/16 01:58, Mitsuru IWASAKI wrote: >> >> Hi, >> >> I've noticed that brightness up/down keys on my Thinkpad X61 doesn't >> work. =C2=A0Checking DSDT of X61, many changes were found comparing with >> older Thinkpad (eg. X41). =C2=A0So I made the patches against acpi_ibm(4= ) >> as a workaround so that devd(8) events are handled by event handler in >> acpi_ibm(4). >> >> the patches at: >> http://people.freebsd.org/~iwasaki/acpi/acpi_ibm-20120615.diff >> >> With the following sysctl setting, now brightness control is working :) >> >> sysctl dev.acpi_ibm.0.events=3D1 >> sysctl dev.acpi_ibm.0.handlerevents=3D'0x04 0x10 0x11' >> >> Thanks! Lots of stiff has been moved from ACPI to the EC, so the changes are pretty significant. The easiest is to add LEN0068 to the "list" of ibm_ids in /usr/src/sys/dev/acpi_support/icpi_ibm.c: static char *ibm_ids[] =3D {"IBM0068","LEN0068", NULL}; That will get a few things like the ThinkLight and several other things. It won't provide volume or brightness control, though. You can fix volume by defining the keys XF86AudioLowerVolume and XF86AudioRaiseVolume to execute the mixer command: /usr/sbin/mixer vol -5:-5 and /usr/sbin/mixer vol +5:+5 This can be done in most desktops. Brightness can be adjusted using "acpi_call -p '\VBRC' -i n" (where n is 0-15). acpi_call must be installed from ports. But this command sets absolute brightness, so it can't raise or lower the brightness unless you have the current value and I don't know how to get that. This is the case on my T520. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com From owner-freebsd-acpi@FreeBSD.ORG Sat Jun 16 15:25:12 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 EAD61106566B for ; Sat, 16 Jun 2012 15:25:12 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from anakin.london.02.net (anakin.london.02.net [87.194.255.134]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4F68FC0C for ; Sat, 16 Jun 2012 15:25:12 +0000 (UTC) Received: from [192.168.2.51] (87.194.237.233) by anakin.london.02.net (8.5.140) id 4EEB63D2035BC24B; Sat, 16 Jun 2012 16:24:15 +0100 Message-ID: <4FDCA51E.5070509@onetel.com> Date: Sat, 16 Jun 2012 16:24:14 +0100 From: Chris Whitehouse User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111228 Thunderbird/9.0 MIME-Version: 1.0 To: "Moore, Robert" References: <4FD4BBF7.1080103@onetel.com> <94F2FBAB4432B54E8AACC7DFDE6C92E346ADA823@ORSMSX101.amr.corp.intel.com> <4FDA429B.8060003@onetel.com> <94F2FBAB4432B54E8AACC7DFDE6C92E346ADD2EC@ORSMSX101.amr.corp.intel.com> In-Reply-To: <94F2FBAB4432B54E8AACC7DFDE6C92E346ADD2EC@ORSMSX101.amr.corp.intel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-acpi@FreeBSD.org" 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: Sat, 16 Jun 2012 15:25:13 -0000 On 14/06/2012 21:03, Moore, Robert wrote: > We find that "usually", when there are issues with the resource > descriptor values, this means that the BIOS dynamically updates these > values, and the original ASL code simply has garbage values in these > fields. > > We may, in fact, back out the resource descriptor value checking in > iASL for this reason. > > Therefore, there should be no need to change the values. Thanks > > If there is a man page for iASL on FreeBSD, it sounds like it is out > of date and should be updated. I've just sent a PR. (docs/169158) Chris > > Bob > > >> -----Original Message----- From: Chris Whitehouse >> [mailto:cwhiteh@onetel.com] Sent: Thursday, June 14, 2012 12:59 PM >> To: Moore, Robert Cc: freebsd-acpi@FreeBSD.org Subject: Re: can't >> recompile vanilla dsdt >> >> On 12/06/2012 02:28, Moore, Robert wrote: >>> The -cr flag will disable resource descriptor validation during >> compile. >> >> Hi Robert, >> >> thanks for the info. I had tried the -f flag, the -cr doesn't >> appear in the man page for some reason. Both -f and -cr allow it >> compile but I was hoping to actually correct it but I don't know >> whether to correct the length or the range max and min. >> >> thanks >> >> Chris >>> >>> >>>> -----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.htm >>>> l >>>> >>>> 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: >>>> >>>> ============================================================ >>>> 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) >>>> ================================================================== >>>> >>>> 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) >>>> =================================================================== >>>> >>>> >>>> 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" >>> > >