GitHub/mt8127/android_kernel_alcatel_ttab.git
17 years agoPull test into release branch
Len Brown [Tue, 6 Feb 2007 20:31:00 +0000 (15:31 -0500)]
Pull test into release branch

17 years agoPull acpica into test branch
Len Brown [Tue, 6 Feb 2007 20:30:03 +0000 (15:30 -0500)]
Pull acpica into test branch

17 years agoACPICA: reduce table header messages to fit within 80 columns
Len Brown [Tue, 6 Feb 2007 20:28:23 +0000 (15:28 -0500)]
ACPICA: reduce table header messages to fit within 80 columns

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoLinux 2.6.20
Linus Torvalds [Sun, 4 Feb 2007 18:44:54 +0000 (10:44 -0800)]
Linux 2.6.20

17 years ago[PATCH] EFI x86: pass firmware call parameters on the stack
Frédéric Riss [Tue, 30 Jan 2007 20:41:17 +0000 (21:41 +0100)]
[PATCH] EFI x86: pass firmware call parameters on the stack

When calling into the EFI firmware, the parameters need to be passed on
the stack. The recent change to use -mregparm=3 breaks x86 EFI support.
This patch is needed to allow the new Intel-based Macs to suspend to ram
(efi.get_time is called during the suspend phase).

Signed-off-by: Frederic Riss <frederic.riss@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years ago[PATCH] fix rtl8150
Al Viro [Sun, 4 Feb 2007 03:02:17 +0000 (03:02 +0000)]
[PATCH] fix rtl8150

That code doesn't do what its author apparently thought it would do...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6
Linus Torvalds [Sat, 3 Feb 2007 19:26:39 +0000 (11:26 -0800)]
Merge /linux/kernel/git/jejb/scsi-rc-fixes-2.6

* master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
  [SCSI] sd: udev accessing an uninitialized scsi_disk field results in a crash
  [SCSI] st: A MTIOCTOP/MTWEOF within the early warning will cause the file number to be incorrect
  [SCSI] qla4xxx: bug fixes
  [SCSI] Fix scsi_add_device() for async scanning

17 years ago[PATCH] x86-64: define dma noncoherent API functions
Jeff Garzik [Sat, 3 Feb 2007 09:14:03 +0000 (01:14 -0800)]
[PATCH] x86-64: define dma noncoherent API functions

x86-64 is missing these:

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years ago[PATCH] Altix: more ACPI PRT support
John Keller [Sat, 3 Feb 2007 09:14:02 +0000 (01:14 -0800)]
[PATCH] Altix: more ACPI PRT support

The SN Altix platform does not conform to the IOSAPIC IRQ routing model.
Add code in acpi_unregister_gsi() to check if (acpi_irq_model ==
ACPI_IRQ_MODEL_PLATFORM) and return.

Due to an oversight, this code was not added previously when
similar code was added to acpi_register_gsi().

http://marc.theaimsgroup.com/?l=linux-acpi&m=116680983430121&w=2

Signed-off-by: John Keller <jpk@sgi.com>
Acked-by: Len Brown <lenb@kernel.org>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years ago[PATCH] revert blockdev direct io back to 2.6.19 version
Andrew Morton [Sat, 3 Feb 2007 09:14:01 +0000 (01:14 -0800)]
[PATCH] revert blockdev direct io back to 2.6.19 version

Andrew Vasquez is reporting as-iosched oopses and a 65% throughput
slowdown due to the recent special-casing of direct-io against
blockdevs.  We don't know why either of these things are occurring.

The patch minimally reverts us back to the 2.6.19 code for a 2.6.20
release.

Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>
Cc: Ken Chen <kenchen@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years ago[PATCH] alpha: fix epoll syscall enumerations
Mike Frysinger [Sat, 3 Feb 2007 09:13:55 +0000 (01:13 -0800)]
[PATCH] alpha: fix epoll syscall enumerations

We went and named them __NR_sys_foo instead of __NR_foo.

It may be too late to change this, but we can at least add the proper names
now.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years ago[PATCH] net/smc911x: match up spin lock/unlock
Peter Korsgaard [Sat, 3 Feb 2007 09:13:50 +0000 (01:13 -0800)]
[PATCH] net/smc911x: match up spin lock/unlock

