Skip to contentSkip to conversation

latest ACPI patch vs 2.6.12

DISCUSSION Len Brown 5 participants 7 messages Aug 5, 2005 – Aug 11, 2005 1 message not in the archive ACPI

lore
Share & tools
lore

Len Brown

author Acked-by Adam Belay Acked-by Shaohua Li
#0 lore raw

The Latest ACPI patch vs 2.6.12 is available here:

http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.12/acpi-20050729-2.6.12.patch

This includes most all of the ACPI patches that went into 2.6.13 -- at least the ones sent through me.
It also includes newer stuff that is queued for 2.6.14 via -mm.

Individual patches are available here:
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.12/broken-out/

cheers,
-Len
--------------

commit cdce6164674969e8ccadbdf5ef85d901c5be7f5e

Author: Len Brown <[email protected]>
Date:   Thu Aug 4 23:35:43 2005 -0400

[ACPI] Lindent all ACPI files

commit be25d6d713848e8f500c4a05eb9cec9e3e77d540

Author: Pavel Machek <[email protected]>
Date:   Thu Aug 4 22:42:34 2005 -0400

[ACPI] whitespace

commit cbfc1bae55bbd053308ef0fa6b6448cd1ddf3e67

Author: Adrian Bunk <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] ACPI_HOTPLUG_CPU Kconfig dependency update

prevent:

HOTPLUG_CPU=y
ACPI_PROCESSOR=y
ACPI_HOTPLUG_CPU=n

commit 4fdcf0804598f44b0f48da9e5281af48a4db393f

Author: Andrew Morton <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] lint: irqrouter_suspend() takes a pm_message_t, not a u32

commit 031ec77bf67e4bda994ef8ceba267be3295ffdb7

Author: Karol Kozimor <sziwan-DETuoxkZsSqrDJvtcaxF/[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] acpi_remove_notify_handler() on video driver unload

The video driver doesn't properly remove all the notify handlers on module unload. This has a side effect of subdevices failing to register on module reload, but sudden death looms if the handlers trigger after the module is unloaded.

commit e92310a930462c6e1611f35453f57357c42bde14

Author: Andrew Morton <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] fix IA64 build warning

commit 53de49f52e305e96143375d1741f15acff7bf34b

Author: Andrew Morton <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] CONFIG_ACPI=n build fix

commit 14454a1b3ff8d1d15fbe7cc77f27373777184ddf

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] iosapic_register_intr() now returns error instead of panic error condition is passed along by acpi_register_gsi().

commit 58e0276245f6c60119f0384e7eca576b08aa89e2

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] 8250 driver now checks for acpi_register_gsi() errors

commit 71df30f8e3e97fde573c41df063c2d66c1ad01b0

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] PNPACPI driver now checks for acpi_register_gsi() errors

commit a9bd53bc49ee8984633e57c1d9d45111c58e9457

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] HPET driver now checks for acpi_register_gsi() errors

commit 349f0d5640c18db09a646f9da51a97f1da908660

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] acpi_pci_enable_irq() now checks for acpi_register_gsi()
errors

commit 1f3a6a15771ed70d3b2581663dcc6b9bc134baa5

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] acpi_register_gsi() can return error

Current acpi_register_gsi() function has no way to indicate errors
to its
callers even though acpi_register_gsi() can fail to register gsi
because of
some reasons (out of memory, lack of interrupt vectors, incorrect
BIOS, and so
on). As a result, caller of acpi_register_gsi() cannot handle the
case that
acpi_register_gsi() fails. I think failure of acpi_register_gsi()
should be
handled properly.

This series of patches changes acpi_register_gsi() to return
negative value on
error, and also changes callers of acpi_register_gsi() to handle
failure of
acpi_register_gsi().

This patch changes the type of return value of acpi_register_gsi()
from
"unsigned int" to "int" to indicate an error. If
acpi_register_gsi() fails to
register gsi, it returns negative value.

commit bd6dbdf3c7b9784fbf5d8500e427a954e27a976a
Merge: aefdcfa6c243702f1d35d23515d0e5eeca225c97
d4ab025b73a2d10548e17765eb76f3b7351dc611

Author: Len Brown <[email protected]>
Date:   Thu Aug 4 00:17:42 2005 -0400

When a merge does not work automatically, git prevents commit from running until a change has been made in the destination. In this instance the desired result was to choose the destination version of the file and ignore the source version, but git would not allow that.

Here I added a blank line to let git commit think I resolved a merge conflict.

commit d4ab025b73a2d10548e17765eb76f3b7351dc611

Author: Len Brown <[email protected]>
Date:   Wed Aug 3 23:20:58 2005 -0400

[ACPI] delete Warning: Encountered executable code at module level,
[AE_NOT_CONFIGURED]

http://bugzilla.kernel.org/show_bug.cgi?id=4923

commit aefdcfa6c243702f1d35d23515d0e5eeca225c97
Merge: 0c9938cc75057c0fca1af55a55dcfc2842436695
79cda7d0e1c8629996242c036d6fe0466038d8ba

Author: Len Brown <[email protected]>
Date:   Wed Aug 3 18:12:57 2005 -0400

Merge ../to-linus

commit 79cda7d0e1c8629996242c036d6fe0466038d8ba

Author: Luming Yu <[email protected]>
Date:   Wed Aug 3 18:07:59 2005 -0400

[ACPI] CONFIG_ACPI_HOTKEY is now "n" by default For 2.6.12 behaviour, this (EXPERIMENTAL) driver should not be built.

Update the driver source with latest from Luming.

commit b34a8030eeab4d59dcdd86de38f6927b9edd441f

Author: Alexey Starikovskiy <[email protected]>
Date:   Wed Aug 3 17:55:21 2005 -0400

[ACPI] restore /proc/acpi/button/ (ala 2.6.12)

Signed-off-by Alexey Starikovskiy <[email protected]> Signed-off-by Len Brown <[email protected]>

commit 7b15f5e7bb180ac7bfb8926dbbd8835fecc07fad

Author: Luming Yu <[email protected]>
Date:   Wed Aug 3 17:38:04 2005 -0400

[ACPI] revert Embedded Controller to polling-mode by default (ala
2.6.12)
Burst mode isn't ready for prime time,
but can be enabled for test via "ec_burst=1"

commit ecc21ebe603af31f172c43b8b261df79040790ef

Author: David Shaohua Li <[email protected]>
Date:   Wed Aug 3 11:00:11 2005 -0400

[ACPI] PCI interrupt link suspend/resume - revert to 2.6.12
behaviour

This patch disables the PCI Interrupt Link refernece counts, which should not co-exist with the 2.6.12 irq_router.resume method or else a double acpi_pci_link_set() could result on resume.

commit 3d35600a9de8e2816d0e3726f64b7271af6fdda4

Author: Len Brown <[email protected]>
Date:   Wed Aug 3 00:22:52 2005 -0400

[ACPI] fix 64-bit build warning in processor_idle.c

commit 0c9938cc75057c0fca1af55a55dcfc2842436695

Author: Robert Moore <[email protected]>
Date:   Fri Jul 29 15:15:00 2005 -0700

[ACPI] ACPICA 20050729 from Bob Moore

Implemented support to ignore an attempt to install/load a particular ACPI table more than once. Apparently there exists BIOS code that repeatedly attempts to load the same SSDT upon certain events. Thanks to Venkatesh Pallipadi.

Restructured the main interface to the AML parser in order to correctly handle all exceptional conditions. This will prevent leakage of the OwnerId resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some machines. Thanks to Alexey Starikovskiy.

Support for "module level code" has been disabled in this version due to a number of issues that have appeared on various machines. The support can be enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem compilation. When the issues are fully resolved, the code will be enabled by default again.

Modified the internal functions for debug print support to define the FunctionName parameter as a (const char *) for compatibility with compiler built-in macros such as __FUNCTION__, etc.

Linted the entire ACPICA source tree for both 32-bit and 64-bit.

commit dd8f39bbf5154cdbfd698fc70c66faba33eafa44
Merge: c2c2e03409f5f5405e79d9d9156202b75cb5b35b
87bec66b9691522414862dd8d41e430b063735ef

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 23:11:11 2005 -0400

Merge ../to-linus

commit 87bec66b9691522414862dd8d41e430b063735ef

Author: David Shaohua Li <[email protected]>
Date:   Wed Jul 27 23:02:00 2005 -0400

[ACPI] suspend/resume ACPI PCI Interrupt Links

Add reference count and disable ACPI PCI Interrupt Link when no device still uses it.

Warn when drivers have not released Link at suspend time.

http://bugzilla.kernel.org/show_bug.cgi?id=3469

commit 68ac767686fd72f37a25bb4895fb4ab0080ba755

Author: Venkatesh Pallipadi <[email protected]>
Date:   Mon Apr 25 14:38:00 2005 -0400

[ACPI] delete boot-time printk()s from processor_idle.c

http://bugzilla.kernel.org/show_bug.cgi?id=4401

commit 90158b83204842c0108d744326868d91cc9c4dfd

Author: Rafael J. Wysocki <[email protected]>
Date:   Sun Jul 24 14:22:00 2005 -0400

[ACPI] fix resume issues on Asus L5D

http://bugzilla.kernel.org/show_bug.cgi?id=4416

commit 4b31e77455b868b43e665edceb111c9a330c8e0f

Author: Dominik Brodowski <[email protected]>
Date:   Wed May 18 13:49:00 2005 -0400

[ACPI] Always set P-state on initialization

Otherwise a platform that supports ACPI based cpufreq and boots up at lowest possible speed could stay there forever. This because the governor may request max speed, but the code doesn't update if there is no change in speed, and it assumed the initial state of max speed.

http://bugzilla.kernel.org/show_bug.cgi?id=4634

commit 45bea1555f5bf0cd5871b208b4b02d188f106861

Author: Luming Yu <[email protected]>
Date:   Sat Jul 23 04:08:00 2005 -0400

[ACPI] Add "ec_polling" boot option

EC burst mode benefits many machines, some of
them significantly. However, our current
implementation fails on some machines such
as Rafael's Asus L5D.

This patch restores the alternative EC polling code, which can be enabled at boot time via "ec_polling"

http://bugzilla.kernel.org/show_bug.cgi?id=4665

commit 335f16be5d917334f56ec9ef7ecf983476ac0563

Author: David Shaohua Li <[email protected]>
Date:   Wed Jun 22 18:37:00 2005 -0400

[ACPI] address boot-freeze with updated DMI blacklist for c-states

http://bugzilla.kernel.org/show_bug.cgi?id=4763

commit c2c2e03409f5f5405e79d9d9156202b75cb5b35b

Author: Iacopo Spalletti <[email protected]>
Date:   Sun Jul 17 02:06:00 2005 -0400

[ACPI] update hotkey documentation

http://bugzilla.kernel.org/show_bug.cgi?id=4903

commit 0b6b2f08c24a65535cb18893ca27516389c5fc0f

Author: Venkatesh Pallipadi <[email protected]>
Date:   Fri Jul 29 16:00:13 2005 -0400

[ACPI] Fix memset arguments in acpi processor_idle.c

http://bugzilla.kernel.org/show_bug.cgi?id=4954

commit 4a7164023959040e687e51663dee67cff4d2b770

Author: Venkatesh Pallipadi <[email protected]>
Date:   Fri Jul 29 15:51:36 2005 -0400

