Skip to contentSkip to conversation

ACPI for 2.6.18

PATCH In review Len Brown 4 participants 9 messages Jun 23, 2006 – Aug 21, 2006 ACPI

lore
Share & tools
lore

Len Brown

author
#0 lore raw

PATCH 1/1 ACPI for 2.6.18

Hi Linus,

please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release

This will update the files shown below.

All of these patches have been in mm, some for several months.

I plan to send additional ACPI patches for 2.6.18, but no reason to hold up this batch for them.

thanks,
-Len

ps. a plain patch is also available here:
ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.17/acpi-release-20060608-2.6.17.diff.gz

 Documentation/kernel-parameters.txt               |    3 
 arch/i386/kernel/acpi/boot.c                      |    9 
 arch/i386/kernel/acpi/processor.c                 |    2 
 arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c       |  289 +++-
 arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c |  250 ++-
 arch/ia64/Kconfig                                 |    1 
 arch/ia64/hp/common/sba_iommu.c                   |    2 
 arch/ia64/kernel/acpi.c                           |    4 
 arch/ia64/mm/init.c                               |    2 
 arch/x86_64/Kconfig                               |    1 
 arch/x86_64/kernel/acpi/Makefile                  |    1 
 arch/x86_64/kernel/acpi/processor.c               |   74 -
 drivers/acpi/Kconfig                              |    3 
 drivers/acpi/acpi_memhotplug.c                    |   12 
 drivers/acpi/asus_acpi.c                          |   32 
 drivers/acpi/bus.c                                |   22 
 drivers/acpi/dispatcher/dsfield.c                 |   13 
 drivers/acpi/dispatcher/dsinit.c                  |    6 
 drivers/acpi/dispatcher/dsmethod.c                |  234 ++-
 drivers/acpi/dispatcher/dsmthdat.c                |   43 
 drivers/acpi/dispatcher/dsobject.c                |   25 
 drivers/acpi/dispatcher/dsopcode.c                |   63 
 drivers/acpi/dispatcher/dsutils.c                 |   25 
 drivers/acpi/dispatcher/dswexec.c                 |   26 
 drivers/acpi/dispatcher/dswload.c                 |   67 -
 drivers/acpi/dispatcher/dswscope.c                |   10 
 drivers/acpi/dispatcher/dswstate.c                |   72 -
 drivers/acpi/ec.c                                 |   72 -
 drivers/acpi/events/evevent.c                     |   10 
 drivers/acpi/events/evgpe.c                       |   87 -
 drivers/acpi/events/evgpeblk.c                    |   96 -
 drivers/acpi/events/evmisc.c                      |   49 
 drivers/acpi/events/evregion.c                    |  117 +
 drivers/acpi/events/evrgnini.c                    |   50 
 drivers/acpi/events/evsci.c                       |    8 
 drivers/acpi/events/evxface.c                     |   49 
 drivers/acpi/events/evxfevnt.c                    |   67 -
 drivers/acpi/events/evxfregn.c                    |   15 
 drivers/acpi/executer/exconfig.c                  |   54 
 drivers/acpi/executer/exconvrt.c                  |   12 
 drivers/acpi/executer/excreate.c                  |   25 
 drivers/acpi/executer/exdump.c                    |   36 
 drivers/acpi/executer/exfield.c                   |   18 
 drivers/acpi/executer/exfldio.c                   |   67 -
 drivers/acpi/executer/exmisc.c                    |   25 
 drivers/acpi/executer/exmutex.c                   |   15 
 drivers/acpi/executer/exnames.c                   |   28 
 drivers/acpi/executer/exoparg1.c                  |  101 +
 drivers/acpi/executer/exoparg2.c                  |   91 -
 drivers/acpi/executer/exoparg3.c                  |   17 
 drivers/acpi/executer/exoparg6.c                  |    3 
 drivers/acpi/executer/exprep.c                    |   57 
 drivers/acpi/executer/exregion.c                  |   40 
 drivers/acpi/executer/exresnte.c                  |   17 
 drivers/acpi/executer/exresolv.c                  |   77 -
 drivers/acpi/executer/exresop.c                   |   12 
 drivers/acpi/executer/exstore.c                   |   15 
 drivers/acpi/executer/exstoren.c                  |    7 
 drivers/acpi/executer/exstorob.c                  |   17 
 drivers/acpi/executer/exsystem.c                  |   12 
 drivers/acpi/executer/exutils.c                   |   17 
 drivers/acpi/fan.c                                |   40 
 drivers/acpi/hardware/hwacpi.c                    |    6 
 drivers/acpi/hardware/hwgpe.c                     |    8 
 drivers/acpi/hardware/hwregs.c                    |  146 --
 drivers/acpi/hardware/hwsleep.c                   |   31 
 drivers/acpi/hardware/hwtimer.c                   |   20 
 drivers/acpi/hotkey.c                             |    2 
 drivers/acpi/ibm_acpi.c                           |   70 +
 drivers/acpi/motherboard.c                        |   63 
 drivers/acpi/namespace/nsaccess.c                 |   46 
 drivers/acpi/namespace/nsalloc.c                  |  132 --
 drivers/acpi/namespace/nsdump.c                   |   15 
 drivers/acpi/namespace/nsdumpdv.c                 |    6 
 drivers/acpi/namespace/nseval.c                   |  500 +------
 drivers/acpi/namespace/nsinit.c                   |  334 +++--
 drivers/acpi/namespace/nsload.c                   |   27 
 drivers/acpi/namespace/nsnames.c                  |   14 
 drivers/acpi/namespace/nsobject.c                 |   15 
 drivers/acpi/namespace/nsparse.c                  |    6 
 drivers/acpi/namespace/nssearch.c                 |  152 +-
 drivers/acpi/namespace/nsutils.c                  |  108 -
 drivers/acpi/namespace/nswalk.c                   |    6 
 drivers/acpi/namespace/nsxfeval.c                 |  211 +--
 drivers/acpi/namespace/nsxfname.c                 |   22 
 drivers/acpi/namespace/nsxfobj.c                  |   11 
 drivers/acpi/osl.c                                |  159 +-
 drivers/acpi/parser/psargs.c                      |   25 
 drivers/acpi/parser/psloop.c                      |   25 
 drivers/acpi/parser/psopcode.c                    |    6 
 drivers/acpi/parser/psparse.c                     |   37 
 drivers/acpi/parser/psscope.c                     |   25 
 drivers/acpi/parser/pstree.c                      |    8 
 drivers/acpi/parser/psutils.c                     |    5 
 drivers/acpi/parser/pswalk.c                      |    5 
 drivers/acpi/parser/psxface.c                     |   46 
 drivers/acpi/pci_link.c                           |   25 
 drivers/acpi/processor_core.c                     |   14 
 drivers/acpi/processor_idle.c                     |    8 
 drivers/acpi/processor_perflib.c                  |  277 +++-
 drivers/acpi/resources/rscalc.c                   |  136 +-
 drivers/acpi/resources/rscreate.c                 |   35 
 drivers/acpi/resources/rsdump.c                   |   42 
 drivers/acpi/resources/rsinfo.c                   |    1 
 drivers/acpi/resources/rslist.c                   |  142 --
 drivers/acpi/resources/rsmisc.c                   |   16 
 drivers/acpi/resources/rsutils.c                  |  173 +-
 drivers/acpi/resources/rsxface.c                  |  417 +++---
 drivers/acpi/scan.c                               |  222 ++-
 drivers/acpi/sleep/main.c                         |    8 
 drivers/acpi/sleep/wakeup.c                       |    3 
 drivers/acpi/system.c                             |    6 
 drivers/acpi/tables.c                             |    4 
 drivers/acpi/tables/tbconvrt.c                    |   48 
 drivers/acpi/tables/tbget.c                       |   67 -
 drivers/acpi/tables/tbgetall.c                    |   11 
 drivers/acpi/tables/tbinstal.c                    |   50 
 drivers/acpi/tables/tbrsdt.c                      |   46 
 drivers/acpi/tables/tbutils.c                     |  151 +-
 drivers/acpi/tables/tbxface.c                     |   42 
 drivers/acpi/tables/tbxfroot.c                    |   82 -
 drivers/acpi/thermal.c                            |   25 
 drivers/acpi/utilities/utalloc.c                  |  652 +---------
 drivers/acpi/utilities/utcache.c                  |   18 
 drivers/acpi/utilities/utcopy.c                   |   41 
 drivers/acpi/utilities/utdebug.c                  |   65 
 drivers/acpi/utilities/utdelete.c                 |   62 
 drivers/acpi/utilities/uteval.c                   |  141 +-
 drivers/acpi/utilities/utglobal.c                 |   68 -
 drivers/acpi/utilities/utinit.c                   |   26 
 drivers/acpi/utilities/utmath.c                   |    8 
 drivers/acpi/utilities/utmisc.c                   |  295 ++--
 drivers/acpi/utilities/utmutex.c                  |   42 
 drivers/acpi/utilities/utobject.c                 |   23 
 drivers/acpi/utilities/utresrc.c                  |  266 ++--
 drivers/acpi/utilities/utstate.c                  |   36 
 drivers/acpi/utilities/utxface.c                  |   44 
 drivers/acpi/utils.c                              |    2 
 drivers/acpi/video.c                              |   23 
 drivers/char/agp/hp-agp.c                         |    2 
 drivers/char/hpet.c                               |    5 
 drivers/char/sonypi.c                             |   10 
 drivers/pnp/pnpacpi/rsparser.c                    |  199 +--
 include/acpi/acconfig.h                           |   44 
 include/acpi/acdisasm.h                           |  185 ++
 include/acpi/acdispat.h                           |    6 
 include/acpi/acevents.h                           |    4 
 include/acpi/acexcep.h                            |    6 
 include/acpi/acglobal.h                           |   29 
 include/acpi/aclocal.h                            |  308 ++--
 include/acpi/acmacros.h                           |   95 -
 include/acpi/acnamesp.h                           |   28 
 include/acpi/acobject.h                           |  188 +-
 include/acpi/acopcode.h                           |    2 
 include/acpi/acoutput.h                           |   10 
 include/acpi/acparser.h                           |   18 
 include/acpi/acpi_bus.h                           |   10 
 include/acpi/acpiosxf.h                           |   41 
 include/acpi/acpixf.h                             |    4 
 include/acpi/acresrc.h                            |   20 
 include/acpi/acstruct.h                           |  131 +-
 include/acpi/actables.h                           |    6 
 include/acpi/actbl.h                              |  406 +++---
 include/acpi/actbl1.h                             |  639 ++++++++-
 include/acpi/actbl2.h                             |  230 ---
 include/acpi/actypes.h                            |   90 -
 include/acpi/acutils.h                            |   99 -
 include/acpi/amlcode.h                            |    6 
 include/acpi/amlresrc.h                           |  111 -
 include/acpi/pdc_intel.h                          |    5 
 include/acpi/platform/acenv.h                     |   47 
 include/acpi/platform/aclinux.h                   |   23 
 include/acpi/processor.h                          |   27 
 include/asm-i386/apicdef.h                        |    1 
 include/asm-x86_64/acpi.h                         |    2 
 include/asm-x86_64/apicdef.h                      |    2 
 include/linux/cpufreq.h                           |    4 
 177 files changed, 6617 insertions(+), 5295 deletions(-)

through these commits:

Adrian Bunk:
[ACPI] drivers/acpi/video.c: fix error path NULL pointer dereference
ACPI: Kconfig: ACPI should depend on, not select PCI

Alexey Starikovskiy:
ACPI: execute Notify() handlers on new thread

Andi Kleen:
[ACPI] fix "nolapic" flag in ACPI mode

Andreas Mohr:
ACPI: apply "__read_mostly" to processor_idle.c loop module parameters
and friends

Andrew Morton:
ACPI: UP build fix for bugzilla-5737
ACPI: asus_acpi_init(): propagate correct return value

Arjan van de Ven:
sem2mutex: drivers/acpi/processor_perflib.c

Arnaud Patard:
ACPI: suppress power button event on S3 resume

Ashok Raj:
ACPI: build fix for u8 cpu_index
ACPI: Allow hot-add of ejected processor
x86_64: Remove stale lapic definition from apicdef.h

Bjorn Helgaas:
PNPACPI: fix non-memory address space descriptor handling
PNPACPI: remove some code duplication
PNPACPI: whitespace cleanup
ACPI: request correct fixed hardware resource type (MMIO vs I/O port)
ACPI: Display "ACPI" to motherboard resources in /proc/io{mem,port}
ACPI: make acpi_bus_register_driver() return success/failure, not device
count
ACPI: update asus_acpi driver registration to unload on failure
ACPI: fix sonypi ACPI driver registration to unregister on failure
ACPI: simplify scan.c coding
ACPI: fix memory hotplug range length handling
HPET: fix ACPI memory range length handling
ACPI: remove __init/__exit from Asus .add()/.remove() methods
ACPI: Don't print internal BIOS names of wakeup devices
ACPI: acpi_bus_unregister_driver() returns void

Bob Moore:

      [ACPI] ACPICA 20060210
      ACPI: ACPICA 20060217
      ACPI: ACPICA 20060310
      [ACPI] ACPICA 20060317
      ACPI: ACPICA 20060331
      ACPI: ACPICA 20060421
      ACPI: ACPICA 20060512
      ACPI: ACPICA 20060526
      ACPI: ACPICA 20060608

Dave Jones:
[ACPI] fix possible acpi thermal leak in failure path

David Shaohua Li:
[ACPI] enable SMP C-states on x86_64

Ingo Molnar:
sem2mutex: acpi, acpi_link_lock

Irwan Djajadi:
[ACPI] drivers/acpi/hotkey.c: check kmalloc return value

Jeremy Fitzhardinge:
ACPI: Allow a WAN module enable/disable on a Thinkpad X60.

Jiri Slaby:
ACPI: EC acpi-ecdt-uid-hack

KAMEZAWA Hiroyuki:
ACPI: use for_each_possible_cpu() instead of for_each_cpu() ACPI add ia64 exports to build acpi_memhotplug as a module

Konstantin Karasyov:
ACPI: create acpi_fan_suspend()/acpi_fan_resume()
ACPI: create acpi_thermal_resume()