smc911x_phy_configure's error handling unconditionally unlocks the
spinlock even if it wasn't locked. Patch fixes it.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years ago[PATCH] kexec: Avoid migration of already disabled irqs (ia64)
Magnus Damm [Sat, 3 Feb 2007 09:13:48 +0000 (01:13 -0800)]
[PATCH] kexec: Avoid migration of already disabled irqs (ia64)

This patch fixes up ia64 kexec support for HP rx2620 hardware.  It does
this by skipping migration of already disabled irqs.  This is most likely a
problem on other ia64 platforms as well, but I've only been able to
reproduce it on one machine so far.

The full story is that handle_bad_irq() gets invoked before starting the
new kernel without this patch.  This seems to happen when fixup_irqs()
calls generic_handle_irq() on already migrated (and disabled) irqs.  So by
avoiding migration of disabled irqs we stay away of handle_bad_irq().

The code has been tested on three different ia64 machines, all with good
results.  It is possible to trigger the same bug by offlining a processor
using echo 0 > /sys/devices/system/cpu/cpuX/online.

More detailed information is available in the following mail thread:
http://lists.osdl.org/pipermail/fastboot/2007-January/thread.html#5774

Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
Acked-by: Simon Horman <horms@verge.net.au>
Acked-by: Zou, Nanhai <nanhai.zou@intel.com>
Acked-by: Jay Lan <jlan@sgi.com>
Acked-by: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years ago[PATCH] aio: fix buggy put_ioctx call in aio_complete - v2
Ken Chen [Sat, 3 Feb 2007 09:13:45 +0000 (01:13 -0800)]
[PATCH] aio: fix buggy put_ioctx call in aio_complete - v2

An AIO bug was reported that sleeping function is being called in softirq
context:

BUG: warning at kernel/mutex.c:132/__mutex_lock_common()
Call Trace:
     [<a000000100577b00>] __mutex_lock_slowpath+0x640/0x6c0
     [<a000000100577ba0>] mutex_lock+0x20/0x40
     [<a0000001000a25b0>] flush_workqueue+0xb0/0x1a0
     [<a00000010018c0c0>] __put_ioctx+0xc0/0x240
     [<a00000010018d470>] aio_complete+0x2f0/0x420
     [<a00000010019cc80>] finished_one_bio+0x200/0x2a0
     [<a00000010019d1c0>] dio_bio_complete+0x1c0/0x200
     [<a00000010019d260>] dio_bio_end_aio+0x60/0x80
     [<a00000010014acd0>] bio_endio+0x110/0x1c0
     [<a0000001002770e0>] __end_that_request_first+0x180/0xba0
     [<a000000100277b90>] end_that_request_chunk+0x30/0x60
     [<a0000002073c0c70>] scsi_end_request+0x50/0x300 [scsi_mod]
     [<a0000002073c1240>] scsi_io_completion+0x200/0x8a0 [scsi_mod]
     [<a0000002074729b0>] sd_rw_intr+0x330/0x860 [sd_mod]
     [<a0000002073b3ac0>] scsi_finish_command+0x100/0x1c0 [scsi_mod]
     [<a0000002073c2910>] scsi_softirq_done+0x230/0x300 [scsi_mod]
     [<a000000100277d20>] blk_done_softirq+0x160/0x1c0
     [<a000000100083e00>] __do_softirq+0x200/0x240
     [<a000000100083eb0>] do_softirq+0x70/0xc0

See report: http://marc.theaimsgroup.com/?l=linux-kernel&m=116599593200888&w=2

flush_workqueue() is not allowed to be called in the softirq context.
However, aio_complete() called from I/O interrupt can potentially call
put_ioctx with last ref count on ioctx and triggers bug.  It is simply
incorrect to perform ioctx freeing from aio_complete.

The bug is trigger-able from a race between io_destroy() and aio_complete().
A possible scenario:

cpu0                               cpu1
io_destroy                         aio_complete
  wait_for_all_aios {                __aio_put_req
     ...                                 ctx->reqs_active--;
     if (!ctx->reqs_active)
        return;
  }
  ...
  put_ioctx(ioctx)

                                     put_ioctx(ctx);
                                        __put_ioctx
                                          bam! Bug trigger!

The real problem is that the condition check of ctx->reqs_active in
wait_for_all_aios() is incorrect that access to reqs_active is not
being properly protected by spin lock.