[ACPI] Fix the regression with c1_default_handler on some systems where C-states come from FADT.

Thanks to Kevin Radloff for identifying the issue and isolating it to exact line of code that is causing the issue.

commit 670fac79b9dcf16549a4c1f4c0b73c457e53bd7e

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 00:16:54 2005 -0400

[ACPI] disable module level AML code (for now)

It is important that we support module level code -- BIOS's implement it. But this implementation needs more testing.

commit 5d75ab45594c78d2d976a3248ea1ca281c9d7056

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 00:03:55 2005 -0400

[ACPI] handle const char * __FUNCTION__ in debug code build warning: discards qualifiers from pointer target type when mixing "const char *" and "char *"

We should probably update the routines to expect const, but easier for now to shut up the warning with 1 cast.

commit feee9570753645f9f6888937ff9aee426b7afe55

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 00:01:00 2005 -0400

[ACPI] comment out prototypes for new unused debug routines

commit 668d74c04c16bb69de564e25e85dd94eeb0175d9

Author: Luming Yu <[email protected]>
Date:   Sat Jul 23 00:26:33 2005 -0400

ACPI: delete unnecessary EC console messages

http://bugzilla.kernel.org/show_bug.cgi?id=4534

commit f9f4601f331aa1226d7a798a01950efbb388f07f

Author: Robert Moore <[email protected]>
Date:   Fri Jul 8 00:00:00 2005 -0400

ACPICA 20050708 from Bob Moore <[email protected]>

The use of the CPU stack in the debug version of the subsystem has been considerably reduced. Previously, a debug structure was declared in every function that used the debug macros. This structure has been removed in favor of declaring the individual elements as parameters to the debug functions. This reduces the cumulative stack use during nested execution of ACPI function calls at the cost of a small increase in the code size of the debug version of the subsystem. With assistance from Alexey Starikovskiy and Len Brown.

Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent headers to define a macro that will return the current function name at runtime (such as __FUNCTION__ or _func_, etc.) The function name is used by the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the compiler-dependent header, the function name is saved on the CPU stack (one pointer per function.) This mechanism is used because apparently there exists no standard ANSI-C defined macro that that returns the function name.

Alexey Starikovskiy redesigned and reimplemented the "Owner ID" mechanism used to track namespace objects created/deleted by ACPI tables and control method execution. A bitmap is now used to allocate and free the IDs, thus solving the wraparound problem present in the previous implementation. The size of the namespace node descriptor was reduced by 2 bytes as a result.

Removed the UINT32_BIT and UINT16_BIT types that were used for the bitfield flag definitions within the headers for the predefined ACPI tables. These have been replaced by UINT8_BIT in order to increase the code portability of the subsystem. If the use of UINT8 remains a problem, we may be forced to eliminate bitfields entirely because of a lack of portability.

Alexey Starikovksiy enhanced the performance of acpi_ut_update_object_reference. This is a frequently used function and this improvement increases the performance of the entire subsystem.

Alexey Starikovskiy fixed several possible memory leaks and the inverse - premature object deletion.

commit 4c3ffbd79529b680b3c3ef2b6f42f0c89c694ec5

Author: David Shaohua Li <[email protected]>
Date:   Thu Jul 14 00:00:00 2005 -0400

[ACPI] revert R40 workaround

Should not be necessary...

http://bugme.osdl.org/show_bug.cgi?id=1038

commit 73459f73e5d1602c59ebec114fc45185521353c1

Author: Robert Moore <[email protected]>
Date:   Fri Jun 24 00:00:00 2005 -0400

ACPICA 20050617-0624 from Bob Moore <[email protected]>

ACPICA 20050617:

Moved the object cache operations into the OS interface layer (OSL) to allow the host OS to handle these operations if desired (for example, the Linux OSL will invoke the slab allocator). This support is optional; the compile time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache code in the ACPI CA core. The new OSL interfaces are shown below. See utalloc.c for an example implementation, and acpiosxf.h for the exact interface definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object

Modified the interfaces to acpi_os_acquire_lock and acpi_os_release_lock to return and restore a flags parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler or not) is no longer passed to these interfaces. If necessary, the OSL must determine this state by itself, a simple and fast operation. Thanks to Alexey Starikovskiy.

Fixed a problem in the ACPI table handling where a valid XSDT was assumed present if the revision of the RSDP was 2 or greater. According to the ACPI specification, the XSDT is optional in all cases, and the table manager therefore now checks for both an RSDP >=2 and a valid XSDT pointer. Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain only the RSDT.

Fixed an interpreter problem with the Mid() operator in the case of an input string where the resulting output string is of zero length. It now correctly returns a valid, null terminated string object instead of a string object with a null pointer.

Fixed a problem with the control method argument handling to allow a store to an Arg object that already contains an object of type Device. The Device object is now correctly overwritten. Previously, an error was returned.

ACPICA 20050624:

Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for the host-defined cache object. This allows the OSL implementation to define and type this object in any manner desired, simplifying the OSL implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for Linux, and should be defined in the OS-specific header file for other operating systems as required.

Changed the interface to AcpiOsAcquireObject to directly return the requested object as the function return (instead of ACPI_STATUS.) This change was made for performance reasons, since this is the purpose of the interface in the first place. acpi_os_acquire_object is now similar to the acpi_os_allocate interface. Thanks to Alexey Starikovskiy.

Modified the initialization sequence in acpi_initialize_subsystem to call the OSL interface acpi_osl_initialize first, before any local initialization. This change was required because the global initialization now calls OSL interfaces.

Restructured the code base to split some files because of size and/or because the code logically belonged in a separate file. New files are listed below.

utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */

commit 88ac00f5a841dcfc5c682000f4a6add0add8caac

Author: Robert Moore <[email protected]>
Date:   Thu May 26 00:00:00 2005 -0400

ACPICA 20050526 from Bob Moore <[email protected]>

Implemented support to execute Type 1 and Type 2 AML opcodes appearing at the module level (not within a control method.) These opcodes are executed exactly once at the time the table is loaded. This type of code was legal up until the release of ACPI 2.0B (2002) and is now supported within ACPI CA in order to provide backwards compatibility with earlier BIOS implementations. This eliminates the "Encountered executable code at module level" warning that was previously generated upon detection of such code.

Fixed a problem in the interpreter where an AE_NOT_FOUND exception could inadvertently be generated during the lookup of namespace objects in the second pass parse of ACPI tables and control methods. It appears that this problem could occur during the resolution of forward references to namespace objects.

Added the ACPI_MUTEX_DEBUG #ifdef to the acpi_ut_release_mutex function, corresponding to the same the deadlock detection debug code to be compiled out in the normal case, improving mutex performance (and overall subsystem performance) considerably. As suggested by Alexey Starikovskiy.

Implemented a handful of miscellaneous fixes for possible memory leaks on error conditions and error handling control paths. These fixes were suggested by FreeBSD and the Coverity Prevent source code analysis tool.

Added a check for a null RSDT pointer in acpi_get_firmware_table (tbxfroot.c) to prevent a fault in this error case.

Signed-off-by Len Brown <[email protected]>

commit 6f42ccf2fc50ecee8ea170040627f268430c1648

Author: Robert Moore <[email protected]>
Date:   Fri May 13 00:00:00 2005 -0400

ACPICA from Bob Moore <[email protected]>

Implemented support for PCI Express root bridges -- added support for device PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. acpi_ev_pci_config_region_setup().

The interpreter now automatically truncates incoming 64-bit constants to 32 bits if currently executing out of a 32-bit ACPI table (Revision < 2). This also affects the iASL compiler constant folding. (Note: as per below, the iASL compiler no longer allows 64-bit constants within 32-bit tables.)

Fixed a problem where string and buffer objects with "static" pointers (pointers to initialization data within an ACPI table) were not handled consistently. The internal object copy operation now always copies the data to a newly allocated buffer, regardless of whether the source object is static or not.

Fixed a problem with the FromBCD operator where an implicit result conversion was improperly performed while storing the result to the target operand. Since this is an "explicit conversion" operator, the implicit conversion should never be performed on the output.

Fixed a problem with the CopyObject operator where a copy to an existing named object did not always completely overwrite the existing object stored at name. Specifically, a buffer-to-buffer copy did not delete the existing buffer.

Replaced "interrupt_level" with "interrupt_number" in all GPE interfaces and structs for consistency.

commit d8683a0cb5d09cb7f19feefa708424a84577e68f

Author: Len Brown <[email protected]>
Date:   Sun Jul 3 16:42:23 2005 -0400

[ACPI] increase MAX_IO_APICS to 64 on i386

x86_64 was already 128

http://bugzilla.kernel.org/show_bug.cgi?id=3754

commit 02df8b9385c21fdba165bd380f60eca1d3b0578b

Author: Venkatesh Pallipadi <[email protected]>
Date:   Fri Apr 15 15:07:10 2005 -0400

[ACPI] enable C2 and C3 idle power states on SMP
http://bugzilla.kernel.org/show_bug.cgi?id=4401

commit 17e9c78a75ce9eacd61200f9e1f1924012e28846

Author: Luming Yu <[email protected]>
Date:   Fri Apr 22 23:07:10 2005 -0400

[ACPI] EC GPE-disabled issue
http://bugzilla.kernel.org/show_bug.cgi?id=3851

commit a27ac38efd6dc6dccebfc9bcc475ab4aa5fc4a56

Author: Len Brown <[email protected]>
Date:   Fri Apr 5 00:07:45 2019 -0500

[ACPI] fix merge error that broke CONFIG_ACPI_DEBUG=y build

commit 590275ce72c48fdbddea057bc9ee379c1fd851ef

Author: Jesse Barnes <jbarnes-sJ/[email protected]>
Date:   Mon Apr 18 23:52:17 2005 -0400

[ACPI] cleanup: delete !IA64_SGI_SN from acpi/Kconfig

commit 6c4fa56033c11ad5c5929bf3edd1505d3d8a8c0b

Author: Venkatesh Pallipadi <[email protected]>
Date:   Mon Apr 18 23:06:47 2005 -0400

[ACPI] fix C1 patch for IA64
http://bugzilla.kernel.org/show_bug.cgi?id=4233

commit ef7b06cd905424aea7c31f27fef622e84e75e650

Author: David Shaohua Li <[email protected]>
Date:   Mon Apr 18 22:59:23 2005 -0400

[ACPI] quiet dmesg related to ACPI PM of PCI devices

DBG("No ACPI bus support for %s\n", dev->bus_id);
http://bugzilla.kernel.org/show_bug.cgi?id=4277

commit 44f6c01242da4e162f28d8e1216a8c7a91174605

Author: Robert Moore <[email protected]>
Date:   Mon Apr 18 22:49:35 2005 -0400

ACPICA 20050408 from Bob Moore

Fixed three cases in the interpreter where an "index" argument to an ASL function was still (internally) 32 bits instead of the required 64 bits. This was the Index argument to the Index, Mid, and Match operators.

The "strupr" function is now permanently local (acpi_ut_strupr), since this is not a POSIX-defined function and not present in most kernel-level C libraries. References to the C library strupr function have been removed from the headers.

Completed the deployment of static functions/prototypes. All prototypes with the static attribute have been moved from the headers to the owning C file.

ACPICA 20050329 from Bob Moore