Len Brown:
ACPI: enable BIOS warning
[ACPI] document cmdline acpi_os_name=
Revert "ACPI: fix vendor resource length computation"
ACPI: inline trivial acpi_os_get_thread_id()
ACPI: ia64 buildfix
ACPI: ia64 buildfix
ACPI: delete newly added debugging macros in processor_perflib.c
ACPI: silence ia64 build warning
ACPI: delete unused acpi_bus_drivers_lock
ACPI: pass pm_message_t from acpi_device_suspend() to root_suspend()
ACPI: resolve merge conflict between sem2mutex and processor_perflib.c

Patrick Mochel:
ACPI: create acpi_device_suspend()/acpi_device_resume()

Rich Townsend:
ACPI: replace spin_lock_irq with mutex for ec poll mode

Vasily Averin:
ACPI: fix potential memory leak in acpi_evaluate_integer() error path
ACPI: fix memory leak in acpi_thermal_add() error path

Venkatesh Pallipadi:
P-state software coordination for ACPI core P-state software coordination for acpi-cpufreq P-state software coordination for speedstep-centrino Enable P-state software coordination via _PDC

Yu, Luming:
ACPI: fix potential memory leaks in driver/acpi/video.c

with this log:

commit ae6c859b7dcd708efadf1c76279c33db213e3506
Merge: 5b4b7a2... 427abfa...
Author: Len Brown <[email protected]>
Date: Mon Jun 19 18:01:24 2006 -0400

merge linus into release branch

commit 5b4b7a236e7787f16af4e15a6253d46d8e794be6
Merge: 785fccc... 872d83d...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 23:17:14 2006 -0400

Pull button into release branch

commit 872d83d00f67021e036d75aab3b7c6e3fc7e29ee

Author: Arnaud Patard <[email protected]>
Date:   Thu Apr 27 05:25:00 2006 -0400

ACPI: suppress power button event on S3 resume

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

Note that this fix depends on a fix in ACPICA 20060608 to replace a semaphore with a spin-lock.

commit 785fcccd68bd4dc436f75fd4cd40e8557966c86d

Author: Len Brown <[email protected]>
Date:   Thu Jun 15 22:19:31 2006 -0400

ACPI: resolve merge conflict between sem2mutex and processor_perflib.c

commit d42510a0f58c2583c37c8e9b7548e3a68545863a
Merge: 8f2ddb3... 193de0c...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 21:39:25 2006 -0400

Pull bugzilla-5737 into release branch

Conflicts:

arch/x86_64/kernel/acpi/processor.c

commit 8f2ddb37e564a9616c05fa0d5652e0049072a730
Merge: 5b542e4... 74ce146...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 21:36:11 2006 -0400

Pull bugzilla-5000 into release branch

commit 5b542e4422766d644ca303b8a47b27ec9eeeef3a
Merge: e4151ea... f9a6ee1...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 21:34:21 2006 -0400

Pull bugzilla-5764 into release branch

commit e4151eaa7f231296d027b8fb34e2b855a3480836
Merge: c080a3e... 42adb53...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 21:33:36 2006 -0400

Pull ibm_acpi into release branch

commit c080a3e69dfb58ae9b8c7e70a1e33f4f4e493ea7
Merge: bf891bd... 36e4309...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 21:31:47 2006 -0400

Pull sem2mutex into release branch

commit bf891bd65de65284f3964216fcde493dba5149db
Merge: de59e3a... 9c576ff...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 21:31:17 2006 -0400

Pull trivial2 into release branch

commit de59e3aa6eda7fc7cd6c717f084930f6a841b602
Merge: 69cd291... 973bf49...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 21:30:59 2006 -0400

Pull video into release branch

commit 69cd291c6bbc6647fe3783257c5a2e076e808f71
Merge: 35a5d9e... 06ea8e0...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 21:28:57 2006 -0400

Pull acpi_bus_register_driver into release branch

Conflicts:

drivers/acpi/asus_acpi.c
drivers/acpi/scan.c

commit 35a5d9ed9fedb74c22cb19ff7d749289473144e0
Merge: 3e8e7c9... 0eacee5...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:42:14 2006 -0400

Pull bugzilla-5452 into release branch

commit 3e8e7c93d7eb091463839b5212789c4aae09459e
Merge: 36a557d... ffd642e...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:41:53 2006 -0400

Pull bugzilla-5653 into release branch

commit 36a557d1f48669c57f59e37d9334400a29e4e53c
Merge: 4e8f10b... 6665bda...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:40:39 2006 -0400

Pull trivial into release branch

commit 4e8f10b7ccf1c3c53a818a157962074a7340732e
Merge: 6351847... 9cfda2c...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:38:30 2006 -0400

Pull novell-bugzilla-156426 into release branch

Conflicts:

arch/i386/kernel/acpi/boot.c

commit 63518472c05a351d779f35803e6ccfb361ae630a
Merge: e44e20f... e6f1f3c...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:37:09 2006 -0400

Pull trivial1 into release branch

commit e44e20ff1273cf96c7f195297208f654c49295cf
Merge: 3145012... 1c6e7d0...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:36:43 2006 -0400

Pull pnpacpi into release branch

commit 3145012c1c34a3504a2234bd2034ca6ea4767bc5
Merge: 1465887... cd090ee...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:36:16 2006 -0400

Pull motherboard into release branch

commit 1465887cfe79889273e3fd3aaf862e7ec3ee244f
Merge: 60e04a5... 1300124...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:35:57 2006 -0400

Pull Kconfig into release branch

commit 60e04a5c533785c23ce6b76a6e5058328fe68edb
Merge: 61fb46c... ff2fc3e...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:35:37 2006 -0400

Pull ec into release branch

commit 61fb46c5b3578fda7cc780e8bc53b3e8f8c1a143
Merge: 59f720e... eefa27a...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:35:15 2006 -0400

Pull cpu-hotplug into release branch

commit 59f720eb5a4337b2c4fc0b4c6cfd9c144e492aa8
Merge: b3899c6... 9224a86...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:34:42 2006 -0400

Pull address_range into release branch

commit b3899c6613160b18f79e4356184de55311302fe4
Merge: 553698f... 4c90ece...
Author: Len Brown <[email protected]>
Date: Thu Jun 15 15:19:48 2006 -0400

Pull acpica into release branch

commit 4c90ece249992c7a2e3fc921e5cdb8eb92193067

Author: Bob Moore <[email protected]>
Date:   Thu Jun 8 16:29:00 2006 -0400

ACPI: ACPICA 20060608

Converted the locking mutex used for the ACPI hardware to a spinlock. This change should eliminate all problems caused by attempting to acquire a semaphore at interrupt level, and it means that all ACPICA external interfaces that directly access the ACPI hardware can be safely called from interrupt level.

Fixed a regression introduced in 20060526 where the ACPI device initialization could be prematurely aborted with an AE_NOT_FOUND if a device did not have an optional _INI method.

Fixed an IndexField issue where a write to the Data Register should be limited in size to the AccessSize (width) of the IndexField itself. (BZ 433, Fiodor Suietov)

Fixed problem reports (Valery Podrezov) integrated: - Allow store of ThermalZone objects to Debug object.
http://bugzilla.kernel.org/show_bug.cgi?id=5369
http://bugzilla.kernel.org/show_bug.cgi?id=5370

Fixed problem reports (Fiodor Suietov) integrated: - acpi_get_table_header() doesn't handle multiple instances correctly (BZ 364)

Removed four global mutexes that were obsolete and were no longer being used.

commit 4119532c95547821dbe72d6916dfa1b2148475b3

Author: Bob Moore <[email protected]>
Date:   Fri May 26 16:36:00 2006 -0400

ACPI: ACPICA 20060526

Restructured, flattened, and simplified the internal interfaces for namespace object evaluation - resulting in smaller code, less CPU stack use, and fewer interfaces. (With assistance from Mikhail Kouzmich)

Fixed a problem with the CopyObject operator where the first parameter was not typed correctly for the parser, interpreter, compiler, and disassembler. Caused various errors and unexpected behavior.

Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits produced incorrect results with some C compilers. Since the behavior of C compilers when the shift value is larger than the datatype width is apparently not well defined, the interpreter now detects this condition and simply returns zero as expected in all such cases. (BZ 395)

Fixed problem reports (Valery Podrezov) integrated: - Update String-to-Integer conversion to match ACPI 3.0A spec
http://bugzilla.kernel.org/show_bug.cgi?id=5329
Allow interpreter to handle nested method declarations
http://bugzilla.kernel.org/show_bug.cgi?id=5361

Fixed problem reports (Fiodor Suietov) integrated: - acpi_terminate() doesn't free debug memory allocation list objects (BZ 355) - After Core Subsystem shutdown, acpi_subsystem_status() returns AE_OK (BZ 356) - acpi_os_unmap_memory() for RSDP can be invoked inconsistently (BZ 357) - Resource Manager should return AE_TYPE for non-device objects (BZ 358) - Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) - Use acpi_os_free() instead of ACPI_FREE in acpi_rs_set_srs_method_data (BZ 360)
- Incomplete cleanup branch in acpi_ps_parse_aml (BZ 361) - Incomplete cleanup branch in acpi_ds_delete_walk_state (BZ 362)
- acpi_get_table_header returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365) - Status of the Global Initialization Handler call not used (BZ 366) - Incorrect object parameter to Global Initialization Handler (BZ 367)

commit b8d35192c55fb055792ff0641408eaaec7c88988

Author: Alexey Starikovskiy <[email protected]>
Date:   Fri May 5 03:23:00 2006 -0400

ACPI: execute Notify() handlers on new thread

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

Thanks to Peter Wainwright for isolating the issue. Thanks to Andi Kleen and Bob Moore for feedback. Thanks to Richard Mace and others for testing. Updates by Konstantin Karasyov.

commit 958dd242b691f64ab4632b4903dbb1e16fee8269

Author: Bob Moore <[email protected]>
Date:   Fri May 12 17:12:00 2006 -0400

ACPI: ACPICA 20060512

Replaced the acpi_os_queue_for_execution() with a new interface named acpi_os_execute(). The major difference is that the new interface does not have a Priority parameter, this appeared to be useless and has been replaced by a Type parameter. The Type tells the OS what type of execution is being requested, such as global lock handler, notify handler, GPE handler, etc. This allows the host to queue and execute the request as appropriate for the request type, possibly using different work queues and different priorities for the various request types. This enables fixes for multithreading deadlock problems such as
http://bugzilla.kernel.org/show_bug.cgi?id=5534
(Alexey Starikovskiy and Bob Moore)

Fixed a possible memory leak associated with the support for the so-called "implicit return" ACPI extension. Reported by FreeBSD (Fiodor Suietov)
http://bugzilla.kernel.org/show_bug.cgi?id=6514

Fixed a problem with the Load() operator where a table load from an operation region could overwrite an internal table buffer by up to 7 bytes and cause alignment faults on IPF systems. (With assistance from Luming Yu)

commit b229cf92eee616c7cb5ad8cdb35a19b119f00bc8

Author: Bob Moore <[email protected]>
Date:   Fri Apr 21 17:15:00 2006 -0400

ACPI: ACPICA 20060421

Removed a device initialization optimization introduced in 20051216 where the _STA method was not run unless an _INI was also present for the same device. This optimization could cause problems because it could allow _INI methods to be run within a not-present device subtree (If a not-present device had no _INI, _STA would not be run, the not-present status would not be discovered, and the children of the device would be incorrectly traversed.)

Implemented a new _STA optimization where namespace subtrees that do not contain _INI are identified and ignored during device initialization. Selectively running _STA can significantly improve boot time on large machines (with assistance from Len Brown.)

Implemented support for the device initialization case where the returned _STA flags indicate a device not-present but functioning. In this case, _INI is not run, but the device children are examined for presence, as per the ACPI specification.

Implemented an additional change to the IndexField support in order to conform to MS behavior. The value written to the Index Register is not simply a byte offset, it is a byte offset in units of the access width of the parent Index Field. (Fiodor Suietov)

Defined and deployed a new OSL interface, acpi_os_validate_address(). This interface is called during the creation of all AML operation regions, and allows the host OS to exert control over what addresses it will allow the AML code to access. Operation Regions whose addresses are disallowed will cause a runtime exception when they are actually accessed (will not affect or abort table loading.)

Defined and deployed a new OSL interface, acpi_os_validate_interface(). This interface allows the host OS to match the various "optional" interface/behavior strings for the _OSI predefined control method as appropriate (with assistance from Bjorn Helgaas.)

Restructured and corrected various problems in the exception handling code paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod (with assistance from Takayoshi Kochi.)

Modified the Linux source converter to ignore quoted string literals while converting identifiers from mixed to lower case. This will correct problems with the disassembler and other areas where such strings must not be modified.

The ACPI_FUNCTION_* macros no longer require quotes around the function name. This allows the Linux source converter to convert the names, now that the converter ignores quoted strings.

commit 793c2388cae3fd023b3b5166354931752d42353c

Author: Bob Moore <[email protected]>
Date:   Fri Mar 31 00:00:00 2006 -0500

ACPI: ACPICA 20060331

Implemented header file support for the following additional ACPI tables: ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, all current and known ACPI tables are now defined in the ACPICA headers and are available for use by device drivers and other software.

Implemented support to allow tables that contain ACPI names with invalid characters to be loaded. Previously, this would cause the table load to fail, but since there are several known cases of such tables on existing machines, this change was made to enable ACPI support for them. Also, this matches the behavior of the Microsoft ACPI implementation.
https://bugzilla.novell.com/show_bug.cgi?id=147621

Fixed a couple regressions introduced during the memory optimization in the 20060317 release. The namespace node definition required additional reorganization and an internal datatype that had been changed to 8-bit was restored to 32-bit. (Valery Podrezov)

Fixed a problem where a null pointer passed to acpi_ut_delete_generic_state() could be passed through to acpi_os_release_object which is unexpected. Such null pointers are now trapped and ignored, matching the behavior of the previous implementation before the deployment of acpi_os_release_object(). (Valery Podrezov, Fiodor Suietov)

Fixed a memory mapping leak during the deletion of a SystemMemory operation region where a cached memory mapping was not deleted. This became a noticeable problem for operation regions that are defined within frequently used control methods. (Dana Meyers)