This patch adds that protective spin lock, and at the same time removes
all duplicate ref counting for each kiocb as reqs_active is already used
as a ref count for each active ioctx.  This also ensures that buggy call
to flush_workqueue() in softirq context is eliminated.

Signed-off-by: "Ken Chen" <kenchen@google.com>
Cc: Zach Brown <zach.brown@oracle.com>
Cc: Suparna Bhattacharya <suparna@in.ibm.com>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Cc: <stable@kernel.org>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agoasus-laptop: merge with ACPICA table update
Len Brown [Sat, 3 Feb 2007 07:13:53 +0000 (02:13 -0500)]
asus-laptop: merge with ACPICA table update

No longer need a buffer for a copy of the DSDT,
just a pointer to the mapped table.

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoPull output-switch into test branch
Len Brown [Sat, 3 Feb 2007 06:39:22 +0000 (01:39 -0500)]
Pull output-switch into test branch

17 years agoPull trivial into test branch
Len Brown [Sat, 3 Feb 2007 06:39:07 +0000 (01:39 -0500)]
Pull trivial into test branch

Conflicts:

drivers/acpi/scan.c

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoPull asus into test branch
Len Brown [Sat, 3 Feb 2007 06:38:30 +0000 (01:38 -0500)]
Pull asus into test branch

17 years agoPull motherboard into test branch
Len Brown [Sat, 3 Feb 2007 06:38:16 +0000 (01:38 -0500)]
Pull motherboard into test branch

Conflicts:

drivers/acpi/motherboard.c

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPI: bay: Convert ACPI Bay driver to be compatible with sysfs update.
Zhang Rui [Thu, 11 Jan 2007 07:09:09 +0000 (02:09 -0500)]
ACPI: bay: Convert ACPI Bay driver to be compatible with sysfs update.

Set fake hid for ejectable drive bay.
Match bay devices by checking the hid.
Remove .match method of Bay driver.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoPull sysfs into test branch
Len Brown [Sat, 3 Feb 2007 06:14:35 +0000 (01:14 -0500)]
Pull sysfs into test branch

Conflicts:

Documentation/feature-removal-schedule.txt
include/acpi/acpi_drivers.h

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoPull bay into test branch
Len Brown [Sat, 3 Feb 2007 06:12:39 +0000 (01:12 -0500)]
Pull bay into test branch

17 years agoACPI: bay: new driver is EXPERIMENTAL
Len Brown [Sat, 3 Feb 2007 03:39:16 +0000 (22:39 -0500)]
ACPI: bay: new driver is EXPERIMENTAL

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPI: bay: make drive_bays static
Adrian Bunk [Mon, 4 Dec 2006 22:49:39 +0000 (14:49 -0800)]
ACPI: bay: make drive_bays static

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPI: bay: make bay a platform driver
Kristen Carlson Accardi [Mon, 18 Dec 2006 23:07:00 +0000 (18:07 -0500)]
ACPI: bay: make bay a platform driver

Convert the bay driver to be a platform driver, so that we can have
sysfs entries.

Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPI: bay: remove prototype procfs code
Kristen Carlson Accardi [Mon, 18 Dec 2006 23:06:00 +0000 (18:06 -0500)]
ACPI: bay: remove prototype procfs code

Remove all the procfs related code.

Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPI: bay: delete unused variable
Len Brown [Sat, 21 Oct 2006 05:15:41 +0000 (01:15 -0400)]
ACPI: bay: delete unused variable

drivers/acpi/bay.c: In function ‘bay_notify’:
drivers/acpi/bay.c:491: warning: unused variable ‘bay’

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPI: bay: new driver adding removable drive bay support
Kristen Carlson Accardi [Fri, 20 Oct 2006 21:30:25 +0000 (14:30 -0700)]
ACPI: bay: new driver adding removable drive bay support

Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPI: dock: check if parent is on dock
Kristen Carlson Accardi [Sat, 3 Feb 2007 03:33:00 +0000 (22:33 -0500)]
ACPI: dock: check if parent is on dock

When determining if a device is on a dock station, we should
check the parent of the device as well.

Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoPull acpica into test branch
Len Brown [Sat, 3 Feb 2007 06:08:52 +0000 (01:08 -0500)]
Pull acpica into test branch