An error is now generated if an attempt is made to create a Buffer Field of length zero (A CreateField with a length operand of zero.)

The interpreter now issues a warning whenever executable code at the module level is detected during ACPI table load. This will give some idea of the prevalence of this type of code.

Implemented support for references to named objects (other than control methods) within package objects.

Enhanced package object output for the debug object. Package objects are now completely dumped, showing all elements.

Enhanced miscellaneous object output for the debug object. Any object can now be written to the debug object (for example, a device object can be written, and the type of the object will be displayed.)

The "static" qualifier has been added to all local functions across the core subsystem.

The number of "long" lines (> 80 chars) within the source has been significantly reduced, by about 1/3.

Cleaned up all header files to ensure that all CA/iASL functions are prototyped (even static functions) and the formatting is consistent.

Two new header files have been added, acopcode.h and acnames.h.

Removed several obsolete functions that were no longer used.

commit ebb6e1a6122fd6b7c96470cfd4ce0f04150e5084

Author: Len Brown <[email protected]>
Date:   Thu Apr 14 23:12:56 2005 -0400

[ACPI] Deprecate /proc/acpi/sleep in favor of /sys/power/state

commit 9d9437759eb6fdb68f7b82cbee20b0fb711d9f0d

Author: Nickolai Zeldovich <kolya-DPNOqEs/[email protected]>
Date:   Fri Apr 8 23:37:34 2005 -0400

[ACPI] S3 resume -- use lgdtl, not lgdt

From: Nickolai Zeldovich <kolya-DPNOqEs/[email protected]>

commit c9c3e457de24cca2ca688fa397d93a241f472048

Author: David Shaohua Li <[email protected]>
Date:   Fri Apr 1 00:07:31 2005 -0500

[ACPI] PNPACPI vs sound IRQ

http://bugme.osdl.org/show_bug.cgi?id=4016

commit acf05f4b7f558051ea0028e8e617144123650272

Author: Venkatesh Pallipadi <[email protected]>
Date:   Thu Mar 31 23:23:15 2005 -0500