Reorganized the ACPI table header files into two main
files: one for the ACPI tables consumed by the ACPICA core, and another for the miscellaneous ACPI tables that are consumed by the drivers and other software. The various FADT definitions were merged into one common section and three different tables (ACPI 1.0, 1.0+, and 2.0)

commit 61686124f47d7c4b78610346c5f8f9d8a6d46bb5

Author: Bob Moore <[email protected]>
Date:   Fri Mar 17 16:44:00 2006 -0500

[ACPI] ACPICA 20060317

Implemented the use of a cache object for all internal namespace nodes. Since there are about 1000 static nodes in a typical system, this will decrease memory use for cache implementations that minimize per-allocation overhead (such as a slab allocator.)

Removed the reference count mechanism for internal namespace nodes, since it was deemed unnecessary. This reduces the size of each namespace node by about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, and 32 bytes for the 64-bit case.

Optimized several internal data structures to reduce object size on 64-bit platforms by packing data within the 64-bit alignment. This includes the frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static instances corresponding to the namespace objects.

Added two new strings for the predefined _OSI method:
"Windows 2001.1 SP1" and "Windows 2006".

Split the allocation tracking mechanism out to a separate file, from utalloc.c to uttrack.c. This mechanism appears to be only useful for application-level code. Kernels may wish to not include uttrack.c in distributions.

Removed all remnants of the obsolete ACPI_REPORT_* macros and the associated code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING macros.)

commit 42adb53cb36d19862a02d3087e2e3d9dab39e5fa

Author: Jeremy Fitzhardinge <[email protected]>
Date:   Thu Jun 1 17:41:00 2006 -0400

ACPI: Allow a WAN module enable/disable on a Thinkpad X60.

The WAN (Sierra Wireless EV-DO) module is very similar to the Bluetooth module. It appears on the USB bus when enabled. It can be controlled via hot key, or directly via ACPI. This change enables direct control via ACPI.

I have tested it on my Lenovo Thinkpad X60; I guess it will probably work on other Thinkpad models which come with this module installed.

Ack'd by: Borislav Deianov <[email protected]>

commit f9a6ee1afb84fd767508428ec5d1df4fb60a03ad

Author: Rich Townsend <[email protected]>
Date:   Mon Dec 19 23:07:00 2005 -0500

ACPI: replace spin_lock_irq with mutex for ec poll mode

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

commit 74ce1468128e299fe6a85e7e78e528e45e72d6d9

Author: Konstantin Karasyov <[email protected]>
Date:   Mon May 8 08:32:00 2006 -0400

ACPI: create acpi_thermal_resume()

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

commit 0feabb01d93e5801d1127416a66cfc3963280bca

Author: Konstantin Karasyov <[email protected]>
Date:   Mon May 8 00:00:00 2006 -0400

ACPI: create acpi_fan_suspend()/acpi_fan_resume()

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

commit 531881d665ca011326bb466b97b07c95dee8d0a1

Author: Len Brown <[email protected]>
Date:   Mon May 15 03:06:41 2006 -0400

ACPI: pass pm_message_t from acpi_device_suspend() to root_suspend() in case we want to decode it for future use in acpi_op_suspend(..., state)

also, inline new 1-liner static function

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

commit 5b3272655a8e8a9a6e2503bc5a88fc9d9c8292a4

Author: Patrick Mochel <[email protected]>
Date:   Wed May 10 10:33:00 2006 -0400

ACPI: create acpi_device_suspend()/acpi_device_resume()

updated and tested by Konstantin Karasyov

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

Signed-off-by Konstantin Karasyov <konstantin.karasyov @intel.com>

commit 9c576ff1bc9ab42d06457e68e39c121481138562

Author: KAMEZAWA Hiroyuki <[email protected]>
Date:   Thu Apr 27 05:25:00 2006 -0400

ACPI add ia64 exports to build acpi_memhotplug as a module

commit 973bf491a55b825740f0d8d300b50bcd3d6fb8de

Author: Yu, Luming <[email protected]>
Date:   Thu Apr 27 05:25:00 2006 -0400

ACPI: fix potential memory leaks in driver/acpi/video.c

acpi_video_bus_get_one_device() and other functions in driver/acpi/video.c
do
not release allocated memory on remove and on the error path.

commit ebd5f2ca811b75f7145fa487748f26430c584a72

Author: Andrew Morton <[email protected]>
Date:   Sat May 13 22:56:00 2006 -0400

ACPI: asus_acpi_init(): propagate correct return value

commit b6835052a6aa00536343b6d2127fc65cd814a040

Author: Andreas Mohr <[email protected]>
Date:   Thu Apr 27 05:25:00 2006 -0400

ACPI: apply "__read_mostly" to processor_idle.c loop module parameters and
friends

make pm_idle_save, nocst and bm_history __read_mostly remove initializer from static 'first_run'.

commit 09047e75f69428dcfa977b326256085154068b65

Author: Vasily Averin <[email protected]>
Date:   Thu Apr 27 05:25:00 2006 -0400

ACPI: fix memory leak in acpi_thermal_add() error path

commit 64385f2fd8bc9d8803c8d10dcd391871cb126b77

Author: Vasily Averin <[email protected]>
Date:   Thu Apr 27 05:25:00 2006 -0400

ACPI: fix potential memory leak in acpi_evaluate_integer() error path

commit 06ea8e08ae7e7e450b6a78e7ce5e10b3c5f954ea

Author: Bjorn Helgaas <[email protected]>
Date:   Thu Apr 27 05:25:00 2006 -0400

ACPI: acpi_bus_unregister_driver() returns void

Nobody looks at the return value, and this brings it into line with pci_unregister_driver(), etc. Also removed validation of the driver pointer passed in to register and unregister. More consistent, and we'll find bugs faster if we fault rather than returning an error that's
ignored.

Also makes internal functions acpi_device_unregister() and acpi_driver_detach() void, since nobody uses their returns either.

commit 193de0c79da580eb33a66113b62e2378fc1fb629

Author: KAMEZAWA Hiroyuki <[email protected]>
Date:   Thu Apr 27 05:25:00 2006 -0400

ACPI: use for_each_possible_cpu() instead of for_each_cpu()

for_each_cpu() actually iterates across all possible CPUs. We've had
mistakes
in the past where people were using for_each_cpu() where they should have
been
iterating across only online or present CPUs. This is inefficient and possibly buggy.

We're renaming for_each_cpu() to for_each_possible_cpu() to avoid this in
the
future.

commit 36e430951af0b0d1bdfd50ce22e70079d02646df

Author: Ingo Molnar <[email protected]>
Date:   Thu Apr 27 05:25:00 2006 -0400

sem2mutex: acpi, acpi_link_lock

Semaphore to mutex conversion.

The conversion was generated via scripts, and the result was validated automatically via a script as well.

commit 415d320a2384bb80d2be98b1dfa41594e085012d

Author: Len Brown <[email protected]>
Date:   Sat May 13 21:35:56 2006 -0400

ACPI: delete unused acpi_bus_drivers_lock

acpi_bus_drivers is protected by acpi_device_lock

commit 65c19bbd28cba587d9bd24feccf7272da18481a7

Author: Arjan van de Ven <[email protected]>
Date:   Thu Apr 27 05:25:00 2006 -0400

sem2mutex: drivers/acpi/processor_perflib.c

Semaphore to mutex conversion.

The conversion was generated via scripts, and the result was validated automatically via a script as well.

commit 5810452d00ae5fed7f720185d02d79ec9d15b91e

Author: Len Brown <[email protected]>
Date:   Sat May 13 01:12:15 2006 -0400

ACPI: silence ia64 build warning

When building sim_defconfig, which does not define CONFIG_ACPI arch/ia64/kernel/acpi.c:71: warning: 'acpi_madt_rev' defined but not used

really acpi.c should not be built when CONFIG_ACPI=n...

commit 9011bff4bdc0fef1f9a782d7415c306ee61826c9

Author: Len Brown <[email protected]>
Date:   Thu May 11 00:28:12 2006 -0400

ACPI: delete newly added debugging macros in processor_perflib.c

commit e6f1f3c54974a30c65ea0b699809d12f0aa04272

Author: Bjorn Helgaas <[email protected]>
Date:   Mon Apr 3 13:14:00 2006 -0400

ACPI: Don't print internal BIOS names of wakeup devices

Internal BIOS names like these should be exposed to the user as little as possible:

ACPI wakeup devices: C069 C0CE C1D1 C0DE C1D4

Eventually, the "wakeup" property of a device should be exported via the device tree, not by a printk of an internal BIOS name. For the hard-core, these are still available in /proc/acpi/wakeup_devices, just not printed to dmesg.

commit 144c87b4e03759214c362d267e01c2905f1ab095

Author: Len Brown <[email protected]>
Date:   Sun Apr 2 00:15:39 2006 -0500

ACPI: ia64 buildfix

arch/ia64/hp/common/sba_iommu.c used ACPI_MEM_FREE instead of kfree()

commit 7f048801f4a6767433d1aeefd9c24372515265f8

Author: Len Brown <[email protected]>
Date:   Sat Apr 1 23:45:39 2006 -0500

ACPI: ia64 buildfix

commit c12ea918ee175ceb3a258cd81f1c43e897d0c0bc

Author: Ashok Raj <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

x86_64: Remove stale lapic definition from apicdef.h

commit eefa27a93a0490902f33837ac86dbcf344b3aa29

Author: Ashok Raj <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

ACPI: Allow hot-add of ejected processor

acpi_eject_store() didn't trim processors, causing subsequent hot-add to fail.

commit ff2fc3e9e3edb918b6c6b288485c6cb267bc865e

Author: Jiri Slaby <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

ACPI: EC acpi-ecdt-uid-hack

On some boxes ecdt uid may be equal to 0, so do not test for uids
equality,
so that fake handler will be unconditionally removed to allow loading the real one.

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

commit df42baa0d8e54df18dd9366dd7c93d6be7d5d063

Author: Ashok Raj <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

ACPI: build fix for u8 cpu_index

Local apic entries are only 8 bits, but it seemed to not be caught with u8 return value result in the check

cpu_index >= NR_CPUS becomming always false.