17 years agoACPICA: fix gcc build warnings
Alexey Starikovskiy [Fri, 26 Jan 2007 03:39:44 +0000 (22:39 -0500)]
ACPICA: fix gcc build warnings

drivers/acpi/namespace/nsparse.c:126: warning: int format, different type arg (arg 7)
drivers/acpi/tables/tbfadt.c:224: warning: unsigned int format, different type arg (arg 6)
drivers/acpi/utilities/utdebug.c:184: warning: cast from pointer to integer of different size
drivers/acpi/utilities/utdebug.c:184: warning: cast from pointer to integer of different size
drivers/acpi/utilities/utdebug.c:197: warning: cast from pointer to integer of different size
drivers/acpi/processor_idle.c:1093: warning: long long unsigned int format, u64 arg (arg 5)

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoPull bugzilla-7349 into test branch
Len Brown [Sat, 3 Feb 2007 03:42:44 +0000 (22:42 -0500)]
Pull bugzilla-7349 into test branch

17 years agoPull video into test branch
Len Brown [Sat, 3 Feb 2007 03:42:02 +0000 (22:42 -0500)]
Pull video into test branch

17 years ago[NETFILTER]: nf_conntrack_h323: fix compile error with CONFIG_IPV6=m, CONFIG_NF_CONNT...
Adrian Bunk [Sat, 3 Feb 2007 03:33:52 +0000 (19:33 -0800)]
[NETFILTER]: nf_conntrack_h323: fix compile error with CONFIG_IPV6=m, CONFIG_NF_CONNTRACK_H323=y

Fix this by letting NF_CONNTRACK_H323 depend on (IPV6 || IPV6=n).

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[NETFILTER]: ctnetlink: fix compile failure with NF_CONNTRACK_MARK=n
Patrick McHardy [Sat, 3 Feb 2007 03:33:11 +0000 (19:33 -0800)]
[NETFILTER]: ctnetlink: fix compile failure with NF_CONNTRACK_MARK=n

  CC      net/netfilter/nf_conntrack_netlink.o
net/netfilter/nf_conntrack_netlink.c: In function 'ctnetlink_conntrack_event':
net/netfilter/nf_conntrack_netlink.c:392: error: 'struct nf_conn' has no member named 'mark'
make[3]: *** [net/netfilter/nf_conntrack_netlink.o] Error 1

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoPull hp-pci-root into test branch
Len Brown [Sat, 3 Feb 2007 03:21:10 +0000 (22:21 -0500)]
Pull hp-pci-root into test branch

17 years agoAltix: Add ACPI SSDT PCI device support (hotplug)
John Keller [Tue, 30 Jan 2007 06:18:38 +0000 (01:18 -0500)]
Altix: Add ACPI SSDT PCI device support (hotplug)

Support for dynamic loading and unloading of ACPI SSDT tables upon slot
hotplugs and unplugs.

On SN platforms, we now represent every populated root bus slot with a single
ACPI SSDT table containing info for every device and PPB attached to the slot.
 These SSDTs are generated by the prom at initial boot and hotplug time.  The
info in these SSDT tables is used by the SN kernel IO "fixup" code (which is
called at boot and hotplug time).

On hotplugs (i.e.  enable_slot()), if running with an ACPI capable prom,
attempt to obtain a new ACPI SSDT table for the slot being hotplugged.  If
successful, add the table to the ACPI namespace (acpi_load_table()) and then
walk the new devices and add them to the ACPI infrastructure (acpi_bus_add()).

On hot unplugs (i.e.  disable_slot()), if running with an ACPI capable prom,
attempt to remove the SSDT table associated with the slot from the ACPI
namespace (acpi_unload_table_id()) and infastructure (acpi_bus_trim()).

From: John Keller <jpk@sgi.com>

 A bug was fixed where the sgi hotplug driver was removing
 the slot's SSDT table from the ACPI namespace a bit too early in
 disable_slot(). Also, we now call acpi_bus_start() subsequent
 to acpi_bus_add().

Signed-off-by: Aaron Young <ayoung@sgi.com>
Cc: Greg KH <greg@kroah.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown<len.brown@intel.com>
17 years agoAltix: ACPI SSDT PCI device support
John Keller [Tue, 30 Jan 2007 06:17:37 +0000 (01:17 -0500)]
Altix: ACPI SSDT PCI device support