[ACPI] update /proc/acpi/processor/*/power even if only C1 support

commit 55e59c511cea3c6c721971467c707e9955922bc2

Author: Ashok Raj <[email protected]>
Date:   Thu Mar 31 22:51:10 2005 -0500

[ACPI] Evaluate CPEI Processor Override flag

ACPI 3.0 added a Correctable Platform Error Interrupt (CPEI) Processor Overide flag to MADT.Platform_Interrupt_Source. Record the processor that was provided as hint from ACPI.

commit 6940fabaa35b893163b7043d0d1dc5d715f9e1ca

Author: Keiichiro Tokunaga <[email protected]>
Date:   Wed Mar 30 23:15:47 2005 -0500

[ACPI] hotplug Processor consideration in acpi_bus_add()

commit 8de7a63b69a263b7549599be882d7aa15397f8b3

Author: Andrew Morton <[email protected]>
Date:   Wed Mar 30 22:53:30 2005 -0500

[ACPI] fix debug-mode build warning in acpi/hotkey.c

drivers/acpi/hotkey.c: In function `create_polling_proc':
drivers/acpi/hotkey.c:334: warning: ISO C90 forbids mixed
declarations and code

commit d1dd0c23916bd781de27bc5ec1c295064e9ce9cc

Author: Paulo Marques <pmarques-TSnNRl9vlf1Wk0Htik3J/[email protected]>
Date:   Wed Mar 30 22:39:49 2005 -0500

[ACPI] fix kmalloc size bug in acpi/video.c

acpi_video_device_find_cap() used &p instead of *p when calculating storage size, thus allocating only 4 or 8 bytes instead of 12...

Also, kfree(NULL) is legal, so remove some unneeded checks.

From: Paulo Marques <pmarques-TSnNRl9vlf1Wk0Htik3J/[email protected]>

commit 7334571f724df7a19f48cc974e991e00afde1e2f

Author: Adrian Bunk <[email protected]>
Date:   Wed Mar 30 22:31:35 2005 -0500

[ACPI] fix potential NULL dereference in acpi/video.c

commit f4224153098c1103db592b28f304beeb9c02481b

Author: Panagiotis Issaris <takis-8nu/[email protected]>
Date:   Wed Mar 30 22:15:36 2005 -0500

[ACPI] check for kmalloc failure in toshiba_acpi.c

commit 83ea7445221651dc43cf8d22f81089e0cbccf22b

Author: Andrew Morton <[email protected]>
Date:   Wed Mar 30 22:12:13 2005 -0500

[ACPI] fix build warning

commit f165b10f4a9aac7fee9b11a125de20a1712be128

Author: Greg Kroah-Hartman <[email protected]>
Date:   Wed Mar 30 21:23:19 2005 -0500

cleanup: remove unnecessary initializer on static pointers

commit b008b8d7092053fc1f036cfc54dc11740cc424ed

Author: Matthieu Castet <[email protected]>
Date:   Fri Mar 25 12:03:15 2005 -0500

[ACPI] PNPACPI parse error

http://bugzilla.kernel.org/show_bug.cgi?id=3912

commit a406d9e63e1d7088aad22565449de2e109300e5c

Author: Len Brown <[email protected]>
Date:   Wed Mar 23 16:16:03 2005 -0500

[ACPI] gut acpi_pci_choose_state() to avoid conflict with pending pm_message_t re-definition.

commit fa9cd547e097df4966b8bd5c94aeed953e32b14d

Author: Luming Yu <[email protected]>
Date:   Sat Mar 19 01:54:47 2005 -0500

[ACPI] fix EC access width
http://bugzilla.kernel.org/show_bug.cgi?id=4346

Written-by David Shaohua Li and Luming Yu

commit 451566f45a2e6cd10ba56e7220a9dd84ba3ef550

Author: Dmitry Torokhov <dtor-JGs/[email protected]>
Date:   Sat Mar 19 01:10:05 2005 -0500

[ACPI] Enable EC Burst Mode

Fixes several Embedded Controller issues, including button failure and battery status AE_TIME failure.

http://bugzilla.kernel.org/show_bug.cgi?id=3851

Based on patch by: Andi Kleen <[email protected]>

commit b913100d7304ea9596d8d85ab5f3ae04bd2b0ddb

Author: David Shaohua Li <[email protected]>
Date:   Sat Mar 19 00:16:18 2005 -0500

[ACPI] pci_set_power_state() now calls
platform_pci_set_power_state()
and ACPI can answer

http://bugzilla.kernel.org/show_bug.cgi?id=4277

commit 0f64474b8f7f1f7f3af5b24ef997baa35f923509

Author: David Shaohua Li <[email protected]>
Date:   Sat Mar 19 00:15:48 2005 -0500

[ACPI] PCI can now get suspend state from firmware

pci_choose_state() can now call
platform_pci_choose_state()
and ACPI can answer

http://bugzilla.kernel.org/show_bug.cgi?id=4277

commit 84df749f364209c9623304b7a94ddb954dc343bb

Author: David Shaohua Li <[email protected]>
Date:   Fri Mar 18 18:53:36 2005 -0500

[ACPI] Bind ACPI and PCI devices

http://bugzilla.kernel.org/show_bug.cgi?id=4277

commit 4e10d12a3d88c88fba3258809aa42d14fd8cf1d1

Author: David Shaohua Li <[email protected]>
Date:   Fri Mar 18 18:45:35 2005 -0500

[ACPI] Bind PCI devices with ACPI devices

Implement the framework for binding physical devices with ACPI devices. A physical bus like PCI bus should create a 'acpi_bus_type', with:

.find_device:
For device which has parent such as normal PCI devices.

.find_bridge:
It's for special devices, such as PCI root bridge
or IDE controller. Such devices generally haven't a parent or ->bus. We use the special method to get an ACPI handle.

Uses new field in struct device: firmware_data

http://bugzilla.kernel.org/show_bug.cgi?id=4277

commit fb9802fa59b196d7f90bb3c2e33c555c6bdc4c54

Author: Luming Yu <[email protected]>
Date:   Fri Mar 18 18:03:45 2005 -0500

[ACPI] generic Hot Key support

See Documentation/acpi-hotkey.txt

Use cmdline "acpi_specific_hotkey" to enable
legacy platform specific drivers.

http://bugzilla.kernel.org/show_bug.cgi?id=3887

commit d58da590451cf6ae75379a2ebf96d3afb8d810d8

Author: David Shaohua Li <[email protected]>
Date:   Fri Mar 18 16:43:54 2005 -0500

[ACPI] S3 Suspend to RAM: fix driver suspend/resume methods

Drivers should do this:

.suspend()
pci_disable_device()

.resume()
pci_enable_device()

http://bugzilla.kernel.org/show_bug.cgi?id=3469

commit 362b06bb70b5a5779b2e852e0f2bdb437061106e

Author: David Shaohua Li <[email protected]>
Date:   Fri Mar 18 16:30:29 2005 -0500

[ACPI] S3 Suspend to RAM: interrupt resume fix

Delete PCI Interrupt Link Device .resume method -- it is the device driver's job to request interrupts, not the Link's job to remember what the devices want.

This addresses the issue of attempting to run the ACPI interpreter too early in resume, when interrupts are still disabled.

http://bugzilla.kernel.org/show_bug.cgi?id=3469

commit 5ae947ecc9c1c23834201e5321684a5cb68bdd3f

Author: David Shaohua Li <[email protected]>
Date:   Fri Mar 18 16:27:13 2005 -0500

[ACPI] Suspend to RAM fix

Free some RAM before entering S3 so that upon resume we can be sure early allocations will succeed.

http://bugzilla.kernel.org/show_bug.cgi?id=3469

commit e2a5b420f716cd1a46674b1a90389612eced916f

Author: Alexey Starikovskiy <[email protected]>
Date:   Fri Mar 18 16:20:46 2005 -0500

[ACPI] ACPI poweroff fix

Register an "acpi" system device to be notified of shutdown
preparation.
This depends on CONFIG_PM

http://bugzilla.kernel.org/show_bug.cgi?id=4041

commit be91492ca871e58f61b517cfba541095bb60001c

Author: Len Brown <[email protected]>
Date:   Fri Mar 18 16:00:29 2005 -0500

[ACPI] CONFIG_ACPI now depends on CONFIG_PM

commit bd4698dad3023ae137b366c736e29ca6eaf3b9f7

Author: Alexey Starikovskiy <[email protected]>
Date:   Fri Mar 18 15:35:22 2005 -0500

[ACPI] Allow simultaneous Fixed Feature and Control Method buttons delete /proc/acpi/button

http://bugzilla.kernel.org/show_bug.cgi?id=1920

commit 45b1b196677b8009ab6cdc4b656265f1d7015c1b

Author: Keiichiro Tokunaga <[email protected]>
Date:   Wed Mar 2 00:00:00 2005 -0500

[ACPI] update CONFIG_ACPI_CONTAINER Kconfig help

-------------------------------------------------------
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

author
#1 lore raw

latest ACPI patch based on 2.6.13

The Latest ACPI patch based on 2.6.13 is available here:

http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.12/acpi-20050729-2.6.13-rc6.patch

These patches are exported to-akpm for inclusion in -mm with the intent to integrate into 2.6.14.

http://ftp.kernel.org/pub/scm/linux/kernel/git/lenb/to-akpm.git/

Please give it a go and speak up and file bugs if you run into any issues.

Yes, I've Lindented all the ACPI files.
No, there really is never a good time to do this, but the "quite period" after 2.6.13 and before 2.6.14 seemed as good as any, and I'd rather have a program handle style so that developers don't get sidetracked. Afer this flag day, I ask you to Lindent the ACPI files you touch before generating patches. I'll probably automatically Lindent files after patches are applied to maintain the invarient that ACPI is Lindent clean.

Yes, this will disturb patches currently in flight, and I'll help work through that.

Note that if you've sent me a patch in the past and my travel, my vacation, or my hard drive crash ate it, this would be a good time to nag me about it.

thanks,
-Len
------
commit c202ac9fbdb64145f034be266d6ee88c98b40aa8
Merge: 4be44fcd3bf648b782f4460fd06dfae6c42ded4b
c306895167c8384b88bc02945a0d226a04218fa5

Author: Len Brown <[email protected]>
Date:   Fri Aug 5 00:49:06 2005 -0400

Merge ../to-linus

commit 4be44fcd3bf648b782f4460fd06dfae6c42ded4b

Author: Len Brown <[email protected]>
Date:   Fri Aug 5 00:44:28 2005 -0400

[ACPI] Lindent all ACPI files

commit c65ade4dc8b486e8c8b9b0a6399789a5428e2039

Author: Pavel Machek <[email protected]>
Date:   Fri Aug 5 00:37:45 2005 -0400

[ACPI] whitespace

commit 1d492eb41371d9a5145651e8eb64bea1042a4057
Merge: 5d2a22079c825669d91a3a200332f1053b4b61b0
cbfc1bae55bbd053308ef0fa6b6448cd1ddf3e67

Author: Len Brown <[email protected]>
Date:   Fri Aug 5 00:31:42 2005 -0400

[ACPI] Merge acpi-2.6.12 branch into 2.6.13-rc3

commit cbfc1bae55bbd053308ef0fa6b6448cd1ddf3e67

Author: Adrian Bunk <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] ACPI_HOTPLUG_CPU Kconfig dependency update

prevent:

HOTPLUG_CPU=y
ACPI_PROCESSOR=y
ACPI_HOTPLUG_CPU=n

commit 4fdcf0804598f44b0f48da9e5281af48a4db393f

Author: Andrew Morton <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] lint: irqrouter_suspend() takes a pm_message_t, not a u32

commit 031ec77bf67e4bda994ef8ceba267be3295ffdb7

Author: Karol Kozimor <sziwan-DETuoxkZsSqrDJvtcaxF/[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] acpi_remove_notify_handler() on video driver unload

The video driver doesn't properly remove all the notify handlers on module unload. This has a side effect of subdevices failing to register on module reload, but sudden death looms if the handlers trigger after the module is unloaded.

commit e92310a930462c6e1611f35453f57357c42bde14

Author: Andrew Morton <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] fix IA64 build warning

commit 53de49f52e305e96143375d1741f15acff7bf34b

Author: Andrew Morton <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] CONFIG_ACPI=n build fix

commit 14454a1b3ff8d1d15fbe7cc77f27373777184ddf

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] iosapic_register_intr() now returns error instead of panic error condition is passed along by acpi_register_gsi().

commit 58e0276245f6c60119f0384e7eca576b08aa89e2

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] 8250 driver now checks for acpi_register_gsi() errors

commit 71df30f8e3e97fde573c41df063c2d66c1ad01b0

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] PNPACPI driver now checks for acpi_register_gsi() errors

commit a9bd53bc49ee8984633e57c1d9d45111c58e9457

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] HPET driver now checks for acpi_register_gsi() errors

commit 349f0d5640c18db09a646f9da51a97f1da908660

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] acpi_pci_enable_irq() now checks for acpi_register_gsi()
errors

commit 1f3a6a15771ed70d3b2581663dcc6b9bc134baa5

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] acpi_register_gsi() can return error

Current acpi_register_gsi() function has no way to indicate errors
to its
callers even though acpi_register_gsi() can fail to register gsi
because of
some reasons (out of memory, lack of interrupt vectors, incorrect
BIOS, and so
on). As a result, caller of acpi_register_gsi() cannot handle the
case that
acpi_register_gsi() fails. I think failure of acpi_register_gsi()
should be
handled properly.

This series of patches changes acpi_register_gsi() to return
negative value on
error, and also changes callers of acpi_register_gsi() to handle
failure of
acpi_register_gsi().

This patch changes the type of return value of acpi_register_gsi()
from
"unsigned int" to "int" to indicate an error. If
acpi_register_gsi() fails to
register gsi, it returns negative value.

commit 5d2a22079c825669d91a3a200332f1053b4b61b0
Merge: 1c5ad84516ae7ea4ec868436a910a6bd8d20215a
bd6dbdf3c7b9784fbf5d8500e427a954e27a976a

Author: Len Brown <[email protected]>
Date:   Thu Aug 4 18:09:09 2005 -0400
    /home/lenb/src/to-akpm branch 'acpi-2.6.12'

commit bd6dbdf3c7b9784fbf5d8500e427a954e27a976a
Merge: aefdcfa6c243702f1d35d23515d0e5eeca225c97
d4ab025b73a2d10548e17765eb76f3b7351dc611

Author: Len Brown <[email protected]>
Date:   Thu Aug 4 00:17:42 2005 -0400

When a merge does not work automatically, git prevents commit from running until a change has been made in the destination. In this instance the desired result was to choose the destination version of the file and ignore the source version, but git would not allow that.

Here I added a blank line to let git commit think I resolved a merge conflict.

commit aefdcfa6c243702f1d35d23515d0e5eeca225c97
Merge: 0c9938cc75057c0fca1af55a55dcfc2842436695
79cda7d0e1c8629996242c036d6fe0466038d8ba

Author: Len Brown <[email protected]>
Date:   Wed Aug 3 18:12:57 2005 -0400

Merge ../to-linus

commit 0c9938cc75057c0fca1af55a55dcfc2842436695

Author: Robert Moore <[email protected]>
Date:   Fri Jul 29 15:15:00 2005 -0700

[ACPI] ACPICA 20050729 from Bob Moore

Implemented support to ignore an attempt to install/load a particular ACPI table more than once. Apparently there exists BIOS code that repeatedly attempts to load the same SSDT upon certain events. Thanks to Venkatesh Pallipadi.

Restructured the main interface to the AML parser in order to correctly handle all exceptional conditions. This will prevent leakage of the OwnerId resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some machines. Thanks to Alexey Starikovskiy.

Support for "module level code" has been disabled in this version due to a number of issues that have appeared on various machines. The support can be enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem compilation. When the issues are fully resolved, the code will be enabled by default again.

Modified the internal functions for debug print support to define the FunctionName parameter as a (const char *) for compatibility with compiler built-in macros such as __FUNCTION__, etc.

Linted the entire ACPICA source tree for both 32-bit and 64-bit.

commit dd8f39bbf5154cdbfd698fc70c66faba33eafa44
Merge: c2c2e03409f5f5405e79d9d9156202b75cb5b35b
87bec66b9691522414862dd8d41e430b063735ef

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 23:11:11 2005 -0400

Merge ../to-linus

commit c2c2e03409f5f5405e79d9d9156202b75cb5b35b

Author: Iacopo Spalletti <[email protected]>
Date:   Sun Jul 17 02:06:00 2005 -0400

[ACPI] update hotkey documentation

http://bugzilla.kernel.org/show_bug.cgi?id=4903

commit 670fac79b9dcf16549a4c1f4c0b73c457e53bd7e

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 00:16:54 2005 -0400

[ACPI] disable module level AML code (for now)

It is important that we support module level code -- BIOS's implement it. But this implementation needs more testing.

commit 5d75ab45594c78d2d976a3248ea1ca281c9d7056

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 00:03:55 2005 -0400

[ACPI] handle const char * __FUNCTION__ in debug code build warning: discards qualifiers from pointer target type when mixing "const char *" and "char *"

We should probably update the routines to expect const, but easier for now to shut up the warning with 1 cast.

commit feee9570753645f9f6888937ff9aee426b7afe55

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 00:01:00 2005 -0400

[ACPI] comment out prototypes for new unused debug routines

commit f9f4601f331aa1226d7a798a01950efbb388f07f

Author: Robert Moore <[email protected]>
Date:   Fri Jul 8 00:00:00 2005 -0400

ACPICA 20050708 from Bob Moore <[email protected]>

The use of the CPU stack in the debug version of the subsystem has been considerably reduced. Previously, a debug structure was declared in every function that used the debug macros. This structure has been removed in favor of declaring the individual elements as parameters to the debug functions. This reduces the cumulative stack use during nested execution of ACPI function calls at the cost of a small increase in the code size of the debug version of the subsystem. With assistance from Alexey Starikovskiy and Len Brown.

Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent headers to define a macro that will return the current function name at runtime (such as __FUNCTION__ or _func_, etc.) The function name is used by the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the compiler-dependent header, the function name is saved on the CPU stack (one pointer per function.) This mechanism is used because apparently there exists no standard ANSI-C defined macro that that returns the function name.

Alexey Starikovskiy redesigned and reimplemented the "Owner ID" mechanism used to track namespace objects created/deleted by ACPI tables and control method execution. A bitmap is now used to allocate and free the IDs, thus solving the wraparound problem present in the previous implementation. The size of the namespace node descriptor was reduced by 2 bytes as a result.

Removed the UINT32_BIT and UINT16_BIT types that were used for the bitfield flag definitions within the headers for the predefined ACPI tables. These have been replaced by UINT8_BIT in order to increase the code portability of the subsystem. If the use of UINT8 remains a problem, we may be forced to eliminate bitfields entirely because of a lack of portability.

Alexey Starikovksiy enhanced the performance of acpi_ut_update_object_reference. This is a frequently used function and this improvement increases the performance of the entire subsystem.

Alexey Starikovskiy fixed several possible memory leaks and the inverse - premature object deletion.

commit 4c3ffbd79529b680b3c3ef2b6f42f0c89c694ec5

Author: David Shaohua Li <[email protected]>
Date:   Thu Jul 14 00:00:00 2005 -0400

[ACPI] revert R40 workaround

Should not be necessary...

http://bugme.osdl.org/show_bug.cgi?id=1038

commit 73459f73e5d1602c59ebec114fc45185521353c1

Author: Robert Moore <[email protected]>
Date:   Fri Jun 24 00:00:00 2005 -0400

ACPICA 20050617-0624 from Bob Moore <[email protected]>

ACPICA 20050617:

Moved the object cache operations into the OS interface layer (OSL) to allow the host OS to handle these operations if desired (for example, the Linux OSL will invoke the slab allocator). This support is optional; the compile time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache code in the ACPI CA core. The new OSL interfaces are shown below. See utalloc.c for an example implementation, and acpiosxf.h for the exact interface definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object

Modified the interfaces to acpi_os_acquire_lock and acpi_os_release_lock to return and restore a flags parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler or not) is no longer passed to these interfaces. If necessary, the OSL must determine this state by itself, a simple and fast operation. Thanks to Alexey Starikovskiy.

Fixed a problem in the ACPI table handling where a valid XSDT was assumed present if the revision of the RSDP was 2 or greater. According to the ACPI specification, the XSDT is optional in all cases, and the table manager therefore now checks for both an RSDP >=2 and a valid XSDT pointer. Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain only the RSDT.

Fixed an interpreter problem with the Mid() operator in the case of an input string where the resulting output string is of zero length. It now correctly returns a valid, null terminated string object instead of a string object with a null pointer.

Fixed a problem with the control method argument handling to allow a store to an Arg object that already contains an object of type Device. The Device object is now correctly overwritten. Previously, an error was returned.

ACPICA 20050624:

Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for the host-defined cache object. This allows the OSL implementation to define and type this object in any manner desired, simplifying the OSL implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for Linux, and should be defined in the OS-specific header file for other operating systems as required.

Changed the interface to AcpiOsAcquireObject to directly return the requested object as the function return (instead of ACPI_STATUS.) This change was made for performance reasons, since this is the purpose of the interface in the first place. acpi_os_acquire_object is now similar to the acpi_os_allocate interface. Thanks to Alexey Starikovskiy.

Modified the initialization sequence in acpi_initialize_subsystem to call the OSL interface acpi_osl_initialize first, before any local initialization. This change was required because the global initialization now calls OSL interfaces.

Restructured the code base to split some files because of size and/or because the code logically belonged in a separate file. New files are listed below.

utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */

commit 88ac00f5a841dcfc5c682000f4a6add0add8caac

Author: Robert Moore <[email protected]>
Date:   Thu May 26 00:00:00 2005 -0400

ACPICA 20050526 from Bob Moore <[email protected]>

Implemented support to execute Type 1 and Type 2 AML opcodes appearing at the module level (not within a control method.) These opcodes are executed exactly once at the time the table is loaded. This type of code was legal up until the release of ACPI 2.0B (2002) and is now supported within ACPI CA in order to provide backwards compatibility with earlier BIOS implementations. This eliminates the "Encountered executable code at module level" warning that was previously generated upon detection of such code.

Fixed a problem in the interpreter where an AE_NOT_FOUND exception could inadvertently be generated during the lookup of namespace objects in the second pass parse of ACPI tables and control methods. It appears that this problem could occur during the resolution of forward references to namespace objects.

Added the ACPI_MUTEX_DEBUG #ifdef to the acpi_ut_release_mutex function, corresponding to the same the deadlock detection debug code to be compiled out in the normal case, improving mutex performance (and overall subsystem performance) considerably. As suggested by Alexey Starikovskiy.

Implemented a handful of miscellaneous fixes for possible memory leaks on error conditions and error handling control paths. These fixes were suggested by FreeBSD and the Coverity Prevent source code analysis tool.

Added a check for a null RSDT pointer in acpi_get_firmware_table (tbxfroot.c) to prevent a fault in this error case.

Signed-off-by Len Brown <[email protected]>

commit 6f42ccf2fc50ecee8ea170040627f268430c1648

Author: Robert Moore <[email protected]>
Date:   Fri May 13 00:00:00 2005 -0400

ACPICA from Bob Moore <[email protected]>

Implemented support for PCI Express root bridges -- added support for device PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. acpi_ev_pci_config_region_setup().

The interpreter now automatically truncates incoming 64-bit constants to 32 bits if currently executing out of a 32-bit ACPI table (Revision < 2). This also affects the iASL compiler constant folding. (Note: as per below, the iASL compiler no longer allows 64-bit constants within 32-bit tables.)

Fixed a problem where string and buffer objects with "static" pointers (pointers to initialization data within an ACPI table) were not handled consistently. The internal object copy operation now always copies the data to a newly allocated buffer, regardless of whether the source object is static or not.

Fixed a problem with the FromBCD operator where an implicit result conversion was improperly performed while storing the result to the target operand. Since this is an "explicit conversion" operator, the implicit conversion should never be performed on the output.

Fixed a problem with the CopyObject operator where a copy to an existing named object did not always completely overwrite the existing object stored at name. Specifically, a buffer-to-buffer copy did not delete the existing buffer.

Replaced "interrupt_level" with "interrupt_number" in all GPE interfaces and structs for consistency.

-------------------------------------------------------
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

#2 lore raw

Re: latest ACPI patch based on 2.6.13

Quoted 7 lines · Len Brown

The Latest ACPI patch based on 2.6.13 is available here:

http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.12/acpi-20050729-2.6.13-rc6.patch

These patches are exported to-akpm for inclusion in -mm with the intent to integrate into 2.6.14.

Thanks, Len.

We do have a number of -mm-only acpi bugs which should be fixed before we can send this on to Linus.

http://bugzilla.kernel.org/show_bug.cgi?id=4867
http://bugzilla.kernel.org/show_bug.cgi?id=4964
http://bugzilla.kernel.org/show_bug.cgi?id=4977
http://bugzilla.kernel.org/show_bug.cgi?id=4980

are the one's I've kept a record of.

-------------------------------------------------------
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

#3 lore raw

Re: latest ACPI patch based on 2.6.13

In reply to Len Brown
Quoted 3 lines · Len Brown

The Latest ACPI patch based on 2.6.13 is available here:

http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.12/acpi-20050729-2.6.13-rc6.patch

Corrected link:
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.13/acpi-20050729-2.6.13-rc6.diff.bz2

avuton

Signature · 8 lines
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.


-------------------------------------------------------
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
#4 lore raw

Re: latest ACPI patch based on 2.6.13

In reply to Len Brown

Hi Len and Kenji,

From: Len Brown <[email protected]>
Subject: [ACPI] latest ACPI patch based on 2.6.13
Date: Fri, 05 Aug 2005 01:35:25 -0400

Quoted 11 lines

The Latest ACPI patch based on 2.6.13 is available here:

http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.12/acpi-20050729-2.6.13-rc6.patch

These patches are exported to-akpm for inclusion in -mm with the intent to integrate into 2.6.14.

http://ftp.kernel.org/pub/scm/linux/kernel/git/lenb/to-akpm.git/

Please give it a go and speak up and file bugs if you run into any issues.

It cannot be compiled on ia64, due to some typos in ia64 specific files. The following patch fixes the typos.

In addition, assign_irq_vector_nopanic() called by iosapic_register_intr() is missing. Shouldn't be assign_irq_vector()?

Thanks,
MAEDA Naoaki

arch/ia64/kernel/acpi.c +2 -2
Index: linux-2.6.13-rc5-mm1/arch/ia64/kernel/acpi.c
===================================================================
@@ -74,7 +74,7 @@ unsigned int acpi_cpei_override;
 unsigned int acpi_cpei_phys_cpuid;
 
 #define MAX_SAPICS 256
-u16 ia64_acpiid_to_sapicid[MAX_SAPICS] = {[0...MAX_SAPICS - 1] = -1 };
+u16 ia64_acpiid_to_sapicid[MAX_SAPICS] = {[0 ... MAX_SAPICS - 1] = -1 };
 
 EXPORT_SYMBOL(ia64_acpiid_to_sapicid);
 
@@ -138,7 +138,7 @@ const char *acpi_get_sysname(void)
 
 /* Array to record platform interrupt vectors for generic interrupt routing. */
 int platform_intr_list[ACPI_MAX_PLATFORM_INTERRUPTS] = {
-	[0...ACPI_MAX_PLATFORM_INTERRUPTS - 1] = -1
+	[0 ... ACPI_MAX_PLATFORM_INTERRUPTS - 1] = -1
 };
 
 enum acpi_irq_model_id acpi_irq_model = ACPI_IRQ_MODEL_IOSAPIC;
arch/ia64/kernel/iosapic.c +1 -1
Index: linux-2.6.13-rc5-mm1/arch/ia64/kernel/iosapic.c
===================================================================
@@ -739,7 +739,7 @@ again:
 	if (vector < 0) {
 		vector = iosapic_find_sharable_vector(trigger, polarity);
   		if (vector < 0)
-			Return -ENOSPC;
+			return -ENOSPC;
 	}
 
 	spin_lock_irqsave(&irq_descp(vector)->lock, flags);

-------------------------------------------------------
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

A message that is not in the archive (sent off-list or not yet received): 20050808.134133.41727261.maeda.naoaki-+CUm20s59erQFUHtdCDX3A@public.gmane.org

#6 lore raw

Re: latest ACPI patch based on 2.6.13

Hi,

Quoted 2 lines

In addition, assign_irq_vector_nopanic() called by iosapic_register_intr() is missing. Shouldn't be assign_irq_vector()?

As you pointed out, it should be assign_irq_vector() because assign_irq_vector_nopanic() has been already removed at 2.6.13-rc3.

Thanks,
Kenji Kaneshige

Quoted 59 lines · MAEDA Naoaki

Hi Len and Kenji,

From: Len Brown <[email protected]>
Subject: [ACPI] latest ACPI patch based on 2.6.13
Date: Fri, 05 Aug 2005 01:35:25 -0400

Quoted 11 lines

The Latest ACPI patch based on 2.6.13 is available here:

http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.12/acpi-20050729-2.6.13-rc6.patch

These patches are exported to-akpm for inclusion in -mm with the intent to integrate into 2.6.14.

http://ftp.kernel.org/pub/scm/linux/kernel/git/lenb/to-akpm.git/

Please give it a go and speak up and file bugs if you run into any issues.

It cannot be compiled on ia64, due to some typos in ia64 specific files. The following patch fixes the typos.

In addition, assign_irq_vector_nopanic() called by iosapic_register_intr() is missing. Shouldn't be assign_irq_vector()?

Thanks,
MAEDA Naoaki

Index: linux-2.6.13-rc5-mm1/arch/ia64/kernel/acpi.c
===================================================================

arch/ia64/kernel/acpi.c +2 -2
@@ -74,7 +74,7 @@ unsigned int acpi_cpei_override;
 unsigned int acpi_cpei_phys_cpuid;
 
 #define MAX_SAPICS 256
-u16 ia64_acpiid_to_sapicid[MAX_SAPICS] = {[0...MAX_SAPICS - 1] = -1 };
+u16 ia64_acpiid_to_sapicid[MAX_SAPICS] = {[0 ... MAX_SAPICS - 1] = -1 };
 
 EXPORT_SYMBOL(ia64_acpiid_to_sapicid);
 
@@ -138,7 +138,7 @@ const char *acpi_get_sysname(void)
 
 /* Array to record platform interrupt vectors for generic interrupt routing. */
 int platform_intr_list[ACPI_MAX_PLATFORM_INTERRUPTS] = {
-	[0...ACPI_MAX_PLATFORM_INTERRUPTS - 1] = -1
+	[0 ... ACPI_MAX_PLATFORM_INTERRUPTS - 1] = -1
 };
 
 enum acpi_irq_model_id acpi_irq_model = ACPI_IRQ_MODEL_IOSAPIC;

Index: linux-2.6.13-rc5-mm1/arch/ia64/kernel/iosapic.c
===================================================================

arch/ia64/kernel/iosapic.c again: · line 745

Quoted 8 lines
arch/ia64/kernel/iosapic.c +1 -1
@@ -739,7 +739,7 @@ again:
 	if (vector < 0) {
 		vector = iosapic_find_sharable_vector(trigger, polarity);
   		if (vector < 0)
-			Return -ENOSPC;
+			return -ENOSPC;
 	}
 
 	spin_lock_irqsave(&irq_descp(vector)->lock, flags);

-------------------------------------------------------
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

author Acked-by Adam Belay Acked-by Shaohua Li
#7 lore raw
In reply to Len Brown