drivers/acpi/processor_core.c: In function `acpi_processor_get_info':
drivers/acpi/processor_core.c:483: warning: comparison is always false due
to limited range of data type

commit 200739c179c63d21804e9e8e2ced265243831579

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

ACPI: remove __init/__exit from Asus .add()/.remove() methods

Even though the devices claimed by asus_acpi.c can not be hot-plugged, the driver registration infrastructure allows the .add() and .remove() methods
to
be called at any time while the driver is registered. So remove __init
and
__exit from them.

commit 9224a867c497053842dc595e594ca6d32112221f

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

HPET: fix ACPI memory range length handling

ACPI address space descriptors contain _MIN, _MAX, and _LEN. _MIN and
_MAX
are the bounds within which the region can be moved (this is clarified in Table 6-38 of the ACPI 3.0 spec). We should use _LEN to determine the
size
of the region, not _MAX - _MIN + 1.

commit 459c7266d7a5c1730169258217e25fdd1b7ca854

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

ACPI: fix memory hotplug range length handling

Address space descriptors contain _MIN, _MAX, and _LEN. _MIN and _MAX are the bounds within which the region can be moved (this is clarified in
Table
6-38 of the ACPI 3.0 spec). We should use _LEN to determine the size of the region, not _MAX - _MIN + 1.

commit 1a36561607abf1405b56a41aac2fd163429cd1f8

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

ACPI: simplify scan.c coding

No functional changes; just remove leftover, unused "buffer" and simplify control flow (no need to remember error values and goto the end, when we
can
simply return the value directly).

commit e4513a57ef719d3d6d1cee0ca4d9f4016aa452bb

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

ACPI: fix sonypi ACPI driver registration to unregister on failure

Remove the assumption that acpi_bus_register_driver() returns the number
of
devices claimed. Returning the count is unreliable because devices may be hot-plugged in the future (admittedly not applicable for this driver).

This also fixes a bug: if sonypi_acpi_driver was registered but found no devices, sonypi_exit() did not unregister it.

commit 578b333bfe8eb1360207a08a53c321822a8f40f3

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

ACPI: update asus_acpi driver registration to unload on failure

Remove the assumption that acpi_bus_register_driver() returns the number
of
devices claimed. Returning the count is unreliable because devices may be hot-plugged in the future (admittedly not applicable for this driver).

Since the hardware for this driver is not hot-pluggable, determine whether
the
hardware is present by noticing calls to the .add() method. It would be better to probe the ACPI namespace for the ASUS HIDs, and load the driver
only
when we find one, but ACPI doesn't support that yet.

I don't have an ASUS laptop to test on, but on my HP dl360, it does report
the
appropriate error when attempting to load the module:

$ sudo insmod drivers/acpi/asus_acpi.ko
insmod: error inserting 'drivers/acpi/asus_acpi.ko': -1 No such device

commit 9d9f749b316ac21cb59ad3e595cbce469b409e1a

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

ACPI: make acpi_bus_register_driver() return success/failure, not device
count

acpi_bus_register_driver() should not return the number of devices
claimed.
We're not asking to find devices, we're making a driver available to
devices,
including hot-pluggable devices that may appear in the future.

I audited all callers of acpi_bus_register_driver(), and except
asus_acpi.c
and sonypi.c (fixed in previous patches), all either ignore the return
value
or test only for failure (<0).

commit cd090eedd85256829f762677d0752a846c1b88b9

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500
    ACPI: Display "ACPI" to motherboard resources in /proc/io{mem,port}
    
    Add "ACPI" to motherboard resource allocation names, so people have a clue
    about where to look.  And remove some trailing spaces.
    
    Changes these /proc/iomem entries from this:
    
        ff5c1004-ff5c1007 : PM_TMR
        ff5c1008-ff5c100b : PM1a_EVT_BLK
        ff5c100c-ff5c100d : PM1a_CNT_BLK
        ff5c1010-ff5c1013 : GPE0_BLK
        ff5c1014-ff5c1017 : GPE1_BLK
    
    to this:
    
        ff5c1004-ff5c1007 : ACPI PM_TMR
        ff5c1008-ff5c100b : ACPI PM1a_EVT_BLK
        ff5c100c-ff5c100d : ACPI PM1a_CNT_BLK
        ff5c1010-ff5c1013 : ACPI GPE0_BLK
        ff5c1014-ff5c1017 : ACPI GPE1_BLK
    
    Signed-off-by: Bjorn Helgaas <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Len Brown <[email protected]>

commit 81507ea9cfa64e9851b53e0fefebfa776eda9ecb

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

ACPI: request correct fixed hardware resource type (MMIO vs I/O port)

ACPI supports fixed hardware (PM_TMR, GPE blocks, etc) in either I/O port or MMIO space, but used to always request the regions from I/O space because it didn't check the address_space_id.

Sample ACPI fixed hardware in MMIO space (HP rx2600), was incorrectly reported in /proc/ioports, now reported in /proc/iomem:

ff5c1004-ff5c1007 : PM_TMR
ff5c1008-ff5c100b : PM1a_EVT_BLK
ff5c100c-ff5c100d : PM1a_CNT_BLK
ff5c1010-ff5c1013 : GPE0_BLK
ff5c1014-ff5c1017 : GPE1_BLK

commit 1c6e7d0aeecac38e66b1bb63e3eff07b2a1c2f2c

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

PNPACPI: whitespace cleanup

Tidy up whitespace. No functional change.

commit b5f2490b6e3317059e87ba40d4f659d1c30afc1f

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

PNPACPI: remove some code duplication

Factor out the duplicated switch from pnpacpi_count_resources() and pnpacpi_type_resources(). Remove the unnecessary re-initialization of resource->type and length from all the encode functions (id and length are originally set in the pnpacpi_build_resource_template() -> pnpacpi_type_resources() path).

commit 1acfb7f2b0d460ee86bdb25ad0679070ec8a5f0d

Author: Bjorn Helgaas <[email protected]>
Date:   Tue Mar 28 17:03:00 2006 -0500

PNPACPI: fix non-memory address space descriptor handling

Fix resource_type handling for QWORD, DWORD, and WORD Address Space Descriptors. Previously we ignored the resource_type, so I/O ports and
bus

    number ranges were incorrectly parsed as memory ranges.
    
    Sample PCI root bridge resources from HP rx2600 before this patch:
    
        # cat /sys/bus/pnp/devices/00:02/resources
        state = active
        mem 0x0-0x1f
        mem 0x0-0x3af
        mem 0x3e0-0x1fff
        mem 0x80000000-0x8fffffff
    
    With this patch:
    
        # cat /sys/bus/pnp/devices/00:02/resources
        state = active
        io 0x0-0x3af
        io 0x3e0-0x1fff
        mem 0x80000000-0x8fffffff
        mem 0x80004000000-0x80103fffffe
    
    Changes:
        0x0-0x1f PCI bus number range was incorrectly reported as memory, now
    	not reported at all
        0x0-0x3af I/O port range was incorrectly reported as memory
        0x3e0-0x1fff I/O port range was incorrectly reported as memory
        0x80004000000-0x80103fffffe memory range wasn't reported at all 

because
we only support PNP_MAX_MEM (4) memory resources

commit 7e1f19e50371e1d148226b64c8edc77fec47fa5b

Author: Andrew Morton <[email protected]>
Date:   Tue Mar 28 17:03:00 2006 -0500

ACPI: UP build fix for bugzilla-5737

cpu_online_map doesn't exist if !CONFIG_SMP.

commit 1300124f69cafc54331bc06e968a8dd67863f989

Author: Adrian Bunk <[email protected]>
Date:   Tue Mar 28 17:04:00 2006 -0500

ACPI: Kconfig: ACPI should depend on, not select PCI

Otherwise, illegal configurations like X86_VOYAGER=y, PCI=y are possible.

This patch also fixes the options select'ing ACPI to also select PCI.

commit ec7381d6bfd3e7b8d2880dd5e9d03b131b0603f6

Author: Len Brown <[email protected]>
Date:   Sat Apr 1 05:12:23 2006 -0500

ACPI: inline trivial acpi_os_get_thread_id()

acpi_os_get_thread_id() is used only for debugging code that is not enabled on Linux, so stub it out.

commit 8313524a0d466f451a62709aaedf988d8257b21c

Author: Bob Moore <[email protected]>
Date:   Tue Oct 3 00:00:00 2006 -0400

ACPI: ACPICA 20060310

Tagged all external interfaces to the subsystem with the new ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL macro. The default definition is NULL.

Added the ACPI_THREAD_ID type for the return value from acpi_os_get_thread_id(). This allows the host to define this as necessary to simplify kernel integration. The default definition is ACPI_NATIVE_UINT.

Valery Podrezov fixed two interpreter problems related to error processing, the deletion of objects, and placing invalid pointers onto the internal operator result stack.
http://bugzilla.kernel.org/show_bug.cgi?id=6028
http://bugzilla.kernel.org/show_bug.cgi?id=6151

Increased the reference count threshold where a warning is emitted for large reference counts in order to eliminate unnecessary warnings on systems with large namespaces (especially 64-bit.) Increased the value from 0x400 to 0x800.

Due to universal disagreement as to the meaning of the 'c' in the calloc() function, the ACPI_MEM_CALLOCATE macro has been renamed to ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and ACPI_FREE.

commit ea936b78f46cbe089a4ac363e1682dee7d427096

Author: Bob Moore <[email protected]>
Date:   Fri Feb 17 00:00:00 2006 -0500

ACPI: ACPICA 20060217

Implemented a change to the IndexField support to match the behavior of the Microsoft AML interpreter. The value written to the Index register is now a byte offset, no longer an index based upon the width of the Data register. This should fix IndexField problems seen on some machines where the Data register is not exactly one byte wide. The ACPI specification will be clarified on this point.

Fixed a problem where several resource descriptor types could overrun the internal descriptor buffer due to size miscalculation: VendorShort, VendorLong, and Interrupt. This was noticed on IA64 machines, but could affect all platforms.

Fixed a problem where individual resource descriptors were misaligned within the internal buffer, causing alignment faults on IA64 platforms.

commit 52fc0b026e99b5d5d585095148d997d5634bbc25

Author: Bob Moore <[email protected]>
Date:   Mon Oct 2 00:00:00 2006 -0400

[ACPI] ACPICA 20060210

Removed a couple of extraneous ACPI_ERROR messages that appeared during normal execution. These became apparent after the conversion from ACPI_DEBUG_PRINT.

Fixed a problem where the CreateField operator could hang if the BitIndex or NumBits parameter referred to a named object. From Valery Podrezov.
http://bugzilla.kernel.org/show_bug.cgi?id=5359

Fixed a problem where a DeRefOf operation on a buffer object incorrectly failed with an exception. This also fixes a couple of related RefOf and DeRefOf issues. From Valery Podrezov.
http://bugzilla.kernel.org/show_bug.cgi?id=5360
http://bugzilla.kernel.org/show_bug.cgi?id=5387
http://bugzilla.kernel.org/show_bug.cgi?id=5392

Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead of AE_STRING_LIMIT on an out-of-bounds Index() operation. From Valery Podrezov.
http://bugzilla.kernel.org/show_bug.cgi?id=5480

Implemented a memory cleanup at the end of the execution of each iteration of an AML While() loop, preventing the accumulation of outstanding objects. From Valery Podrezov.
http://bugzilla.kernel.org/show_bug.cgi?id=5427

Eliminated a chunk of duplicate code in the object resolution code. From Valery Podrezov.
http://bugzilla.kernel.org/show_bug.cgi?id=5336

Fixed several warnings during the 64-bit code generation.

commit 46358614ed5b031797522f1020e989c959a8d8a6

Author: Len Brown <[email protected]>
Date:   Fri Mar 31 02:16:19 2006 -0500

Revert "[PATCH] ACPI: fix vendor resource length computation"

fixed in a different way by a subsequent ACPICA patch

This reverts 35b73ceb9a7d10c81bd9e79e8485f7079ef2b40e commit.

commit 6665bda76461308868bd1e52caf627f4cb29ed32

Author: Adrian Bunk <[email protected]>
Date:   Sat Mar 11 10:12:00 2006 -0500

[ACPI] drivers/acpi/video.c: fix error path NULL pointer dereference

The Coverity checker spotted this bug in
acpi_video_device_lcd_query_levels().

commit fdc136ccd3332938e989439c025c363f8479f3e6

Author: Dave Jones <[email protected]>
Date:   Wed Mar 8 22:12:00 2006 -0500

[ACPI] fix possible acpi thermal leak in failure path

Coverity: #601

commit a1f9e65e2085e0a87f28a4d5a8ae43b32c087f24

Author: Len Brown <[email protected]>
Date:   Wed Jan 25 23:47:36 2006 -0500

[ACPI] document cmdline acpi_os_name=

This can sometimes be used to work around broken BIOS. Use "Microsoft Windows" to take the same path through the BIOS as Windows98 would.

The default is "Microsoft Windows NT", which is what NT and later versions of Windows use, and is the most tested path through most BIOS.

Set it to anything else, including "Linux", at your own risk, as it seems that virtually no BIOS has been tested with anything but the two options above.

Note that this uses the legacy _OS interface, so we don't expect this to ever change.

commit 1fee94034917aa711fcbd4ebf4c36f7ebd9fa7d6

Author: Irwan Djajadi <[email protected]>
Date:   Fri Jan 20 15:28:00 2006 -0500

[ACPI] drivers/acpi/hotkey.c: check kmalloc return value

commit 0eacee585a89ce5827b572a73a024931506bef48

Author: Len Brown <[email protected]>
Date:   Fri Mar 31 00:37:23 2006 -0500

ACPI: enable BIOS warning

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

commit 9cfda2c94df61c9f859b474abe774c65a4464d0a

Author: Andi Kleen <[email protected]>
Date:   Mon Mar 27 02:24:32 2006 -0500

[ACPI] fix "nolapic" flag in ACPI mode

commit d52bb94d56676acd9bdac8e097257a87b4b1b2e1

Author: Venkatesh Pallipadi <[email protected]>
Date:   Wed Dec 14 15:05:00 2005 -0500

Enable P-state software coordination via _PDC

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

commit c52851b60cc0aaaf974ff0e49989fb698220447d

Author: Venkatesh Pallipadi <[email protected]>
Date:   Wed Dec 14 15:05:00 2005 -0500

P-state software coordination for speedstep-centrino

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

commit 09b4d1ee881c8593bfad2a42f838d85070365c3e

Author: Venkatesh Pallipadi <[email protected]>
Date:   Wed Dec 14 15:05:00 2005 -0500

P-state software coordination for acpi-cpufreq

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

commit 3b2d99429e3386b6e2ac949fc72486509c8bbe36

Author: Venkatesh Pallipadi <[email protected]>
Date:   Wed Dec 14 15:05:00 2005 -0500

P-state software coordination for ACPI core

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

commit ffd642e748c867a7339b57225b8bf8b9a0dcd9c5

Author: David Shaohua Li <[email protected]>
Date:   Wed Feb 8 17:35:00 2006 -0500

[ACPI] enable SMP C-states on x86_64

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

#1 lore raw
Quoted 2 lines · Len Brown

git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release

Pulled.

I had some fairly trivial conflicts to resolve, can you check that it all looks sane?

Linus

author
#2 lore raw

PATCH 1/1 ACPI for 2.6.18 -- part deux

In reply to Len Brown

Hi Linus,

please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release

CONFIG_ACPI_DOCK is new. Although it has been in -mm for a while, I've marked it EXPERIMENTAL because it hasn't yet seen the broad exposure that comes with being in your upstream tree.

thanks!

-Len

ps. a plain patch is also available here:
ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.17/acpi-release-20060623-2.6.17.diff.gz

 arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c       |    8 
 arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c |    8 
 drivers/acpi/Kconfig                              |    7 
 drivers/acpi/Makefile                             |    1 
 drivers/acpi/ac.c                                 |   63 
 drivers/acpi/acpi_memhotplug.c                    |  135 -
 drivers/acpi/asus_acpi.c                          |    2 
 drivers/acpi/battery.c                            |  122 -
 drivers/acpi/bus.c                                |  128 -
 drivers/acpi/button.c                             |   72 
 drivers/acpi/container.c                          |   36 
 drivers/acpi/debug.c                              |   19 
 drivers/acpi/dispatcher/dsinit.c                  |   30 
 drivers/acpi/dispatcher/dsmethod.c                |  330 +---
 drivers/acpi/dispatcher/dswexec.c                 |    4 
 drivers/acpi/dispatcher/dswload.c                 |   49 
 drivers/acpi/dock.c                               |  739 ++++++++++
 drivers/acpi/ec.c                                 |  168 --
 drivers/acpi/event.c                              |   19 
 drivers/acpi/events/evgpe.c                       |   14 
 drivers/acpi/events/evxface.c                     |   47 
 drivers/acpi/executer/exconfig.c                  |    8 
 drivers/acpi/executer/excreate.c                  |   27 
 drivers/acpi/executer/exdump.c                    |    8 
 drivers/acpi/executer/exfldio.c                   |   71 
 drivers/acpi/executer/exmutex.c                   |   12 
 drivers/acpi/executer/exsystem.c                  |   82 -
 drivers/acpi/fan.c                                |   51 
 drivers/acpi/hardware/hwregs.c                    |   77 -
 drivers/acpi/hotkey.c                             |  132 -
 drivers/acpi/motherboard.c                        |    5 
 drivers/acpi/namespace/nsaccess.c                 |   27 
 drivers/acpi/osl.c                                |   72 
 drivers/acpi/parser/psparse.c                     |   18 
 drivers/acpi/pci_bind.c                           |   87 -
 drivers/acpi/pci_irq.c                            |   91 -
 drivers/acpi/pci_link.c                           |  189 +-
 drivers/acpi/pci_root.c                           |   39 
 drivers/acpi/power.c                              |  145 -
 drivers/acpi/processor_core.c                     |  161 --
 drivers/acpi/processor_idle.c                     |  129 -
 drivers/acpi/processor_perflib.c                  |  132 -
 drivers/acpi/processor_thermal.c                  |   48 
 drivers/acpi/processor_throttling.c               |   45 
 drivers/acpi/scan.c                               |  107 -
 drivers/acpi/system.c                             |   21 
 drivers/acpi/thermal.c                            |  218 +-
 drivers/acpi/utilities/utdelete.c                 |   36 
 drivers/acpi/utilities/utglobal.c                 |    1 
 drivers/acpi/utilities/utmisc.c                   |    3 
 drivers/acpi/utilities/utmutex.c                  |   39 
 drivers/acpi/utils.c                              |  104 -
 drivers/acpi/video.c                              |  270 +--
 drivers/pci/hotplug/Makefile                      |    3 
 drivers/pci/hotplug/acpiphp.h                     |   36 
 drivers/pci/hotplug/acpiphp_core.c                |   19 
 drivers/pci/hotplug/acpiphp_dock.c                |  438 -----
 drivers/pci/hotplug/acpiphp_glue.c                |  123 +
 include/acpi/acconfig.h                           |    2 
 include/acpi/acdispat.h                           |    2 
 include/acpi/acglobal.h                           |   26 
 include/acpi/acinterp.h                           |    5 
 include/acpi/aclocal.h                            |   36 
 include/acpi/acmacros.h                           |    2 
 include/acpi/acobject.h                           |    8 
 include/acpi/acpi_bus.h                           |    2 
 include/acpi/acpi_drivers.h                       |   17 
 include/acpi/acpiosxf.h                           |   40 
 include/acpi/actypes.h                            |   49 
 include/acpi/platform/aclinux.h                   |    2 
 include/acpi/processor.h                          |    1 
 include/linux/cpufreq.h                           |    6 
 include/linux/kobject.h                           |    2 
 lib/kobject_uevent.c                              |    4 
 74 files changed, 2637 insertions(+), 2642 deletions(-)

through these commits:

Andreas Mohr:
ACPI: restore comment justifying 'extra' P_LVLx access

Andrew Morton:
ACPI: asus_acpi_init: propagate correct return value

Bartlomiej Swiercz:
ACPI: additional blacklist entry for ThinkPad R40e

Bjorn Helgaas:
ACPI: acpi_os_wait_semaphore(): silence complaint

Bob Moore:

      ACPI: ACPICA 20060623

Dominik Brodowski:
ACPI: C-States: accounting of sleep states
ACPI: C-States: bm_activity improvements
ACPI: C-States: only demote on current bus mastering activity

Jae-hyeon Park:
ACPI: Device [kobj-name] is not power manageable

Kristen Accardi:
KEVENT: add new uevent for dock
ACPI: dock driver
ACPIPHP: use ACPI dock driver
ACPIPHP: prevent duplicate slot numbers when no _SUN

Len Brown:
ACPI: un-export ACPI_WARNING() -- use printk(KERN_WARNING...)
ACPI: un-export ACPI_ERROR() -- use printk(KERN_ERR...)
ACPI: static-ize handle_hotplug_event_func()

Patrick Mochel:
ACPI: delete tracing macros from drivers/acpi/*.c

Thomas Renninger:
ACPI: Enable ACPI error messages w/o CONFIG_ACPI_DEBUG
ACPI: Export symbols for ACPI_ERROR/EXCEPTION/WARNING macros [ACPI] Print error message if remove/install notify handler fails

Venkatesh Pallipadi:
ACPI: HW P-state coordination support

Vladimir Lebedev:
ACPI: fix battery on HP NX6125

with this log:

commit d120cfb544ed6161b9d32fb6c4648c471807ee6b
Merge: 9dce0e9... bf7e851...
Author: Len Brown <[email protected]>
Date: Thu Jun 29 19:57:46 2006 -0400

merge linus into release branch

Conflicts:

drivers/acpi/acpi_memhotplug.c

commit 9dce0e950dbfab4148f35ac6f297d8638cdc63c4
Merge: f1b2ad5... 967440e...
Author: Len Brown <[email protected]>
Date: Thu Jun 29 19:55:27 2006 -0400

Pull acpica into release branch

commit f1b2ad5d2a8e1791d806ef244164d19c3d5c8b83
Merge: a51a69c... c4a001b...
Author: Len Brown <[email protected]>
Date: Thu Jun 29 15:58:09 2006 -0400

Pull c-states into release branch

commit a51a69c0ed955f4fa6f64b4377378c744f9b737b
Merge: 49fee98... f831335...
Author: Len Brown <[email protected]>
Date: Thu Jun 29 15:57:42 2006 -0400

Pull trivial into release branch

commit 49fee981fa98f3c0a21f3d6c8193eddcc15e84e9

Author: Vladimir Lebedev <[email protected]>
Date:   Tue Jun 20 16:46:00 2006 -0400

ACPI: fix battery on HP NX6125

EC problem was cause of both battery and AC issues.
http://bugzilla.kernel.org/show_bug.cgi?id=6455

commit f831335d42a9aed26449a264266763fb542dbbe3

Author: Bartlomiej Swiercz <[email protected]>
Date:   Mon May 29 07:16:00 2006 -0400

ACPI: additional blacklist entry for ThinkPad R40e

commit b488f02156d3deb08f5ad7816d565c370a8cc6f1

Author: Andreas Mohr <[[email protected]]>
Date:   Mon Jun 26 15:58:00 2006 -0400

ACPI: restore comment justifying 'extra' P_LVLx access

While trying to look for superfluous I/O accesses that can be optimized away, I stumbled upon this ACPI sleep I/O access and couldn't figure out why the hell this dummy op was necessary.
After more than one hour of internet research, I had collected a sufficient number of documents (among those very old kernel versions) that finally told me what this dummy read was about: STPCLK# doesn't get asserted in time on (some) chipsets, which is why we need to have a dummy I/O read to delay further instruction processing until the CPU is fully stopped.

commit c4a001b1ea32e09f7556178249b8885418858b5c

Author: Dominik Brodowski <[email protected]>
Date:   Sat Jun 24 19:37:00 2006 -0400

ACPI: C-States: only demote on current bus mastering activity

Only if bus master activity is going on at the present, we should avoid entering C3-type sleep, as it might be a faulty transition. As long as the bm_activity bitmask was based on the number of calls to the ACPI idle function, looking at previous moments made sense. Now, with it being based on what happened this jiffy, looking at this jiffy should be sufficient.

commit c5ab81ca01ad4a8870b456f93dd2fb3d815f91d9

Author: Dominik Brodowski <[email protected]>
Date:   Sat Jun 24 19:37:00 2006 -0400

ACPI: C-States: bm_activity improvements

Do not assume there was bus mastering activity if the idle handler didn't get called, as there's only reason to not enter C3-type sleep if there is bus master activity going on. Only for the "promotion" into C3-type sleep bus mastering activity is taken into account, and there only current bus mastering activity, and not pure guessing should lead to the decision on whether to enter C3-type sleep or not.

Also, as bm_activity is a jiffy-based bitmask (bit 0: bus mastering activity during this juffy, bit 31: bus mastering activity 31 jiffies ago), fix the setting of bit 0, as it might be called multiple times within one jiffy.

commit a3c6598f92cf27d3d201a2a5b052563148156837

Author: Dominik Brodowski <[email protected]>
Date:   Sat Jun 24 19:37:00 2006 -0400

ACPI: C-States: accounting of sleep states

Track the actual time spent in C-States (C2 upwards, we can't determine this for C1), not only the number of invocations. This is especially useful for dynamic ticks / "tickless systems", but is also of interest on normal systems, as any interrupt activity leads to C-States being exited, not only the timer interrupt.

The time is being measured in PM timer ticks, so an increase by one equals 279 nanoseconds.

commit 967440e3be1af06ad4dc7bb18d2e3c16130fe067

Author: Bob Moore <[email protected]>
Date:   Fri Jun 23 17:04:00 2006 -0400

ACPI: ACPICA 20060623

Implemented a new acpi_spinlock type for the OSL lock interfaces. This allows the type to be customized to the host OS for improved efficiency (since a spinlock is usually a very small object.)

Implemented support for "ignored" bits in the ACPI registers. According to the ACPI specification, these bits should be preserved when writing the registers via a read/modify/write cycle. There are 3 bits preserved in this manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].
http://bugzilla.kernel.org/show_bug.cgi?id=3691

Implemented the initial deployment of new OSL mutex interfaces. Since some host operating systems have separate mutex and semaphore objects, this feature was requested. The base code now uses mutexes (and the new mutex interfaces) wherever a binary semaphore was used previously. However, for the current release, the mutex interfaces are defined as macros to map them to the existing semaphore interfaces.

Fixed several problems with the support for the control method SyncLevel parameter. The SyncLevel now works according to the ACPI specification and in concert with the Mutex SyncLevel parameter, since the current SyncLevel is a property of the executing thread. Mutual exclusion for control methods is now implemented with a mutex instead of a semaphore.

Fixed three instances of the use of the C shift operator in the bitfield support code (exfldio.c) to avoid the use of a shift value larger than the target data width. The behavior of C compilers is undefined in this case and can cause unpredictable results, and therefore the case must be detected and avoided. (Fiodor Suietov)

Added an info message whenever an SSDT or OEM table is loaded dynamically via the Load() or LoadTable() ASL operators. This should improve debugging capability since it will show exactly what tables have been loaded (beyond the tables present in the RSDT/XSDT.)

commit 95b38b3f453c16de0f8cddcde3e71050bbfb37b9

Author: Kristen Accardi <[email protected]>
Date:   Wed Jun 28 03:09:54 2006 -0400

ACPIPHP: prevent duplicate slot numbers when no _SUN

Dock bridges generally do not implement _SUN, yet show up as ejectable slots. If you have more than one ejectable slot that does not implement SUN, with the current code you will get duplicate slot numbers. So, if there is no _SUN, use the current count of the number of slots found instead.

commit 2b85e1307fe3a84eca2e1a21c6c857359908dab4

Author: Len Brown <[email protected]>
Date:   Tue Jun 27 01:50:14 2006 -0400

ACPI: static-ize handle_hotplug_event_func()

commit 4e8662bbd680c54496189ac68f398e847f3ca374

Author: Kristen Accardi <[email protected]>
Date:   Wed Jun 28 03:08:06 2006 -0400

ACPIPHP: use ACPI dock driver

Modify the acpiphp driver to use the ACPI dock driver for dock notifications. Only load the acpiphp driver if we find we have pci dock devices.

commit a5e1b94008f2a96abf4a0c0371a55a56b320c13e

Author: Kristen Accardi <[email protected]>
Date:   Wed Jun 28 03:07:16 2006 -0400

ACPI: dock driver

Create a driver which lives in the acpi subsystem to handle dock events. This driver is not an "ACPI" driver, because acpi drivers require that the object be present when the driver is loaded.

commit a6a888b3c20cf559c8a2e6e4d86c570dda2ef0f5

Author: Kristen Accardi <[email protected]>
Date:   Sat Jun 24 19:36:00 2006 -0400

KEVENT: add new uevent for dock

so that userspace can be notified of dock and undock events.

commit 5e7d8818114f08ad9078d2c1a8a88d78d49de8dc

Author: Andrew Morton <[email protected]>
Date:   Sat Jun 24 19:36:00 2006 -0400

ACPI: asus_acpi_init: propagate correct return value

commit e8406b4485730031d91872086456bd052948686b

Author: Thomas Renninger <[email protected]>
Date:   Fri Jun 2 15:58:00 2006 -0400

[ACPI] Print error message if remove/install notify handler fails

commit d550d98d3317378d93a4869db204725d270ec812

Author: Patrick Mochel <[email protected]>
Date:   Tue Jun 27 00:41:40 2006 -0400

ACPI: delete tracing macros from drivers/acpi/*.c

commit d7fa2589bbe7ab53fd5eb20e8c7e388d5aff6f16
Merge: 6468463... 46f18e3...
Author: Thomas Renninger <[email protected]>
Date: Tue Jun 27 00:06:37 2006 -0400

Pull bugzilla-5737 into release branch

commit 6468463abd7051fcc29f3ee7c931f9bbbb26f5a4

Author: Len Brown <[email protected]>
Date:   Mon Jun 26 23:41:38 2006 -0400

ACPI: un-export ACPI_ERROR() -- use printk(KERN_ERR...)

commit cece92969762b8ed7930d4e23008b76b06411dee

Author: Len Brown <[email protected]>
Date:   Mon Jun 26 23:04:31 2006 -0400

ACPI: un-export ACPI_WARNING() -- use printk(KERN_WARNING...)

commit 64dedfb8fdbbc4fabb8c131e4b597cd4bc7f3881

Author: Jae-hyeon Park <[email protected]>
Date:   Mon Jun 26 22:34:03 2006 -0400

ACPI: Device [kobj-name] is not power manageable

print kobj name in this message.
lenb changed to use printk.

commit 9e7e2c047503db5a094ab30c7b4b8a5a0a324915

Author: Bjorn Helgaas <[email protected]>
Date:   Thu Apr 27 05:25:00 2006 -0400

ACPI: acpi_os_wait_semaphore(): silence complaint

The ASL Acquire operator (17.5.1 in ACPI 3.0 spec) is allowed to time out and return True without acquiring the semaphore. There's no indication in the spec that this is an actual error, so this message should be debug-only, as the message for successful acquisition is.

This used to be an ACPI_DEBUG_PRINT, but it was mis-classified as ACPI_DB_ERROR rather than ACPI_DB_MUTEX, so it got swept up in Thomas' recent patch to enable ACPI error messages even without CONFIG_ACPI_DEBUG.

commit be63c925a123b492fc05063c98ca7e9f7453a58a

Author: Thomas Renninger <[email protected]>
Date:   Fri Jun 2 15:58:00 2006 -0400

ACPI: Export symbols for ACPI_ERROR/EXCEPTION/WARNING macros

commit a6fc67202e0224e6c9d1d285cc0b444bce887ed5

Author: Thomas Renninger <[email protected]>
Date:   Mon Jun 26 23:58:43 2006 -0400

ACPI: Enable ACPI error messages w/o CONFIG_ACPI_DEBUG

commit 46f18e3a28295a9e11a6ffa4478241c19bc93735

Author: Venkatesh Pallipadi <[email protected]>
Date:   Mon Jun 26 00:34:43 2006 -0400

ACPI: HW P-state coordination support

Treat HW coordination as independent CPUs.
This enables per-cpu monintoring of P-states

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

author
#3 lore raw

PATCH 1/1 ACPI for 2.6.18 -- partie trois

Hi Linus,

please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release

This adds a "Smart Battery" support for systems that do not have the newer "ACPI Control Method" battery that Linux already supports. The ACPI_SBS is marked EXPERIMENTAL because it is new to upstream.

This updates the acpi_asus driver to 0.30 -- a version that at least one distro is shipping already.

Plus some misc cleanups, and a couple of workarounds for broken BIOS.

thanks!

-Len

ps. a plain patch is also available here:
ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.17/acpi-release-20060623-2.6.17.diff.gz

 arch/ia64/kernel/acpi-ext.c       |    2 
 arch/ia64/kernel/acpi.c           |   12 
 drivers/acpi/Kconfig              |   12 
 drivers/acpi/Makefile             |    2 
 drivers/acpi/ac.c                 |   32 
 drivers/acpi/acpi_memhotplug.c    |   18 
 drivers/acpi/asus_acpi.c          |  335 +++-
 drivers/acpi/battery.c            |   46 
 drivers/acpi/button.c             |   10 
 drivers/acpi/cm_sbs.c             |  131 +
 drivers/acpi/container.c          |    2 
 drivers/acpi/fan.c                |   10 
 drivers/acpi/glue.c               |    8 
 drivers/acpi/i2c_ec.c             |  406 +++++
 drivers/acpi/i2c_ec.h             |   23 
 drivers/acpi/namespace/nsxfeval.c |    2 
 drivers/acpi/numa.c               |    4 
 drivers/acpi/osl.c                |    9 
 drivers/acpi/pci_link.c           |   15 
 drivers/acpi/pci_root.c           |   20 
 drivers/acpi/power.c              |   22 
 drivers/acpi/processor_idle.c     |    2 
 drivers/acpi/processor_perflib.c  |    6 
 drivers/acpi/sbs.c                | 1766 ++++++++++++++++++++++++++
 drivers/acpi/scan.c               |    4 
 drivers/acpi/system.c             |    4 
 drivers/acpi/thermal.c            |   57 
 drivers/acpi/utilities/utalloc.c  |    4 
 drivers/acpi/utilities/utcache.c  |    2 
 drivers/acpi/utils.c              |    4 
 drivers/acpi/video.c              |   76 -
 include/acpi/acmacros.h           |    2 
 include/acpi/acpiosxf.h           |    2 
 33 files changed, 2732 insertions(+), 318 deletions(-)

through these commits:

Christian Lupien:
ACPI: handle AC notify event on broken BIOS

Karol Kozimor:
ACPI: asus_acpi: misc cleanups
ACPI: asus_acpi: support A3G
ACPI: asus_acpi: LED display support
ACPI: asus_acpi: support W3400N
ACPI: asus_acpi: support A4G
ACPI: asus_acpi: handle internal Bluetooth / support W5A
ACPI: asus_acpi: support L5D
ACPI: asus_acpi: rework model detection
ACPI: asus_acpi: add S1N WLED control
ACPI: asus_acpi: add S1N WLED control
ACPI: asus_acpi: correct M6N/M6R display nodes

Len Brown:
ACPI: delete acpi_os_free(), use kfree() directly
ACPI: remove function tracing macros from drivers/acpi/*.c

Patrick Mochel:
ACPI: ac: Add struct acpi_device to struct acpi_ac.
ACPI: acpi_memhotplug: add struct acpi_device to struct acpi_memory_device.
ACPI: battery: add struct acpi_device to struct acpi_battery.
ACPI: fan: add struct acpi_device to struct acpi_fan.
ACPI: pci root: add struct acpi_device to struct acpi_pci_root.
ACPI: thermal: add struct acpi_device to struct acpi_thermal.
ACPI: power: add struct acpi_device to struct acpi_power_resource
ACPI: video: add struct acpi_device to struct acpi_video_bus.
ACPI: ac: Use acpi_device's handle instead of driver's
ACPI: acpi_memhotplug: Use acpi_device's handle instead of driver's
ACPI: battery: Use acpi_device's handle instead of driver's
ACPI: button: Use acpi_device's handle instead of driver's
ACPI: fan: Use acpi_device's handle instead of driver's
ACPI: pci_link: Use acpi_device's handle instead of driver's
ACPI: pci_root: Use acpi_device's handle instead of driver's
ACPI: power: Use acpi_device's handle instead of driver's
ACPI: thermal: Use acpi_device's handle instead of driver's
ACPI: video: Use acpi_device's handle instead of driver's
ACPI: ac: Remove unneeded acpi_handle from driver.
ACPI: acpi_memhotplug: Remove unneeded acpi_handle from driver.
ACPI: battery: Remove unneeded acpi_handle from driver.
ACPI: button: Remove unneeded acpi_handle from driver.
ACPI: fan: Remove unneeded acpi_handle from driver.
ACPI: pci_link: Remove unneeded acpi_handle from driver.
ACPI: pci_root: Remove unneeded acpi_handle from driver.
ACPI: power: Remove unneeded acpi_handle from driver.
ACPI: thermal: Remove unneeded acpi_handle from driver.
ACPI: video: Remove unneeded acpi_handle from driver.

Rich Townsend:
ACPI: add support for Smart Battery

Vladimir Lebedev:
ACPI: handle battery notify event on broken BIOS

with this log:

commit 309b0f125a22ee34c8f6962677255f7bf6af5e3d
Merge: d0e5f39... 635227e...
Author: Len Brown <[email protected]>
Date: Sat Jul 1 17:21:39 2006 -0400

Pull smart-battery into release branch

commit d0e5f39f1ee2e55d140064bb6d74c8bad25d71d0
Merge: 361ea93... 9fdae72...
Author: Len Brown <[email protected]>
Date: Sat Jul 1 17:21:26 2006 -0400

Pull bugzilla-3241 into release branch

commit 361ea93cbff0e42cbc6a0f3c7a8238db9ed15648
Merge: 5f765b8... 9becf5b...
Author: Len Brown <[email protected]>
Date: Sat Jul 1 17:20:40 2006 -0400

Pull asus_acpi-0.30 into release branch

commit 5f765b8d68fe99c8a575265d81c62382893e1e8a
Merge: b197ba3... d07a857...
Author: Len Brown <[email protected]>
Date: Sat Jul 1 17:19:34 2006 -0400

Pull acpi_device_handle_cleanup into release branch

commit b197ba3c70638a3a2ae39296781912f26ac0f991
Merge: fc25465... 02438d8...
Author: Len Brown <[email protected]>
Date: Sat Jul 1 17:19:08 2006 -0400

Pull acpi_os_free into release branch

commit 635227ee89929a6e2920fc8aa1cd48f7225d3d93

Author: Len Brown <[email protected]>
Date:   Sat Jul 1 16:48:23 2006 -0400

ACPI: remove function tracing macros from drivers/acpi/*.c

a few invocations appeared due to the SBS and other patches.

commit 3f86b83243d59bb50caf5938d284d22e10d082a4

Author: Rich Townsend <[email protected]>
Date:   Sat Jul 1 11:36:54 2006 -0400

ACPI: add support for Smart Battery

Most batteries today are ACPI "Control Method" batteries, but some models ship with the older "Smart Battery" that requires this code.

Rich Townsend and Bruno Ducrot were the original authors. Vladimir Lebedev updated to run on latest kernel.

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

commit 9becf5b91ec7b600a3cfea12724165aaaf4d4527

Author: Karol Kozimor <[email protected]>
Date:   Fri Jun 30 19:15:00 2006 -0400

ACPI: asus_acpi: correct M6N/M6R display nodes

This patch switches back the display nodes for M6R and M6N -- this happened a while ago when a patch was misapplied (only the in-tree version was affected).

commit 9fdae727645215d4dbb88912b9a176ef87911a05

Author: Vladimir Lebedev <[email protected]>
Date:   Tue Jun 27 04:49:00 2006 -0400

ACPI: handle battery notify event on broken BIOS

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

commit 03d782524e2d0511317769521c8d5daadbab8482

Author: Christian Lupien <[email protected]>
Date:   Thu Aug 19 01:26:00 2004 -0400

ACPI: handle AC notify event on broken BIOS

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

updated by Vladimir Lebedev

commit 37672d4c5263d54ee4302f55242f6fd5317b0f9f
Merge: b2f71ba... 2df8386...
Author: Len Brown <[email protected]>
Date: Sat Jul 1 11:06:01 2006 -0400

Pull asus_acpi-0.30 into release branch

commit b2f71bade430d468398167d696731bf770de2db8
Merge: ba290ab... d07a857...
Author: Len Brown <[email protected]>
Date: Sat Jul 1 11:05:19 2006 -0400

Pull acpi_device_handle_cleanup into release branch

commit 2df8386cec47520b76822cb39d96709f5d353cf8

Author: Karol Kozimor <[email protected]>
Date:   Fri Jun 30 19:15:00 2006 -0400

ACPI: asus_acpi: add S1N WLED control

This patch switches back the display nodes for M6R and M6N -- this happened a while ago when a patch was misapplied (only the in-tree version was affected).

commit 96d1142084281ae4601fab02be061e1267e431a3

Author: Karol Kozimor <[email protected]>
Date:   Fri Jun 30 19:13:00 2006 -0400

ACPI: asus_acpi: add S1N WLED control

This small patch adds back WLED control for S1N models, this was accidentally removed a while ago.

commit ffab0d9507dc527ff6d704ec5e7e7ccfee119fb1

Author: Karol Kozimor <[email protected]>
Date:   Fri Jun 30 19:11:00 2006 -0400

ACPI: asus_acpi: rework model detection

This patch reworks laptop model detection.

This addresses the Samsung P30 issue, where the INIT method would return no object, but the implicit return in the AML interpreter would confuse the driver. It also accounts for a newer batch of Asus models whose INIT returns ACPI_TYPE_BUFFER instead of STRING.

The handling is now much leaner, if we get a buffer or a string, we check against known values, in every other case we use a different path (currently DSDT signatures). The bulk of this patch is separating the string matching from asus_hotk_get_info() into a separate function.

This patch properly fixes http://bugme.osdl.org/show_bug.cgi?id=5067 and
http://bugme.osdl.org/show_bug.cgi?id=5092 and makes the driver fully functional again with acpi=strict on all machines.

commit ebccb84810729f0e86a83a65681ba2de45ff84d8

Author: Karol Kozimor <[email protected]>
Date:   Fri Jun 30 19:08:00 2006 -0400

ACPI: asus_acpi: support L5D

This patch adds support for Asus L5D and thus fixes
http://bugme.osdl.org/show_bug.cgi?id=4695

commit e067aaa7612c273d4bfd70d1bd8d80313a57685c

Author: Karol Kozimor <[email protected]>
Date:   Fri Jun 30 19:07:00 2006 -0400

ACPI: asus_acpi: handle internal Bluetooth / support W5A

This patch creates a new file named "bluetooth" under /proc/acpi/asus/. This file controls both the internal Bluetooth adapter's presence on the USB bus and the associated LED.

echo 1 > /proc/acpi/asus/bluetooth to enable, 0 to disable.

Additionally, the patch add support for Asus W5A, the first model that uses this feature.

Patch originally by Fernando A. P. Gomes.

commit f78c589d108f4b06a012817536c9ced37f473eae

Author: Karol Kozimor <[email protected]>
Date:   Fri Jun 30 19:06:00 2006 -0400

ACPI: asus_acpi: support A4G

This patch adds support for Asus A4G.
Originally by Giuseppe Rota.

commit c067a7899790ed4c03b00ed186c6e3b6a3964379

Author: Karol Kozimor <[email protected]>
Date:   Fri Jun 30 19:05:00 2006 -0400

ACPI: asus_acpi: support W3400N

This patch adds support for Asus W3400N.

commit 42cb891295795ed9b3048c8922d93f7a71f63968

Author: Karol Kozimor <[email protected]>
Date:   Fri Jun 30 19:04:00 2006 -0400

ACPI: asus_acpi: LED display support

This patch adds handling for front LED displays found on W1N and the like. Additionally, W1N is given its own model_data instance.

Patch originally by Éric Burghard.

commit ed2cb07b2bb04f14793cdeecb0b384374e979525

Author: Karol Kozimor <[email protected]>
Date:   Fri Jun 30 19:03:00 2006 -0400

ACPI: asus_acpi: support A3G

This patch adds support for Asus A3G.

commit a170a5317c0298538deb170028376ec1631acc2f

Author: Karol Kozimor <[email protected]>
Date:   Fri Jun 30 19:03:00 2006 -0400

ACPI: asus_acpi: misc cleanups

This patch updates the version string, copyright notices and does whitespace cleanup (it looks weird, blame Lindent).

commit ba290ab7dace8b3339c0cc86c221d48eed21e956
Merge: 9262e91... 02438d8...
Author: Len Brown <[email protected]>
Date: Fri Jun 30 20:07:01 2006 -0400

Pull kmalloc into release branch

commit 02438d8771ae6a4b215938959827692026380bf9

Author: Len Brown <[email protected]>
Date:   Fri Jun 30 03:19:10 2006 -0400

ACPI: delete acpi_os_free(), use kfree() directly

commit d07a8577f695c807977af003b6e75f996e01a15f

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:52 2006 -0400

ACPI: video: Remove unneeded acpi_handle from driver.

commit 8a4444bf5a3fd890441e6cbd5022a3c24edbe69a

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:51 2006 -0400

ACPI: thermal: Remove unneeded acpi_handle from driver.

commit 14747204055d4b8fb2f8517beca91985ac617c17

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:51 2006 -0400

ACPI: power: Remove unneeded acpi_handle from driver.

commit 432bfaba7d4e70483fc5af164e020066f4921bff

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:51 2006 -0400

ACPI: pci_root: Remove unneeded acpi_handle from driver.

commit e0e4e117d4c898b0df749d5b88c86955151abf53

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:50 2006 -0400

ACPI: pci_link: Remove unneeded acpi_handle from driver.

commit 579c896cc91434e4feb938f780eba580c93fa0da

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:50 2006 -0400

ACPI: fan: Remove unneeded acpi_handle from driver.

commit 6c689537726ec665246d2f60c48475be2efac2d0

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:50 2006 -0400

ACPI: button: Remove unneeded acpi_handle from driver.

commit 39cb61e26771891f843cb433ee6febd9159bce73

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:49 2006 -0400

ACPI: battery: Remove unneeded acpi_handle from driver.

commit 9453ece92688fedd7755d2ea54b2efe88822a91b

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:49 2006 -0400

ACPI: acpi_memhotplug: Remove unneeded acpi_handle from driver.

commit 1b5b8b81bddd1c5dcf690f43422e20b0e964c349

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:49 2006 -0400

ACPI: ac: Remove unneeded acpi_handle from driver.

commit 901302688cb85b49a9551ec1f6aa86fb081ae49e

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:48 2006 -0400

ACPI: video: Use acpi_device's handle instead of driver's

commit 38ba7c9ed2e1a222103332031f76c28b726573f5

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:48 2006 -0400

ACPI: thermal: Use acpi_device's handle instead of driver's

commit 5fbc19efdbedf9c9125774f66f80d6a6ccce4566

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:43 2006 -0400

ACPI: power: Use acpi_device's handle instead of driver's

commit 2d1e0a02f16f84c2358843d91d6ca0131a0587ce

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:43 2006 -0400

ACPI: pci_root: Use acpi_device's handle instead of driver's

commit 67a7136573b24a0d1f85a4aab131558a02910d25

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:42 2006 -0400

ACPI: pci_link: Use acpi_device's handle instead of driver's

commit dc8c2b2744f8563aa5feb07488e4cc207a70ac70

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:42 2006 -0400

ACPI: fan: Use acpi_device's handle instead of driver's

commit 27b1d3e85b1dfd9037d3fbb98b2e2aacca01da39

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:42 2006 -0400

ACPI: button: Use acpi_device's handle instead of driver's

commit 3b073ec3667ee63e35b66752a30eeedef1e1e772

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:41 2006 -0400

ACPI: battery: Use acpi_device's handle instead of driver's

commit b863278523f7adbacb9e34133f4b6397cdab9977

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:41 2006 -0400

ACPI: acpi_memhotplug: Use acpi_device's handle instead of driver's

commit a6ba5ebef91a59fabd45962e576c02468dbcd33f

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:41 2006 -0400

ACPI: ac: Use acpi_device's handle instead of driver's

commit e6afa0de1476290a876dfd1237a97cce7735581c

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:40 2006 -0400

ACPI: video: add struct acpi_device to struct acpi_video_bus.

- Use it instead of acpi_bus_get_device() in acpi_video_bus_notify() and use the one from struct acpi_video_device in acpi_video_device_notify().

commit 415985728895ba3127116bc4f999caf94420ed85

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:40 2006 -0400

ACPI: power: add struct acpi_device to struct acpi_power_resource

- Use it instead of acpi_bus_get_device() where we can..

commit 8348e1b19a06b1932f65e84e1d59be29e1626c2b

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:40 2006 -0400

ACPI: thermal: add struct acpi_device to struct acpi_thermal.

- Use it instead of acpi_bus_get_device() where we can..

commit 32917e5b589d813c9dc0f2d140d8c52898ddb6fb

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:39 2006 -0400

ACPI: pci root: add struct acpi_device to struct acpi_pci_root.

commit 74b142e0fe039fcde42030c064763577e11ca004

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:39 2006 -0400

ACPI: fan: add struct acpi_device to struct acpi_fan.

commit 145def84a177c01cf3cc6cfbb67a029f39a8ac35

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:39 2006 -0400

ACPI: battery: add struct acpi_device to struct acpi_battery.

- Use it instead of acpi_bus_get_device()..

commit 3b74863df5d46f794052b5ee010cfc8fd66819dd

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:38 2006 -0400

ACPI: acpi_memhotplug: add struct acpi_device to struct acpi_memory_device.

commit af96179a8298832cc58be212d0e4988d8a1e11bf

Author: Patrick Mochel <[email protected]>
Date:   Fri May 19 16:54:32 2006 -0400

ACPI: ac: Add struct acpi_device to struct acpi_ac.

-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#4 lore raw

PATCH 1/1 ACPI for 2.6.18-rc1

Hi Linus,

please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release

This will restore the ACPI_DOCK driver, plus other fixes below.

thanks!

-Len

ps. a plain patch is also available here:
ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.18/acpi-release-20060707-2.6.18-rc1.diff.gz

 drivers/acpi/Kconfig               |    9 
 drivers/acpi/Makefile              |    1 
 drivers/acpi/ac.c                  |    2 
 drivers/acpi/battery.c             |    6 
 drivers/acpi/bus.c                 |    4 
 drivers/acpi/button.c              |    4 
 drivers/acpi/cm_sbs.c              |   46 -
 drivers/acpi/dispatcher/dsinit.c   |   10 
 drivers/acpi/dispatcher/dsmethod.c |   23 
 drivers/acpi/dispatcher/dswexec.c  |    4 
 drivers/acpi/dock.c                |  739 +++++++++++++++++++++++++
 drivers/acpi/ec.c                  |    2 
 drivers/acpi/event.c               |    2 
 drivers/acpi/events/evregion.c     |   44 -
 drivers/acpi/events/evxface.c      |   44 -
 drivers/acpi/events/evxfregn.c     |   13 
 drivers/acpi/executer/exconfig.c   |    1 
 drivers/acpi/executer/exconvrt.c   |    3 
 drivers/acpi/executer/exmutex.c    |    4 
 drivers/acpi/executer/exsystem.c   |    8 
 drivers/acpi/fan.c                 |    2 
 drivers/acpi/hotkey.c              |   10 
 drivers/acpi/namespace/nsalloc.c   |   13 
 drivers/acpi/osl.c                 |   30 -
 drivers/acpi/parser/psutils.c      |    2 
 drivers/acpi/pci_link.c            |    7 
 drivers/acpi/power.c               |    2 
 drivers/acpi/processor_core.c      |    2 
 drivers/acpi/processor_idle.c      |    2 
 drivers/acpi/scan.c                |   23 
 drivers/acpi/sleep/proc.c          |    6 
 drivers/acpi/system.c              |    6 
 drivers/acpi/tables/tbget.c        |   12 
 drivers/acpi/tables/tbinstal.c     |   21 
 drivers/acpi/tables/tbrsdt.c       |   27 
 drivers/acpi/tables/tbxface.c      |   32 -
 drivers/acpi/thermal.c             |   10 
 drivers/acpi/utilities/utalloc.c   |    2 
 drivers/acpi/utilities/utdebug.c   |    4 
 drivers/acpi/utilities/utdelete.c  |   13 
 drivers/acpi/utilities/utmisc.c    |   25 
 drivers/acpi/utilities/utmutex.c   |    8 
 drivers/acpi/utilities/utstate.c   |    7 
 drivers/pci/hotplug/Kconfig        |    2 
 include/acpi/acconfig.h            |    2 
 include/acpi/acinterp.h            |   10 
 include/acpi/aclocal.h             |    4 
 include/acpi/acmacros.h            |    8 
 include/acpi/acpi_bus.h            |    2 
 include/acpi/acpi_drivers.h        |   17 
 include/acpi/acresrc.h             |    8 
 include/acpi/platform/aclinux.h    |   27 
 52 files changed, 1085 insertions(+), 230 deletions(-)

through these commits:

Andi Kleen:
ACPI: delete some defaults from ACPI Kconfig

Andrew Morton:
ACPI: SBS: fix initialization, sem2mutex

Arjan van de Ven:
ACPI: add 'const' to several ACPI file_operations

Bob Moore:

      ACPI: ACPICA 20060707

Len Brown:
ACPI: acpi_os_get_thread_id() returns current
Revert "Revert "ACPI: dock driver""
ACPI: ACPI_DOCK Kconfig
ACPI: "Device `[%s]' is not power manageable" make message debug only
ACPI: acpi_os_allocate() fixes