Add SN platform support for running with an ACPI
capable PROM that defines PCI devices in SSDT
tables. There is a SSDT table for every occupied
slot on a root bus, containing info for every
PPB and/or device on the bus. The SSDTs will be
dynamically loaded/unloaded at hotplug enable/disable.

Platform specific information that is currently
passed via a SAL call, will now be passed via the
Vendor resource in the ACPI Device object(s) defined
in each SSDT.

Signed-off-by: John Keller <jpk@sgi.com>
Cc: Greg KH <greg@kroah.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: reduce conflicts with Altix patch series
Len Brown [Sat, 3 Feb 2007 03:14:22 +0000 (22:14 -0500)]
ACPICA: reduce conflicts with Altix patch series

Syntax only -- no functional changes.

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPI_NUMA: fix HP IA64 simulator issue with extended memory domain
Alexey Starikovskiy [Sat, 3 Feb 2007 03:02:55 +0000 (22:02 -0500)]
ACPI_NUMA: fix HP IA64 simulator issue with extended memory domain

ACPI 3.0 incorporated the SRAT spec, upping the table version to 2,
and extending the size of the proximity domain from 1-byte to 4-bytes.
This extension was into a reserved field that firmware should
set to 0, but the HP simulator had non-zero values there
resulting in unexpected huge numbers.

So mask the domain down to 8-bits for now.
A more general fix will be to check the table version
supplied by firmware and get paranoid about reserved fields.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPI: fix HP RX2600 IA64 boot
Alexey Starikovskiy [Sat, 3 Feb 2007 02:48:40 +0000 (21:48 -0500)]
ACPI: fix HP RX2600 IA64 boot

Copy space_id of GAS structure to newly created GAS.
The previous FADT conversion code defaulted to IO space.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPI: build fix for IBM x440 - CONFIG_X86_SUMMIT
Alexey Starikovskiy [Sat, 3 Feb 2007 02:37:53 +0000 (21:37 -0500)]
ACPI: build fix for IBM x440 - CONFIG_X86_SUMMIT

i386 srat.c broke due to re-names from ACPICA table-manager re-write.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update version to 20070126
Bob Moore [Fri, 2 Feb 2007 16:48:24 +0000 (19:48 +0300)]
ACPICA: Update version to 20070126

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Fix for incorrect parameter passed to AcpiTbDeleteTable during table load.
Bob Moore [Fri, 2 Feb 2007 16:48:24 +0000 (19:48 +0300)]
ACPICA: Fix for incorrect parameter passed to AcpiTbDeleteTable during table load.

Bad pointer was passed in the case where the DSDT is overridden.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update copyright to 2007.
Bob Moore [Fri, 2 Feb 2007 16:48:24 +0000 (19:48 +0300)]
ACPICA: Update copyright to 2007.