The Latest ACPI patch vs 2.6.12 is available here:

http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.12/acpi-20050729-2.6.12.patch.gz

This includes most all of the ACPI patches that went into 2.6.13 -- at least the ones sent through me.
It also includes newer stuff that is queued for 2.6.14 via -mm.

Individual patches are available here:
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.12/broken-out/

Of note since the last update:

Luming has fixed a serious EC burst mode issue.
Please boot with "ec_burst=1" and try it out -- he's looking for feeback
here: http://bugzilla.kernel.org/show_bug.cgi?id=3851

I excluded the whitespace patches from the 2.6.12 ACPI patch b/c they get in the way of back-porting -- they're just available in to-akpm git tree and -mm.

thanks,
-Len

commit 50526df605e7c3e22168664acf726269eae10171

Author: Len Brown <[email protected]>
Date:   Thu Aug 11 17:32:05 2005 -0400

[ACPI] Lindent drivers/acpi/ec.c

necessary for clean merge from acpi-2.6.12 to-akpm

commit 716e084edb0230910b174000dc3490f9e91652e3

Author: Luming Yu <[email protected]>
Date:   Wed Aug 10 01:40:00 2005 -0400

[ACPI] Fix "ec_burst=1" mode latency issue

http://bugzilla.kernel.org/show_bug.cgi?id=3851

commit cbfc1bae55bbd053308ef0fa6b6448cd1ddf3e67

Author: Adrian Bunk <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] ACPI_HOTPLUG_CPU Kconfig dependency update

prevent:

HOTPLUG_CPU=y
ACPI_PROCESSOR=y
ACPI_HOTPLUG_CPU=n

commit 4fdcf0804598f44b0f48da9e5281af48a4db393f

Author: Andrew Morton <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] lint: irqrouter_suspend() takes a pm_message_t, not a u32

commit 031ec77bf67e4bda994ef8ceba267be3295ffdb7

Author: Karol Kozimor <sziwan-DETuoxkZsSqrDJvtcaxF/[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] acpi_remove_notify_handler() on video driver unload

The video driver doesn't properly remove all the notify handlers on module unload. This has a side effect of subdevices failing to register on module reload, but sudden death looms if the handlers trigger after the module is unloaded.

commit e92310a930462c6e1611f35453f57357c42bde14

Author: Andrew Morton <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] fix IA64 build warning

commit 53de49f52e305e96143375d1741f15acff7bf34b

Author: Andrew Morton <[email protected]>
Date:   Sat Jul 30 04:18:00 2005 -0400

[ACPI] CONFIG_ACPI=n build fix

commit 14454a1b3ff8d1d15fbe7cc77f27373777184ddf

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] iosapic_register_intr() now returns error instead of panic error condition is passed along by acpi_register_gsi().

commit 58e0276245f6c60119f0384e7eca576b08aa89e2

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] 8250 driver now checks for acpi_register_gsi() errors

commit 71df30f8e3e97fde573c41df063c2d66c1ad01b0

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] PNPACPI driver now checks for acpi_register_gsi() errors

commit a9bd53bc49ee8984633e57c1d9d45111c58e9457

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] HPET driver now checks for acpi_register_gsi() errors

commit 349f0d5640c18db09a646f9da51a97f1da908660

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] acpi_pci_enable_irq() now checks for acpi_register_gsi()
errors

commit 1f3a6a15771ed70d3b2581663dcc6b9bc134baa5

Author: Kenji Kaneshige <[email protected]>
Date:   Thu Jul 28 14:42:00 2005 -0400

[ACPI] acpi_register_gsi() can return error

Current acpi_register_gsi() function has no way to indicate errors
to its
callers even though acpi_register_gsi() can fail to register gsi
because of
some reasons (out of memory, lack of interrupt vectors, incorrect
BIOS, and so
on). As a result, caller of acpi_register_gsi() cannot handle the
case that
acpi_register_gsi() fails. I think failure of acpi_register_gsi()
should be
handled properly.

This series of patches changes acpi_register_gsi() to return
negative value on
error, and also changes callers of acpi_register_gsi() to handle
failure of
acpi_register_gsi().

This patch changes the type of return value of acpi_register_gsi()
from
"unsigned int" to "int" to indicate an error. If
acpi_register_gsi() fails to
register gsi, it returns negative value.

commit bd6dbdf3c7b9784fbf5d8500e427a954e27a976a
Merge: aefdcfa6c243702f1d35d23515d0e5eeca225c97
d4ab025b73a2d10548e17765eb76f3b7351dc611

Author: Len Brown <[email protected]>
Date:   Thu Aug 4 00:17:42 2005 -0400

When a merge does not work automatically, git prevents commit from running until a change has been made in the destination. In this instance the desired result was to choose the destination version of the file and ignore the source version, but git would not allow that.

Here I added a blank line to let git commit think I resolved a merge conflict.

commit d4ab025b73a2d10548e17765eb76f3b7351dc611

Author: Len Brown <[email protected]>
Date:   Wed Aug 3 23:20:58 2005 -0400

[ACPI] delete Warning: Encountered executable code at module level,
[AE_NOT_CONFIGURED]

http://bugzilla.kernel.org/show_bug.cgi?id=4923

commit aefdcfa6c243702f1d35d23515d0e5eeca225c97
Merge: 0c9938cc75057c0fca1af55a55dcfc2842436695
79cda7d0e1c8629996242c036d6fe0466038d8ba

Author: Len Brown <[email protected]>
Date:   Wed Aug 3 18:12:57 2005 -0400

Merge ../to-linus

commit 79cda7d0e1c8629996242c036d6fe0466038d8ba

Author: Luming Yu <[email protected]>
Date:   Wed Aug 3 18:07:59 2005 -0400

[ACPI] CONFIG_ACPI_HOTKEY is now "n" by default For 2.6.12 behaviour, this (EXPERIMENTAL) driver should not be built.

Update the driver source with latest from Luming.

commit b34a8030eeab4d59dcdd86de38f6927b9edd441f

Author: Alexey Starikovskiy <[email protected]>
Date:   Wed Aug 3 17:55:21 2005 -0400

[ACPI] restore /proc/acpi/button/ (ala 2.6.12)

Signed-off-by Alexey Starikovskiy <[email protected]> Signed-off-by Len Brown <[email protected]>

commit 7b15f5e7bb180ac7bfb8926dbbd8835fecc07fad

Author: Luming Yu <[email protected]>
Date:   Wed Aug 3 17:38:04 2005 -0400

[ACPI] revert Embedded Controller to polling-mode by default (ala
2.6.12)
Burst mode isn't ready for prime time,
but can be enabled for test via "ec_burst=1"

commit ecc21ebe603af31f172c43b8b261df79040790ef

Author: David Shaohua Li <[email protected]>
Date:   Wed Aug 3 11:00:11 2005 -0400

[ACPI] PCI interrupt link suspend/resume - revert to 2.6.12
behaviour

This patch disables the PCI Interrupt Link refernece counts, which should not co-exist with the 2.6.12 irq_router.resume method or else a double acpi_pci_link_set() could result on resume.

commit 3d35600a9de8e2816d0e3726f64b7271af6fdda4

Author: Len Brown <[email protected]>
Date:   Wed Aug 3 00:22:52 2005 -0400

[ACPI] fix 64-bit build warning in processor_idle.c

commit 0c9938cc75057c0fca1af55a55dcfc2842436695

Author: Robert Moore <[email protected]>
Date:   Fri Jul 29 15:15:00 2005 -0700

[ACPI] ACPICA 20050729 from Bob Moore

Implemented support to ignore an attempt to install/load a particular ACPI table more than once. Apparently there exists BIOS code that repeatedly attempts to load the same SSDT upon certain events. Thanks to Venkatesh Pallipadi.

Restructured the main interface to the AML parser in order to correctly handle all exceptional conditions. This will prevent leakage of the OwnerId resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some machines. Thanks to Alexey Starikovskiy.

Support for "module level code" has been disabled in this version due to a number of issues that have appeared on various machines. The support can be enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem compilation. When the issues are fully resolved, the code will be enabled by default again.

Modified the internal functions for debug print support to define the FunctionName parameter as a (const char *) for compatibility with compiler built-in macros such as __FUNCTION__, etc.

Linted the entire ACPICA source tree for both 32-bit and 64-bit.

commit dd8f39bbf5154cdbfd698fc70c66faba33eafa44
Merge: c2c2e03409f5f5405e79d9d9156202b75cb5b35b
87bec66b9691522414862dd8d41e430b063735ef

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 23:11:11 2005 -0400

Merge ../to-linus

commit 87bec66b9691522414862dd8d41e430b063735ef

Author: David Shaohua Li <[email protected]>
Date:   Wed Jul 27 23:02:00 2005 -0400

[ACPI] suspend/resume ACPI PCI Interrupt Links

Add reference count and disable ACPI PCI Interrupt Link when no device still uses it.

Warn when drivers have not released Link at suspend time.

http://bugzilla.kernel.org/show_bug.cgi?id=3469

commit 68ac767686fd72f37a25bb4895fb4ab0080ba755

Author: Venkatesh Pallipadi <[email protected]>
Date:   Mon Apr 25 14:38:00 2005 -0400

[ACPI] delete boot-time printk()s from processor_idle.c

http://bugzilla.kernel.org/show_bug.cgi?id=4401

commit 90158b83204842c0108d744326868d91cc9c4dfd

Author: Rafael J. Wysocki <[email protected]>
Date:   Sun Jul 24 14:22:00 2005 -0400

[ACPI] fix resume issues on Asus L5D

http://bugzilla.kernel.org/show_bug.cgi?id=4416

commit 4b31e77455b868b43e665edceb111c9a330c8e0f

Author: Dominik Brodowski <[email protected]>
Date:   Wed May 18 13:49:00 2005 -0400

[ACPI] Always set P-state on initialization

Otherwise a platform that supports ACPI based cpufreq and boots up at lowest possible speed could stay there forever. This because the governor may request max speed, but the code doesn't update if there is no change in speed, and it assumed the initial state of max speed.

http://bugzilla.kernel.org/show_bug.cgi?id=4634

commit 45bea1555f5bf0cd5871b208b4b02d188f106861

Author: Luming Yu <[email protected]>
Date:   Sat Jul 23 04:08:00 2005 -0400

[ACPI] Add "ec_polling" boot option

EC burst mode benefits many machines, some of
them significantly. However, our current
implementation fails on some machines such
as Rafael's Asus L5D.

This patch restores the alternative EC polling code, which can be enabled at boot time via "ec_polling"

http://bugzilla.kernel.org/show_bug.cgi?id=4665

commit 335f16be5d917334f56ec9ef7ecf983476ac0563

Author: David Shaohua Li <[email protected]>
Date:   Wed Jun 22 18:37:00 2005 -0400

[ACPI] address boot-freeze with updated DMI blacklist for c-states

http://bugzilla.kernel.org/show_bug.cgi?id=4763

commit c2c2e03409f5f5405e79d9d9156202b75cb5b35b

Author: Iacopo Spalletti <[email protected]>
Date:   Sun Jul 17 02:06:00 2005 -0400

[ACPI] update hotkey documentation

http://bugzilla.kernel.org/show_bug.cgi?id=4903

commit 0b6b2f08c24a65535cb18893ca27516389c5fc0f