with this log:

commit c0dc250e89cb8af77c5689b36eda851158e8573e
Merge: 0f12b15... e21c1ca...
Author: Len Brown <[email protected]>
Date: Mon Jul 10 02:39:47 2006 -0400

Pull acpi_os_allocate into test branch

commit 0f12b15ebcedce115a5d8e5ff741e49a7993f67c
Merge: 20b499a... f6dd922...
Author: Len Brown <[email protected]>
Date: Mon Jul 10 02:39:41 2006 -0400

Pull acpica-20060707 into test branch

commit 20b499aa06edf59fa2d21f29d42d36586c6c058e
Merge: dece75b... ab8aa06...
Author: Len Brown <[email protected]>
Date: Mon Jul 10 02:39:36 2006 -0400

Pull bugzilla-6687 into test branch

commit dece75b3a288fa49b3aab685543ec2f5c94b8cfc
Merge: 1a39ed5... 8d7bff6...
Author: Len Brown <[email protected]>
Date: Mon Jul 10 02:39:33 2006 -0400

Pull dock into test branch

commit 1a39ed5888a8336ed2762d5b367195b14b878850
Merge: 1b045e5... d750803...
Author: Len Brown <[email protected]>
Date: Mon Jul 10 02:39:26 2006 -0400

Pull trivial into test branch

