K 10 svn:author V 3 avg K 8 svn:date V 27 2010-11-19T14:26:45.934574Z K 7 svn:log V 5334 MFC imports of ACPICA revisions 20100428 through 20101013 Plus related changes and ehancements. Full list of revisions: o----------------------------------------------------------------------- r207344 | jkim | 2010-04-29 01:25:27 +0300 (Thu, 29 Apr 2010) | 2 lines Merge ACPICA 20100428. o----------------------------------------------------------------------- r209065 | jkim | 2010-06-11 22:58:41 +0300 (Fri, 11 Jun 2010) | 2 lines Simplify a function for getting brightness levels. o----------------------------------------------------------------------- r209746 | jkim | 2010-07-06 23:57:28 +0300 (Tue, 06 Jul 2010) | 2 lines Merge ACPICA 20100702. o----------------------------------------------------------------------- r209747 | jkim | 2010-07-07 00:41:08 +0300 (Wed, 07 Jul 2010) | 2 lines Fix mis-merges in the previous commit. o----------------------------------------------------------------------- r210150 | jkim | 2010-07-16 02:24:06 +0300 (Fri, 16 Jul 2010) | 3 lines If there is any pending sleep request, disallow entering S5 state. Otherwise, bad things may happen. ;-) o----------------------------------------------------------------------- r210976 | jkim | 2010-08-07 02:11:19 +0300 (Sat, 07 Aug 2010) | 2 lines Merge ACPICA 20100806. o----------------------------------------------------------------------- r211763 | mav | 2010-08-24 21:07:59 +0300 (Tue, 24 Aug 2010) | 4 lines When ACPI reports current battery consumption rate in mAmps, print it also in mWatts. Values in mAmps are not always suitable, because they depend on battery voltage, which depends on battery type and charge level. o----------------------------------------------------------------------- r212761 | jkim | 2010-09-16 23:08:00 +0300 (Thu, 16 Sep 2010) | 2 lines Merge ACPICA 20100915. o----------------------------------------------------------------------- r213772 | rpaulo | 2010-10-13 14:38:24 +0300 (Wed, 13 Oct 2010) | 3 lines Mark acpi_bus_number() as __unused. This allows clang to this file without any warnings. o----------------------------------------------------------------------- r213783 | jkim | 2010-10-13 19:30:41 +0300 (Wed, 13 Oct 2010) | 4 lines Remove acpi_bus_number() completely. It had to be removed in r212761. Pointed out by: jhb o----------------------------------------------------------------------- r213787 | jkim | 2010-10-13 20:06:25 +0300 (Wed, 13 Oct 2010) | 2 lines Clean up unused headers. o----------------------------------------------------------------------- r213806 | jkim | 2010-10-14 00:37:02 +0300 (Thu, 14 Oct 2010) | 2 lines Merge ACPICA 20101013. o----------------------------------------------------------------------- r214390 | jkim | 2010-10-26 21:59:50 +0300 (Tue, 26 Oct 2010) | 18 lines Add two new loader tunables 'hw.acpi.install_interface' and 'hw.acpi.remove_interface'. hw.acpi.install_interface lets you install new interfaces. Conversely, hw.acpi.remove_interface lets you remove OS interfaces from the pre-defined list in ACPICA. For example, hw.acpi.install_interface="FreeBSD" lets _OSI("FreeBSD") method to return 0xffffffff (or success) and hw.acpi.remove_interface="Windows 2009" lets _OSI("Windows 2009") method to return zero (or failure). Both are comma-separated lists and leading white spaces are ignored. For example, the following examples are valid: hw.acpi.install_interface="Linux, FreeBSD" hw.acpi.remove_interface="Windows 2006, Windows 2006.1" o----------------------------------------------------------------------- r214401 | jkim | 2010-10-27 00:22:55 +0300 (Wed, 27 Oct 2010) | 3 lines Document newly added loader tunables "hw.acpi.install_interface" and "hw.acpi.remove_interface". o----------------------------------------------------------------------- r214765 | jkim | 2010-11-04 01:16:35 +0200 (Thu, 04 Nov 2010) | 4 lines Adjust a comment to clarify why \_SB_ and \_TZ_ are defined as device type in ACPICA. Reshuffle the code a bit to make sure this kludge only applies to these two specical cases and to make it cleaner. o----------------------------------------------------------------------- r214848 | jkim | 2010-11-05 21:50:09 +0200 (Fri, 05 Nov 2010) | 13 lines Fix a use-after-free bug for extended IRQ resource[1]. When _PRS buffer is copied as a template for _SRS, a string pointer for descriptor name is also copied and it becomes stale as soon as it gets de-allocated[2]. Now _CRS is used as a template for _SRS as ACPI specification suggests if it is usable. The template from _PRS is still utilized but only when _CRS is not available or broken. To avoid use-after-free the problem in this case, however, only mandatory fields are copied, optional data is removed, and structure length is adjusted accordingly. Reported by: hps[1] Analyzed by: avg[2] Tested by: hps o----------------------------------------------------------------------- r214849 | jkim | 2010-11-05 22:24:26 +0200 (Fri, 05 Nov 2010) | 2 lines Add a forgotten change from the previous commit. o----------------------------------------------------------------------- r214998 | jkim | 2010-11-08 21:52:14 +0200 (Mon, 08 Nov 2010) | 2 lines Consistently use padding `_' in the comment. o----------------------------------------------------------------------- Reviewed by: jkim Tested by: Alexandre "Sunny" Kovalenko On behalf of: jkim END