Author: Venkatesh Pallipadi <[email protected]>
Date:   Fri Jul 29 16:00:13 2005 -0400

[ACPI] Fix memset arguments in acpi processor_idle.c

http://bugzilla.kernel.org/show_bug.cgi?id=4954

commit 4a7164023959040e687e51663dee67cff4d2b770

Author: Venkatesh Pallipadi <[email protected]>
Date:   Fri Jul 29 15:51:36 2005 -0400

[ACPI] Fix the regression with c1_default_handler on some systems where C-states come from FADT.

Thanks to Kevin Radloff for identifying the issue and isolating it to exact line of code that is causing the issue.

commit 670fac79b9dcf16549a4c1f4c0b73c457e53bd7e

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 00:16:54 2005 -0400

[ACPI] disable module level AML code (for now)

It is important that we support module level code -- BIOS's implement it. But this implementation needs more testing.

commit 5d75ab45594c78d2d976a3248ea1ca281c9d7056

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 00:03:55 2005 -0400

[ACPI] handle const char * __FUNCTION__ in debug code build warning: discards qualifiers from pointer target type when mixing "const char *" and "char *"

We should probably update the routines to expect const, but easier for now to shut up the warning with 1 cast.

commit feee9570753645f9f6888937ff9aee426b7afe55

Author: Len Brown <[email protected]>
Date:   Fri Jul 29 00:01:00 2005 -0400

[ACPI] comment out prototypes for new unused debug routines

commit 668d74c04c16bb69de564e25e85dd94eeb0175d9

Author: Luming Yu <[email protected]>
Date:   Sat Jul 23 00:26:33 2005 -0400

ACPI: delete unnecessary EC console messages

http://bugzilla.kernel.org/show_bug.cgi?id=4534

commit f9f4601f331aa1226d7a798a01950efbb388f07f

Author: Robert Moore <[email protected]>
Date:   Fri Jul 8 00:00:00 2005 -0400

ACPICA 20050708 from Bob Moore <[email protected]>

The use of the CPU stack in the debug version of the subsystem has been considerably reduced. Previously, a debug structure was declared in every function that used the debug macros. This structure has been removed in favor of declaring the individual elements as parameters to the debug functions. This reduces the cumulative stack use during nested execution of ACPI function calls at the cost of a small increase in the code size of the debug version of the subsystem. With assistance from Alexey Starikovskiy and Len Brown.

Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent headers to define a macro that will return the current function name at runtime (such as __FUNCTION__ or _func_, etc.) The function name is used by the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the compiler-dependent header, the function name is saved on the CPU stack (one pointer per function.) This mechanism is used because apparently there exists no standard ANSI-C defined macro that that returns the function name.

Alexey Starikovskiy redesigned and reimplemented the "Owner ID" mechanism used to track namespace objects created/deleted by ACPI tables and control method execution. A bitmap is now used to allocate and free the IDs, thus solving the wraparound problem present in the previous implementation. The size of the namespace node descriptor was reduced by 2 bytes as a result.

Removed the UINT32_BIT and UINT16_BIT types that were used for the bitfield flag definitions within the headers for the predefined ACPI tables. These have been replaced by UINT8_BIT in order to increase the code portability of the subsystem. If the use of UINT8 remains a problem, we may be forced to eliminate bitfields entirely because of a lack of portability.

Alexey Starikovksiy enhanced the performance of acpi_ut_update_object_reference. This is a frequently used function and this improvement increases the performance of the entire subsystem.

Alexey Starikovskiy fixed several possible memory leaks and the inverse - premature object deletion.

commit 4c3ffbd79529b680b3c3ef2b6f42f0c89c694ec5

Author: David Shaohua Li <[email protected]>
Date:   Thu Jul 14 00:00:00 2005 -0400

[ACPI] revert R40 workaround

Should not be necessary...

http://bugme.osdl.org/show_bug.cgi?id=1038

commit 73459f73e5d1602c59ebec114fc45185521353c1

Author: Robert Moore <[email protected]>
Date:   Fri Jun 24 00:00:00 2005 -0400

ACPICA 20050617-0624 from Bob Moore <[email protected]>

ACPICA 20050617:

Moved the object cache operations into the OS interface layer (OSL) to allow the host OS to handle these operations if desired (for example, the Linux OSL will invoke the slab allocator). This support is optional; the compile time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache code in the ACPI CA core. The new OSL interfaces are shown below. See utalloc.c for an example implementation, and acpiosxf.h for the exact interface definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object

Modified the interfaces to acpi_os_acquire_lock and acpi_os_release_lock to return and restore a flags parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler or not) is no longer passed to these interfaces. If necessary, the OSL must determine this state by itself, a simple and fast operation. Thanks to Alexey Starikovskiy.

Fixed a problem in the ACPI table handling where a valid XSDT was assumed present if the revision of the RSDP was 2 or greater. According to the ACPI specification, the XSDT is optional in all cases, and the table manager therefore now checks for both an RSDP >=2 and a valid XSDT pointer. Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain only the RSDT.

Fixed an interpreter problem with the Mid() operator in the case of an input string where the resulting output string is of zero length. It now correctly returns a valid, null terminated string object instead of a string object with a null pointer.

Fixed a problem with the control method argument handling to allow a store to an Arg object that already contains an object of type Device. The Device object is now correctly overwritten. Previously, an error was returned.

ACPICA 20050624:

Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for the host-defined cache object. This allows the OSL implementation to define and type this object in any manner desired, simplifying the OSL implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for Linux, and should be defined in the OS-specific header file for other operating systems as required.

Changed the interface to AcpiOsAcquireObject to directly return the requested object as the function return (instead of ACPI_STATUS.) This change was made for performance reasons, since this is the purpose of the interface in the first place. acpi_os_acquire_object is now similar to the acpi_os_allocate interface. Thanks to Alexey Starikovskiy.

Modified the initialization sequence in acpi_initialize_subsystem to call the OSL interface acpi_osl_initialize first, before any local initialization. This change was required because the global initialization now calls OSL interfaces.

Restructured the code base to split some files because of size and/or because the code logically belonged in a separate file. New files are listed below.

utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */

commit 88ac00f5a841dcfc5c682000f4a6add0add8caac

Author: Robert Moore <[email protected]>
Date:   Thu May 26 00:00:00 2005 -0400

ACPICA 20050526 from Bob Moore <[email protected]>

Implemented support to execute Type 1 and Type 2 AML opcodes appearing at the module level (not within a control method.) These opcodes are executed exactly once at the time the table is loaded. This type of code was legal up until the release of ACPI 2.0B (2002) and is now supported within ACPI CA in order to provide backwards compatibility with earlier BIOS implementations. This eliminates the "Encountered executable code at module level" warning that was previously generated upon detection of such code.

Fixed a problem in the interpreter where an AE_NOT_FOUND exception could inadvertently be generated during the lookup of namespace objects in the second pass parse of ACPI tables and control methods. It appears that this problem could occur during the resolution of forward references to namespace objects.

Added the ACPI_MUTEX_DEBUG #ifdef to the acpi_ut_release_mutex function, corresponding to the same the deadlock detection debug code to be compiled out in the normal case, improving mutex performance (and overall subsystem performance) considerably. As suggested by Alexey Starikovskiy.

Implemented a handful of miscellaneous fixes for possible memory leaks on error conditions and error handling control paths. These fixes were suggested by FreeBSD and the Coverity Prevent source code analysis tool.

Added a check for a null RSDT pointer in acpi_get_firmware_table (tbxfroot.c) to prevent a fault in this error case.

Signed-off-by Len Brown <[email protected]>

commit 6f42ccf2fc50ecee8ea170040627f268430c1648

Author: Robert Moore <[email protected]>
Date:   Fri May 13 00:00:00 2005 -0400

ACPICA from Bob Moore <[email protected]>

Implemented support for PCI Express root bridges -- added support for device PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. acpi_ev_pci_config_region_setup().

The interpreter now automatically truncates incoming 64-bit constants to 32 bits if currently executing out of a 32-bit ACPI table (Revision < 2). This also affects the iASL compiler constant folding. (Note: as per below, the iASL compiler no longer allows 64-bit constants within 32-bit tables.)

Fixed a problem where string and buffer objects with "static" pointers (pointers to initialization data within an ACPI table) were not handled consistently. The internal object copy operation now always copies the data to a newly allocated buffer, regardless of whether the source object is static or not.

Fixed a problem with the FromBCD operator where an implicit result conversion was improperly performed while storing the result to the target operand. Since this is an "explicit conversion" operator, the implicit conversion should never be performed on the output.

Fixed a problem with the CopyObject operator where a copy to an existing named object did not always completely overwrite the existing object stored at name. Specifically, a buffer-to-buffer copy did not delete the existing buffer.

Replaced "interrupt_level" with "interrupt_number" in all GPE interfaces and structs for consistency.

commit d8683a0cb5d09cb7f19feefa708424a84577e68f

Author: Len Brown <[email protected]>
Date:   Sun Jul 3 16:42:23 2005 -0400

[ACPI] increase MAX_IO_APICS to 64 on i386

x86_64 was already 128

http://bugzilla.kernel.org/show_bug.cgi?id=3754

commit 02df8b9385c21fdba165bd380f60eca1d3b0578b

Author: Venkatesh Pallipadi <[email protected]>
Date:   Fri Apr 15 15:07:10 2005 -0400

[ACPI] enable C2 and C3 idle power states on SMP
http://bugzilla.kernel.org/show_bug.cgi?id=4401

commit 17e9c78a75ce9eacd61200f9e1f1924012e28846

Author: Luming Yu <[email protected]>
Date:   Fri Apr 22 23:07:10 2005 -0400

[ACPI] EC GPE-disabled issue
http://bugzilla.kernel.org/show_bug.cgi?id=3851

commit a27ac38efd6dc6dccebfc9bcc475ab4aa5fc4a56

Author: Len Brown <[email protected]>
Date:   Fri Apr 5 00:07:45 2019 -0500

[ACPI] fix merge error that broke CONFIG_ACPI_DEBUG=y build

commit 590275ce72c48fdbddea057bc9ee379c1fd851ef

Author: Jesse Barnes <jbarnes-sJ/[email protected]>
Date:   Mon Apr 18 23:52:17 2005 -0400

[ACPI] cleanup: delete !IA64_SGI_SN from acpi/Kconfig

commit 6c4fa56033c11ad5c5929bf3edd1505d3d8a8c0b

Author: Venkatesh Pallipadi <[email protected]>
Date:   Mon Apr 18 23:06:47 2005 -0400

[ACPI] fix C1 patch for IA64
http://bugzilla.kernel.org/show_bug.cgi?id=4233

commit ef7b06cd905424aea7c31f27fef622e84e75e650

Author: David Shaohua Li <[email protected]>
Date:   Mon Apr 18 22:59:23 2005 -0400

[ACPI] quiet dmesg related to ACPI PM of PCI devices

DBG("No ACPI bus support for %s\n", dev->bus_id);
http://bugzilla.kernel.org/show_bug.cgi?id=4277

commit 44f6c01242da4e162f28d8e1216a8c7a91174605

Author: Robert Moore <[email protected]>
Date:   Mon Apr 18 22:49:35 2005 -0400

ACPICA 20050408 from Bob Moore

Fixed three cases in the interpreter where an "index" argument to an ASL function was still (internally) 32 bits instead of the required 64 bits. This was the Index argument to the Index, Mid, and Match operators.