commit 1b045e5d207fc65e6708e303c2ab4249bf619982
Merge: b3cf257... 8970bfe...
Author: Len Brown <[email protected]>
Date: Mon Jul 10 02:39:23 2006 -0400

Pull battery into test branch

commit e21c1ca3f98529921c829a792dfdbfc5a5dc393b

Author: Len Brown <[email protected]>
Date:   Mon Jul 10 01:35:51 2006 -0400

ACPI: acpi_os_allocate() fixes

Replace acpi_in_resume with a more general hack to check irqs_disabled() on any kmalloc() from ACPI. While setting (system_state != SYSTEM_RUNNING) on resume seemed more general, Andrew Morton preferred this approach.

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

Make acpi_os_allocate() into an inline function to allow /proc/slab_allocators to work.

Delete some memset() that could fault on allocation failure.

commit 8970bfe706345223d39d33bfce5f8b29750ab716

Author: Andrew Morton <[email protected]>
Date:   Mon Jul 10 02:34:45 2006 -0400

ACPI: SBS: fix initialization, sem2mutex

cm_sbs_sem is being downed (via acpi_ac_init->acpi_lock_ac_dir) before it is initialised, with grave results.

- Make it a mutex

- Initialise it

- Make it static

- Clean other stuff up.

Thanks to Paul Drynoff <[email protected]> for reporting and testing.