Added 2007 copyright to all module headers and signons. This affects
virtually every file in the ACPICA core subsystem, iASL compiler,
and the utilities.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Allow processor to be declared with the Device() instead of Processor()
Alexey Starikovskiy [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Allow processor to be declared with the Device() instead of Processor()

Allow processor to be declered with the Device(), such as:
Device(CPU1234) {
Name(_HID, "ACPI007")
Name(_UID, 1234)
}

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Allow ACPI id to be u32 instead of u8.
Alexey Starikovskiy [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Allow ACPI id to be u32 instead of u8.

Allow ACPI id to be u32 instead of u8.
Requires drop of conversion tables with the acpiid as index.

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update version to 20061215
Bob Moore [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Update version to 20061215

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Added option to display memory statistics upon termination.
Bob Moore [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Added option to display memory statistics upon termination.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Enhance debugger statistics/memory command.
Valery A. Podrezov [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Enhance debugger statistics/memory command.

Debugger: Enhanced the Statistics/Memory command to emit the
total (maximum) memory used during execution, as well as the
maximum memory consumed by each of the various object types.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update a comment.
Bob Moore [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Update a comment.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Debugger multithreading enhancements.
Bob Moore [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Debugger multithreading enhancements.

Implemented enhancements to the multithreading support within
the debugger to enable better multithreading evaluation of the subsystem.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Removed all 16-bit support.
Bob Moore [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Removed all 16-bit support.

Support for 16-bit ACPICA has been completely removed since it is
no longer necessary and it clutters the code. All 16-bit macros,
types, and conditional compiles have been removed, cleaning up
and simplifying the code across the entire subsystem.
DOS support is no longer needed since the Linux firmware kit
is now available.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update version to 20061109
Bob Moore [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Update version to 20061109

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Add include of actables.h
Bob Moore [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Add include of actables.h

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Fail AcpiEnable if ACPI tables not loaded.
Bob Moore [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Fail AcpiEnable if ACPI tables not loaded.

AcpiEnable will now fail if all of the required ACPI tables are not
loaded (FADT, FACS, DSDT). BZ 477

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Add ACPI_MAX macro
Bob Moore [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Add ACPI_MAX macro

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Ensure that all structures in acobject.h are aligned, via #pragma.
Bob Moore [Fri, 2 Feb 2007 16:48:23 +0000 (19:48 +0300)]
ACPICA: Ensure that all structures in acobject.h are aligned, via #pragma.

Thus, even if the default compiler setting is non-aligned, the header is compiled
 correctly.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Remove global lock handler on AcpiTerminate.
Bob Moore [Fri, 2 Feb 2007 16:48:22 +0000 (19:48 +0300)]
ACPICA: Remove global lock handler on AcpiTerminate.

Added AcpiEvRemoveGlobalLockHandler

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Fixes for load() operator.
Alexey Starikovskiy [Fri, 2 Feb 2007 16:48:22 +0000 (19:48 +0300)]
ACPICA: Fixes for load() operator.

Optimized the Load operator in the case where the source operand is an
operation region. Simply map the operation region memory, instead of
performing a bytewise read.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Miscellaneous table manager updates and optimizations
Alexey Starikovskiy [Fri, 2 Feb 2007 16:48:22 +0000 (19:48 +0300)]
ACPICA: Miscellaneous table manager updates and optimizations

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update debug output routines for data structure changes
Bob Moore [Fri, 2 Feb 2007 16:48:22 +0000 (19:48 +0300)]
ACPICA: Update debug output routines for data structure changes

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Remove duplicate table definitions (non-conflicting), cont
Alexey Starikovskiy [Fri, 2 Feb 2007 16:48:22 +0000 (19:48 +0300)]
ACPICA: Remove duplicate table definitions (non-conflicting), cont

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Remove duplicate table definitions (non-conflicting)
Alexey Starikovskiy [Fri, 2 Feb 2007 16:48:22 +0000 (19:48 +0300)]
ACPICA: Remove duplicate table definitions (non-conflicting)

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Remove duplicate table definitions.
Alexey Starikovskiy [Fri, 2 Feb 2007 16:48:22 +0000 (19:48 +0300)]
ACPICA: Remove duplicate table definitions.

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: use new ACPI headers.
Alexey Starikovskiy [Fri, 2 Feb 2007 16:48:22 +0000 (19:48 +0300)]
ACPICA: use new ACPI headers.

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Remove duplicate table manager
Alexey Starikovskiy [Fri, 2 Feb 2007 16:48:22 +0000 (19:48 +0300)]
ACPICA: Remove duplicate table manager

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update version to 20061011
Bob Moore [Fri, 2 Feb 2007 16:48:22 +0000 (19:48 +0300)]
ACPICA: Update version to 20061011

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Fixes for parameter validation.
Bob Moore [Fri, 2 Feb 2007 16:48:22 +0000 (19:48 +0300)]
ACPICA: Fixes for parameter validation.

Extra checks for valid handle/path combinations, BZ 478

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Abort downward walk on temporary node detection.
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Abort downward walk on temporary node detection.

Enhancement to code that ignores temporary  namespace nodes

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update comments
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Update comments

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Use manifest constants for parse pass number
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Use manifest constants for parse pass number

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: _CID support for PCI Root Bridge detection.
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: _CID support for PCI Root Bridge detection.

Implemented _CID support for PCI Root Bridge detection. If the _HID
does not match the predefined root bridge IDs, the _CID list (if present)
 is now obtained and also checked for an ID match

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Fix race condition with AcpiWalkNamespace.
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Fix race condition with AcpiWalkNamespace.

Fixed a problem with a possible race condition between threads executing
AcpiWalkNamespace and the AML interpreter. This condition was removed by
modifying AcpiWalkNamespace to (by default) ignore all temporary
namespace entries created during any concurrent control method execution

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Eliminate control method 2-pass parse/execute.
Valery Podrezov [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Eliminate control method 2-pass parse/execute.

Completed an AML interpreter performance enhancement for control method
execution. Previously a 2-pass parse/execution, control methods are now
completely parsed and executed in single pass. This improves overall
interpreter performance by ~25%, reduces code size, and reduces CPU stack use.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Restructured module into multiple functions.
Mikhail Kouzmich [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Restructured module into multiple functions.

Restructured the AML ParseLoop function, breaking it into several
subfunctions in order to reduce CPU stack use and improve maintainability

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update version to 20060927
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Update version to 20060927

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Add new subsystem state bit that is set after SubsystemInitialize is called
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Add new subsystem state bit that is set after SubsystemInitialize is called

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Fix for possible memory leak and fault.
Fiodor Suietov [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Fix for possible memory leak and fault.

Fixed a possible memory leak and fault in acpi_ex_resolve_object_to_value()
during a read from a buffer or region field. (BZ 458)

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update interpreter error paths to always report the error
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Update interpreter error paths to always report the error

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: On AML mutex force-release, set depth to zero (was 1).
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: On AML mutex force-release, set depth to zero (was 1).

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Use faster ByIndex interface to get FACS
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Use faster ByIndex interface to get FACS

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Remove obsolete Flags parameter.
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Remove obsolete Flags parameter.

Remove flags parameter for acpi_{get,set}_register().
It is no longer necessary now that these functions use a
spinlock for mutual exclusion.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Fix for Global Lock semaphore.
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Fix for Global Lock semaphore.

Fixed a problem with the Global Lock where the lock could appear to be obtained before it is actually obtained, semaphore created with one unit.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Add full table name to disassembler output
Bob Moore [Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)]
ACPICA: Add full table name to disassembler output

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update version to 20060912
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Update version to 20060912

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Fix trace output name and whitespace
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Fix trace output name and whitespace

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Fix memory leak in table load error path
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Fix memory leak in table load error path

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: New common routine for creating and verifying a local FADT.
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: New common routine for creating and verifying a local FADT.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Report error if method creates 2 objects with the same name
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Report error if method creates 2 objects with the same name

Fixed a regression where an error was no
longer emitted if a control method attempts to create 2
objects of the same name. This previously and now returns
AE_ALREADY_EXISTS. When this exception occurs, it invokes
the mechanism that will dynamically serialize the control
method to possible prevent future errors. (BZ 440)

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: FADT verification is now table driven.
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: FADT verification is now table driven.

Disassembler now verifies an input

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Add declarations for ASF! sub-tables
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Add declarations for ASF! sub-tables

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: IsResourceTemplate now returns ACPI_STATUS
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: IsResourceTemplate now returns ACPI_STATUS

to differentiate the failure modes.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Allow type ANY to be the target of the Scope operator.
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Allow type ANY to be the target of the Scope operator.

Useful during disassembly where the target may
be in a different table and thus the type is unknown.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: re-factor table init routines for benefit of iASL
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: re-factor table init routines for benefit of iASL

Required new table init interface since iASL does not use RSDP/XSDT.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: add ASF comment
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: add ASF comment

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Update comments in tbfadt.c
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Update comments in tbfadt.c

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Delete stale FADT functions outside tbfadt.c.
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Delete stale FADT functions outside tbfadt.c.

Moved all FADT-related functions to a new file, tbfadt.c.
Eliminated the acpi_hw_initialize function - the
FADT registers are now validated when the table is loaded.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Re-implement interpreters' "serialized mode"
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Re-implement interpreters' "serialized mode"

Enhanced the implementation of the interpreters'
serialized mode (boot with "acpi_serialize" to set
acpi_glb_all_methods_serialized flag.)
When this mode is specified, instead of creating a serialization
semaphore per control method, the interpreter lock is
simply no longer released before a blocking operation
during control method execution. This effectively makes
the AML Interpreter single-threaded. The overhead of a
semaphore per-method is eliminated.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Create tbfadt.c to hold all FADT-related functions
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Create tbfadt.c to hold all FADT-related functions

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>