The "strupr" function is now permanently local (acpi_ut_strupr), since this is not a POSIX-defined function and not present in most kernel-level C libraries. References to the C library strupr function have been removed from the headers.

Completed the deployment of static functions/prototypes. All prototypes with the static attribute have been moved from the headers to the owning C file.

ACPICA 20050329 from Bob Moore

An error is now generated if an attempt is made to create a Buffer Field of length zero (A CreateField with a length operand of zero.)

The interpreter now issues a warning whenever executable code at the module level is detected during ACPI table load. This will give some idea of the prevalence of this type of code.

Implemented support for references to named objects (other than control methods) within package objects.

Enhanced package object output for the debug object. Package objects are now completely dumped, showing all elements.

Enhanced miscellaneous object output for the debug object. Any object can now be written to the debug object (for example, a device object can be written, and the type of the object will be displayed.)

The "static" qualifier has been added to all local functions across the core subsystem.

The number of "long" lines (> 80 chars) within the source has been significantly reduced, by about 1/3.

Cleaned up all header files to ensure that all CA/iASL functions are prototyped (even static functions) and the formatting is consistent.

Two new header files have been added, acopcode.h and acnames.h.

Removed several obsolete functions that were no longer used.

commit ebb6e1a6122fd6b7c96470cfd4ce0f04150e5084

Author: Len Brown <[email protected]>
Date:   Thu Apr 14 23:12:56 2005 -0400

[ACPI] Deprecate /proc/acpi/sleep in favor of /sys/power/state

commit 9d9437759eb6fdb68f7b82cbee20b0fb711d9f0d

Author: Nickolai Zeldovich <kolya-DPNOqEs/[email protected]>
Date:   Fri Apr 8 23:37:34 2005 -0400

[ACPI] S3 resume -- use lgdtl, not lgdt

From: Nickolai Zeldovich <kolya-DPNOqEs/[email protected]>

commit c9c3e457de24cca2ca688fa397d93a241f472048

Author: David Shaohua Li <[email protected]>
Date:   Fri Apr 1 00:07:31 2005 -0500

[ACPI] PNPACPI vs sound IRQ

http://bugme.osdl.org/show_bug.cgi?id=4016

commit acf05f4b7f558051ea0028e8e617144123650272

Author: Venkatesh Pallipadi <[email protected]>
Date:   Thu Mar 31 23:23:15 2005 -0500

[ACPI] update /proc/acpi/processor/*/power even if only C1 support

commit 55e59c511cea3c6c721971467c707e9955922bc2

Author: Ashok Raj <[email protected]>
Date:   Thu Mar 31 22:51:10 2005 -0500

[ACPI] Evaluate CPEI Processor Override flag

ACPI 3.0 added a Correctable Platform Error Interrupt (CPEI) Processor Overide flag to MADT.Platform_Interrupt_Source. Record the processor that was provided as hint from ACPI.

commit 6940fabaa35b893163b7043d0d1dc5d715f9e1ca

Author: Keiichiro Tokunaga <[email protected]>
Date:   Wed Mar 30 23:15:47 2005 -0500

[ACPI] hotplug Processor consideration in acpi_bus_add()

commit 8de7a63b69a263b7549599be882d7aa15397f8b3

Author: Andrew Morton <[email protected]>
Date:   Wed Mar 30 22:53:30 2005 -0500

[ACPI] fix debug-mode build warning in acpi/hotkey.c

drivers/acpi/hotkey.c: In function `create_polling_proc':
drivers/acpi/hotkey.c:334: warning: ISO C90 forbids mixed
declarations and code

commit d1dd0c23916bd781de27bc5ec1c295064e9ce9cc

Author: Paulo Marques <pmarques-TSnNRl9vlf1Wk0Htik3J/[email protected]>
Date:   Wed Mar 30 22:39:49 2005 -0500

[ACPI] fix kmalloc size bug in acpi/video.c

acpi_video_device_find_cap() used &p instead of *p when calculating storage size, thus allocating only 4 or 8 bytes instead of 12...

Also, kfree(NULL) is legal, so remove some unneeded checks.

From: Paulo Marques <pmarques-TSnNRl9vlf1Wk0Htik3J/[email protected]>

commit 7334571f724df7a19f48cc974e991e00afde1e2f

Author: Adrian Bunk <[email protected]>
Date:   Wed Mar 30 22:31:35 2005 -0500

[ACPI] fix potential NULL dereference in acpi/video.c

commit f4224153098c1103db592b28f304beeb9c02481b

Author: Panagiotis Issaris <takis-8nu/[email protected]>
Date:   Wed Mar 30 22:15:36 2005 -0500

[ACPI] check for kmalloc failure in toshiba_acpi.c

commit 83ea7445221651dc43cf8d22f81089e0cbccf22b

Author: Andrew Morton <[email protected]>
Date:   Wed Mar 30 22:12:13 2005 -0500

[ACPI] fix build warning

commit f165b10f4a9aac7fee9b11a125de20a1712be128

Author: Greg Kroah-Hartman <[email protected]>
Date:   Wed Mar 30 21:23:19 2005 -0500

cleanup: remove unnecessary initializer on static pointers

commit b008b8d7092053fc1f036cfc54dc11740cc424ed

Author: Matthieu Castet <[email protected]>
Date:   Fri Mar 25 12:03:15 2005 -0500

[ACPI] PNPACPI parse error

http://bugzilla.kernel.org/show_bug.cgi?id=3912

commit a406d9e63e1d7088aad22565449de2e109300e5c

Author: Len Brown <[email protected]>
Date:   Wed Mar 23 16:16:03 2005 -0500

[ACPI] gut acpi_pci_choose_state() to avoid conflict with pending pm_message_t re-definition.

commit fa9cd547e097df4966b8bd5c94aeed953e32b14d

Author: Luming Yu <[email protected]>
Date:   Sat Mar 19 01:54:47 2005 -0500

[ACPI] fix EC access width
http://bugzilla.kernel.org/show_bug.cgi?id=4346

Written-by David Shaohua Li and Luming Yu

commit 451566f45a2e6cd10ba56e7220a9dd84ba3ef550

Author: Dmitry Torokhov <dtor-JGs/[email protected]>
Date:   Sat Mar 19 01:10:05 2005 -0500

[ACPI] Enable EC Burst Mode

Fixes several Embedded Controller issues, including button failure and battery status AE_TIME failure.

http://bugzilla.kernel.org/show_bug.cgi?id=3851

Based on patch by: Andi Kleen <[email protected]>

commit b913100d7304ea9596d8d85ab5f3ae04bd2b0ddb

Author: David Shaohua Li <[email protected]>
Date:   Sat Mar 19 00:16:18 2005 -0500

[ACPI] pci_set_power_state() now calls
platform_pci_set_power_state()
and ACPI can answer

http://bugzilla.kernel.org/show_bug.cgi?id=4277

commit 0f64474b8f7f1f7f3af5b24ef997baa35f923509

Author: David Shaohua Li <[email protected]>
Date:   Sat Mar 19 00:15:48 2005 -0500

[ACPI] PCI can now get suspend state from firmware

pci_choose_state() can now call
platform_pci_choose_state()
and ACPI can answer

http://bugzilla.kernel.org/show_bug.cgi?id=4277

commit 84df749f364209c9623304b7a94ddb954dc343bb

Author: David Shaohua Li <[email protected]>
Date:   Fri Mar 18 18:53:36 2005 -0500

[ACPI] Bind ACPI and PCI devices

http://bugzilla.kernel.org/show_bug.cgi?id=4277

commit 4e10d12a3d88c88fba3258809aa42d14fd8cf1d1

Author: David Shaohua Li <[email protected]>
Date:   Fri Mar 18 18:45:35 2005 -0500

[ACPI] Bind PCI devices with ACPI devices

Implement the framework for binding physical devices with ACPI devices. A physical bus like PCI bus should create a 'acpi_bus_type', with:

.find_device:
For device which has parent such as normal PCI devices.

.find_bridge:
It's for special devices, such as PCI root bridge
or IDE controller. Such devices generally haven't a parent or ->bus. We use the special method to get an ACPI handle.

Uses new field in struct device: firmware_data

http://bugzilla.kernel.org/show_bug.cgi?id=4277

commit fb9802fa59b196d7f90bb3c2e33c555c6bdc4c54

Author: Luming Yu <[email protected]>
Date:   Fri Mar 18 18:03:45 2005 -0500

[ACPI] generic Hot Key support

See Documentation/acpi-hotkey.txt

Use cmdline "acpi_specific_hotkey" to enable
legacy platform specific drivers.

http://bugzilla.kernel.org/show_bug.cgi?id=3887

commit d58da590451cf6ae75379a2ebf96d3afb8d810d8

Author: David Shaohua Li <[email protected]>
Date:   Fri Mar 18 16:43:54 2005 -0500

[ACPI] S3 Suspend to RAM: fix driver suspend/resume methods

Drivers should do this:

.suspend()
pci_disable_device()

.resume()
pci_enable_device()

http://bugzilla.kernel.org/show_bug.cgi?id=3469

commit 362b06bb70b5a5779b2e852e0f2bdb437061106e

Author: David Shaohua Li <[email protected]>
Date:   Fri Mar 18 16:30:29 2005 -0500

[ACPI] S3 Suspend to RAM: interrupt resume fix

Delete PCI Interrupt Link Device .resume method -- it is the device driver's job to request interrupts, not the Link's job to remember what the devices want.

This addresses the issue of attempting to run the ACPI interpreter too early in resume, when interrupts are still disabled.

http://bugzilla.kernel.org/show_bug.cgi?id=3469

commit 5ae947ecc9c1c23834201e5321684a5cb68bdd3f

Author: David Shaohua Li <[email protected]>
Date:   Fri Mar 18 16:27:13 2005 -0500

[ACPI] Suspend to RAM fix

Free some RAM before entering S3 so that upon resume we can be sure early allocations will succeed.

http://bugzilla.kernel.org/show_bug.cgi?id=3469

commit e2a5b420f716cd1a46674b1a90389612eced916f

Author: Alexey Starikovskiy <[email protected]>
Date:   Fri Mar 18 16:20:46 2005 -0500

[ACPI] ACPI poweroff fix

Register an "acpi" system device to be notified of shutdown
preparation.
This depends on CONFIG_PM

http://bugzilla.kernel.org/show_bug.cgi?id=4041

commit be91492ca871e58f61b517cfba541095bb60001c

Author: Len Brown <[email protected]>
Date:   Fri Mar 18 16:00:29 2005 -0500

[ACPI] CONFIG_ACPI now depends on CONFIG_PM

commit bd4698dad3023ae137b366c736e29ca6eaf3b9f7

Author: Alexey Starikovskiy <[email protected]>
Date:   Fri Mar 18 15:35:22 2005 -0500

[ACPI] Allow simultaneous Fixed Feature and Control Method buttons delete /proc/acpi/button

http://bugzilla.kernel.org/show_bug.cgi?id=1920

commit 45b1b196677b8009ab6cdc4b656265f1d7015c1b

Author: Keiichiro Tokunaga <[email protected]>
Date:   Wed Mar 2 00:00:00 2005 -0500

[ACPI] update CONFIG_ACPI_CONTAINER Kconfig help

-------------------------------------------------------
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