commit d75080328affb4b268da430b7074cc8139cc662a

Author: Arjan van de Ven <[email protected]>
Date:   Tue Jul 4 13:06:00 2006 -0400

ACPI: add 'const' to several ACPI file_operations

commit e26a2b8f68dca28c734d857517788e3b40b8691d

Author: Andi Kleen <[email protected]>
Date:   Thu Jul 6 12:14:00 2006 -0400

ACPI: delete some defaults from ACPI Kconfig

No need for video to be always in
No need for ACPI dock driver to be always in No need for smart battery driver to be always in

commit af4f949c6b4ffa5119aad980626e5b04daca961b

Author: Len Brown <[email protected]>
Date:   Sun Jul 9 16:33:26 2006 -0400

ACPI: "Device `[%s]' is not power manageable" make message debug only

commit 8d7bff6c0896feba2fbd5ce37062c212aee13870

Author: Len Brown <[email protected]>
Date:   Sun Jul 9 22:09:57 2006 -0400

ACPI: ACPI_DOCK Kconfig

HOTPLUG_PCI_ACPI depends on ACPI_DOCK
ACPI_IBM_DOCK depends on ACPI_DOCK=n
ACPI_DOCK is EXPERIMENTAL, though that doesn't seem to mean much

commit c8f7a62cdde461914c6457d5f4362538ed810bf4

Author: Len Brown <[email protected]>
Date:   Sun Jul 9 17:22:28 2006 -0400

Revert "Revert "ACPI: dock driver""

This reverts 953969ddf5b049361ed1e8471cc43dc4134d2a6f commit.

commit ab8aa06a5c0b75974fb1949365cbb20a15cedf14

Author: Len Brown <[email protected]>
Date:   Fri Jul 7 20:11:07 2006 -0400

ACPI: acpi_os_get_thread_id() returns current

Linux mutexes and the debug code that that reference acpi_os_get_thread_id() are happy with 0.
But the AML mutexes in exmutex.c expect a unique non-zero number for each thread - as they track this thread_id to permit the mutex re-entrancy defined by the ACPI spec.

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

commit f6dd9221dddb3550e60d32aee688588ec208312c

Author: Bob Moore <[email protected]>
Date:   Fri Jul 7 20:44:38 2006 -0400

ACPI: ACPICA 20060707

Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers that do not allow the initialization of address pointers within packed structures - even though the hardware itself may support misaligned transfers. Some of the debug data structures are packed by default to minimize size.

Added an error message for the case where acpi_os_get_thread_id() returns zero. A non-zero value is required by the core ACPICA code to ensure the proper operation of AML mutexes and recursive control methods.

The DSDT is now the only ACPI table that determines whether the AML interpreter is in 32-bit or 64-bit mode. Not really a functional change, but the hooks for per-table 32/64 switching have been removed from the code. A clarification to the ACPI specification is forthcoming in ACPI 3.0B.

Fixed a possible leak of an Owner ID in the error path of tbinstal.c acpi_tb_init_table_descriptor() and migrated all table OwnerID deletion to a single place in acpi_tb_uninstall_table() to correct possible leaks when using the acpi_tb_delete_tables_by_type() interface (with assistance from Lance Ortiz.)

Fixed a problem with Serialized control methods where the semaphore associated with the method could be over-signaled after multiple method invocations.

Fixed two issues with the locking of the internal namespace data structure. Both the Unload() operator and acpi_unload_table() interface now lock the namespace during the namespace deletion associated with the table unload (with assistance from Linn Crosetto.)

Fixed problem reports (Valery Podrezov) integrated: - Eliminate unnecessary memory allocation for CreateXxxxField
http://bugzilla.kernel.org/show_bug.cgi?id=5426

Fixed problem reports (Fiodor Suietov) integrated: - Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)
- On Address Space handler deletion, needless deactivation call (BZ 374) - AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) - Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone (BZ
376) - AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) - Minimum Length of RSDT should be validated (BZ 379) - AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no Handler (BZ (380)
- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded (BZ 381)

#5 lore raw

Re: [GIT PATCH] ACPI for 2.6.18-rc1

Quoted 5 lines · Len Brown

Hi Linus,

please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release

Do you have a plain old patch (scm impaired) lying around?

I'm experiencing some suspend to disk woes with 2.6.18-rc1 that are starting to look like it _could_ be troubles with ACPI changes. Looking at the change log, I don't really see anything that looks likely to help (making messages debug only ain't gonna do it;), but I'd like to try the latest before doing the massive revert/poke/prod/oops/panic number.

-Mike

Freezing cpus ...
CPU 1 is now offline
SMP alternatives: switching to UP code
CPU1 is down
Stopping tasks: ===========================================================================================================| Shrinking memory... -done (0 pages freed)
pnp: Device 00:07 disabled.
Device `[USBE]' is not power manageable
Device `[FAN]' is not power manageable
Class driver suspend failed for cpu0
Could not power down device firmware: error -22
Some devices failed to power down, aborting suspend
Device `[FAN]' is not power manageable
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 16 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:00:1d.0 to 64
ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 20
PCI: Setting latency timer of device 0000:00:1d.1 to 64
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1d.2 to 64
ACPI: PCI Interrupt 0000:00:1d.3[A] -> GSI 16 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:00:1d.3 to 64
Device `[USBE]' is not power manageable
PCI: Enabling device 0000:00:1d.7 (0000 -> 0002)
ACPI: PCI Interrupt 0000:00:1d.7[D] -> GSI 23 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:00:1d.7 to 64
PM: Writing back config space on device 0000:00:1d.7 at offset f (was 400, writing 403)
PM: Writing back config space on device 0000:00:1d.7 at offset 4 (was 0, writing ea200000)
PCI: Setting latency timer of device 0000:00:1e.0 to 64
ACPI: PCI Interrupt 0000:00:1f.5[B] -> GSI 17 (level, low) -> IRQ 21
PCI: Setting latency timer of device 0000:00:1f.5 to 64
bttv0: reset, reinitialize
bttv0: PLL: 28636363 => 35468950 .. ok
eth3: link up, 100Mbps, full-duplex, lpa 0x45E1
pnp: Device 00:07 activated.
pnp: Failed to activate device 00:09.
Restarting tasks...
Strange, kacpid_notify not stopped
done
Thawing cpus ...
SMP alternatives: switching to SMP code
Booting processor 1/1 eip 3000
CPU 1 irqstacks, hard=b15b6000 soft=b15ae000
Initializing CPU#1
Calibrating delay using timer specific routine.. 5984.17 BogoMIPS (lpj=2992089)
CPU: After generic identify, caps: bfebfbff 00000000 00000000 00000000 00004400 00000000 00000000
CPU: After vendor identify, caps: bfebfbff 00000000 00000000 00000000 00004400 00000000 00000000
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
CPU: After all inits, caps: bfebfbff 00000000 00000000 00000080 00004400 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#1.
CPU1: Intel P4/Xeon Extended MCE MSRs (12) available
CPU1: Thermal monitoring enabled
CPU1: Intel(R) Pentium(R) 4 CPU 3.00GHz stepping 09
CPU1 is up
Loaded prism54 driver, version 1.2
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 19
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[22] MMIO=[ea004000-ea0047ff] Max Packet=[2048] IR/IT contexts=[8/8]

#6 lore raw

Re: [GIT PATCH] ACPI for 2.6.18-rc1

Quoted 9 lines · Mike Galbraith
Quoted 5 lines · Len Brown

Hi Linus,

please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release

Do you have a plain old patch (scm impaired) lying around?

In the meantime, I went ahead and ripped the 2.6.18-rc1 diff up, and it doesn't seem to be acpi, so never mind.

-Mike

author
#7 lore raw

PATCH 1/1 ACPI for 2.6.18-rc4

In reply to Len Brown

Hi Linus,

please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release

This is a batch of low-risk patches that are appropriate for 2.6.18-final. They have all been through -mm.

thanks!

-Len

ps. a plain patch is also available here:
ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.18/acpi-release-20060707-2.6.18-rc4.diff.gz

 MAINTAINERS                    |    6 
 arch/i386/kernel/acpi/boot.c   |    2 
 arch/i386/kernel/acpi/wakeup.S |    5 
 arch/ia64/kernel/acpi.c        |    2 
 drivers/acpi/ac.c              |    2 
 drivers/acpi/acpi_memhotplug.c |    8 
 drivers/acpi/battery.c         |    3 
 drivers/acpi/bus.c             |   11 -
 drivers/acpi/hotkey.c          |  281 ++++++++++++-----------------
 drivers/acpi/i2c_ec.c          |    2 
 drivers/acpi/osl.c             |   10 +
 drivers/acpi/sbs.c             |    3 
 drivers/acpi/scan.c            |   12 +
 drivers/acpi/utils.c           |    2 
 drivers/pci/hotplug/Kconfig    |    2 
 drivers/pci/quirks.c           |   57 +++++
 16 files changed, 229 insertions(+), 179 deletions(-)

through these commits:

Bjorn Helgaas:
PCI: quirk to disable e100 interrupt if RESET failed to

Handle X:
ACPI: hotkey.c fixes, fix for potential crash of hotkey.c

Jean Delvare:
ACPI: fix kfree in i2c_ec error path

Kristen Carlson Accardi:
ACPI: add Dock Station driver to MAINTAINERS file
ACPIPHP: allow acpiphp to build without ACPI_DOCK

Len Brown:
ACPI: restore some dmesg to DEBUG-only, ala 2.6.17
ACPI: skip smart battery init when acpi=off
ACPI: avoid irqrouter_resume might_sleep oops on resume from S4

Pavel Machek:
ACPI: fix boot with acpi=off

Randy Dunlap:
ACPI: handle firmware_register init errors
ACPI: scan: handle kset/kobject errors
ACPI: add message if firmware_register() init fails
ACPI: verbose on kset/kobject_register errors

Starikovskiy, Alexey Y:
ACPI: relax BAD_MADT_ENTRY check to allow LSAPIC variable length string UIDs

William Morrrow:
ACPI: Handle BIOS that resumes from S3 to suspend routine rather than resume vector

Yasunori Goto:
ACPI: memory hotplug: remove useless message at boot time

with this log:

commit da547d775fa9ba8d9dcaee7bc4e960540e2be576
Merge: ef7d1b2... 5b9c9bf... df6fd31... 4e6e650... 5672bde... 16a7474...
Author: Len Brown <[email protected]>
Date: Sun Aug 20 21:49:29 2006 -0400

Merge trivial low-risk suspend hotkey bugzilla-5918 into release

commit df6fd31995cb2e38b2a7e94bc8f1559b8f55404e

Author: Starikovskiy, Alexey Y <[email protected]>
Date:   Fri Aug 18 11:23:00 2006 -0400

ACPI: relax BAD_MADT_ENTRY check to allow LSAPIC variable length string UIDs

ACPI 3.0 appended a variable length UID string to the LAPIC structure as part of support for > 256 processors. So the BAD_MADT_ENTRY() sanity check can no longer compare for equality with a fixed structure length.

commit d68909f4c3eee09c13d4e5c86512c6c075553dbd

Author: Len Brown <[email protected]>
Date:   Wed Aug 16 19:16:58 2006 -0400
    ACPI: avoid irqrouter_resume might_sleep oops on resume from S4
    
    __might_sleep+0x8e/0x93
    acpi_os_wait_semaphore+0x50/0xa3
    acpi_ut_acquire_mutex+0x28/0x6a
    acpi_ns_get_node+0x46/0x88
    acpi_ns_evaluate+0x2d/0xfc
    acpi_rs_set_srs_method_data+0xc5/0xe1
    acpi_set_current_resources+0x31/0x3f
    acpi_pci_link_set+0xfc/0x1a5
    irqrouter_resume+0x48/0x5f
    
    and
    
    __might_sleep+0x8e/0x93
    kmem_cache_alloc+0x2a/0x8f
    acpi_evaluate_integer+0x32/0x96
    acpi_bus_get_status+0x30/0x84
    acpi_pci_link_set+0x12a/0x1a5
    irqrouter_resume+0x48/0x5f
    
    http://bugzilla.kernel.org/show_bug.cgi?id=6810
    
    Signed-off-by: Len Brown <[email protected]>

commit 5672bde6355f2d12c49df1eec083d25afe489063

Author: Handle X <[email protected]>
Date:   Mon Aug 14 22:37:27 2006 -0700

ACPI: hotkey.c fixes, fix for potential crash of hotkey.c

While going through the code, I found out some memory leaks and potential crashes in drivers/acpi/hotkey.c Please find the patch to fix them.

This patch does the following,

1. Fixes memory leaks in error paths of hotkey_write_config

2. Fixes freeing unallocated pointers in the error paths of hotkey_write_config

3. Uses a loop instead of linear searching for parsing the userspace input in get_params

4. Uses array of char * instead of passing 4 pointer parameters explicitly into the init_{poll_}hotkey_* static functions

commit 4e6e6504a4572dee3afcb0925ce92ad559e1e0db

Author: William Morrrow <[email protected]>
Date:   Mon Aug 14 22:37:31 2006 -0700

ACPI: Handle BIOS that resumes from S3 to suspend routine rather than resume vector

A BIOS has been found that resumes from S3 to the routine that invoked suspend, ignoring the resume vector. This appears to the OS as a failed S3 attempt.

This same system suspend/resume's properly with Windows.

It is possible to invoke the protected mode register restore routine (which would normally restore the sysenter registers) when the BIOS returns from S3. This has no effect on a correctly running system and repairs the damage from the deviant BIOS.

commit b5240b32b9b2b75917c478d768191862a2b190cc

Author: Kristen Carlson Accardi <[email protected]>
Date:   Wed Jul 26 13:32:00 2006 -0400

ACPIPHP: allow acpiphp to build without ACPI_DOCK

Change the build options for acpiphp so that it may build without being dependent on the ACPI_DOCK option, but yet does not allow the option of acpiphp being built-in when dock is built as a module.
This does not change the previous patch for ACPI_IBM_DOCK Kconfig.

For the following matrix of config options, I built an i386 kernel.

Dock acpiphp should it build? confirmed
y y y y
y n y y
y m y y
m y no - acpiphp should acpiphp was
convert to m converted to m
m n y y
m m y y
n y y y
n n y y
n m y y

commit 07dd4855e7fffeb50565826e5e736509ee8f6129

Author: Yasunori Goto <[email protected]>
Date:   Mon Aug 14 22:37:32 2006 -0700

ACPI: memory hotplug: remove useless message at boot time

This is to remove noisy useless message at boot. The message is a ton of "ACPI Exception (acpi_memory-0492): AE_ERROR, handle is no memory device"

In my emulation, number of memory devices are not so many (only 6), but, this messages are displayed 114 times.

It is showed by acpi_memory_register_notify_handler() which is called by acpi_walk_namespace().

acpi_walk_namespace() parses all of ACPI's namespace and execute acpi_memory_register_notify_handler(). So, it is called for all of the device which is defined in namespace. If the parsing device is not memory, acpi_memhotplug ignores it due to "no match" and will parse next device. This is normal route, not an exception.

commit e9a315bcae3b9e0c54fb68ef90d0095956314480

Author: Randy Dunlap <[email protected]>
Date:   Mon Aug 14 22:37:24 2006 -0700

ACPI: verbose on kset/kobject_register errors

commit 7daef60721e03809c7e5f8aa8491df4190f6b56f

Author: Randy Dunlap <[email protected]>
Date:   Mon Aug 14 22:37:24 2006 -0700

ACPI: add message if firmware_register() init fails

commit b20d2aeb0ad322cbe7fd9120acae6118231b17a3

Author: Len Brown <[email protected]>
Date:   Tue Aug 15 23:21:37 2006 -0400

ACPI: skip smart battery init when acpi=off

commit 4d8316d5ea4dcf0bf15d8a06d539ed7c99e9cfbe

Author: Pavel Machek <[email protected]>
Date:   Mon Aug 14 22:37:22 2006 -0700

ACPI: fix boot with acpi=off

Fix acpi_ac/battery boot with acpi=off

commit 0ee6a17389ceef65f1a86c38872fa98f08489022

Author: Jean Delvare <[email protected]>
Date:   Fri Aug 11 08:30:31 2006 +0200

ACPI: fix kfree in i2c_ec error path

commit 5b9c9bf6c92274a6eb74fc8f86586ab592a7a1ec

Author: Kristen Carlson Accardi <[email protected]>
Date:   Wed Jul 26 13:59:00 2006 -0400

ACPI: add Dock Station driver to MAINTAINERS file

commit 16a74744231e57e354253567490ab9e4ccd2d605

Author: Bjorn Helgaas <[email protected]>
Date:   Wed Apr 5 08:47:00 2006 -0400

PCI: quirk to disable e100 interrupt if RESET failed to

Without this quirk, e100 can be pulling on a shared interrupt line when another device (eg. USB) loads, causing the interrupt to scream and get disabled.

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

commit 9805cb76f7bcd3108e012270d9ef2fd8ea3bea55

Author: Len Brown <[email protected]>
Date:   Tue Jul 25 13:30:57 2006 -0400

ACPI: restore some dmesg to DEBUG-only, ala 2.6.17

The ACPI_EXCEPTION() patch enabled a bunch of messages to print even in the non-DEBUG kernel. Need to change a couple back, and note that ACPI_EXCEPTION takes no \n, but ACPI_DEBUG_PRINT does.

No context for object [%p]\n
Device `[%s]' is not power manageable\n

commit 9b6d97b64eff08b368375efcf9c1d01eba582ea2

Author: Randy Dunlap <[email protected]>
Date:   Wed Jul 12 02:08:00 2006 -0400

ACPI: scan: handle kset/kobject errors

Check and handle kset_register() and kobject_register() init errors.

commit d568df84f987a9321c1f5826a6c8678ef2bb2b70

Author: Randy Dunlap <[email protected]>
Date:   Wed Jul 12 01:47:00 2006 -0400

ACPI: handle firmware_register init errors

#8 lore raw

Re: [GIT PATCH] ACPI for 2.6.18-rc4

Quoted 8 lines · Len Brown

Hi Linus,

please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git release

This is a batch of low-risk patches that are appropriate for 2.6.18-final. They have all been through -mm.

Pulled from, and pushed out.

thanks,

greg k-h