]> err.no Git - linux-2.6/log
linux-2.6
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 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 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>
17 years agoACPICA: Cleanup of FADT verification function.
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Cleanup of FADT verification function.

Removed offset display, not needed.

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 20060831
Bob Moore [Fri, 2 Feb 2007 16:48:20 +0000 (19:48 +0300)]
ACPICA: Update version to 20060831

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

Split acpi_format_exception into two parts. New
function is acpi_ut_verify_exception and will be used to
verify exception codes returned by user.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Store GPE number instead of bitmask
Alexey Starikovskiy [Fri, 2 Feb 2007 16:48:19 +0000 (19:48 +0300)]
ACPICA: Store GPE number instead of bitmask

Update internal GPE data structure to simplify
debug, use gpe_number instead of register bitmask.

Signed-off-by: Bob Moore <bob.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Fix unalignment in acpi_ut_repair_name
Bob Moore [Fri, 2 Feb 2007 16:48:19 +0000 (19:48 +0300)]
ACPICA: Fix unalignment in acpi_ut_repair_name

Update interface to acpi_ut_repair_name() to avoid
alignment issues on IA64

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Disable all wake GPEs after first one recieved
Bob Moore [Fri, 2 Feb 2007 16:48:19 +0000 (19:48 +0300)]
ACPICA: Disable all wake GPEs after first one recieved

Change for GPE support: when a wake GPE is
received, now all wake GPEs are immediately disabled to
prevent the waking GPE from firing again, and to prevent
other wake GPEs from interrupting the wake process.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: Add acpi_gpe_count global to track the number of GPE events
Bob Moore [Fri, 2 Feb 2007 16:48:19 +0000 (19:48 +0300)]
ACPICA: Add acpi_gpe_count global to track the number of GPE events

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

Implement support for ACPI DMAR table (DMA
Remapping Table) in header files and disassembler.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: minimal patch to integrate new tables into Linux
Alexey Starikovskiy [Fri, 2 Feb 2007 16:48:19 +0000 (19:48 +0300)]
ACPICA: minimal patch to integrate new tables into Linux

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

Lint changes
Move RSDT/XSDT pointer extraction to separate function
Warning on 32-bit platforms if XSDT pointers use more than 32 bits.

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

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

comments only

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

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

The Table Manager component has been completely
redesigned and reimplemented. The new design is much
simpler, and reduces the overall code and data size of
the kernel-resident ACPICA by approximately 5%. Also,
it is now possible to obtain the ACPI tables very early
during kernel initialization, even before dynamic memory
management is initialized.

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

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

Temporary fix for BankValue parameter of a Bank
Field to support all constant values, including Zero
and One. Must eventually be converted to a full TermArg
evaluation.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoACPICA: fix for object premature deletion
Fiodor Suietov [Fri, 2 Feb 2007 16:48:18 +0000 (19:48 +0300)]
ACPICA: fix for object premature deletion

Fix for object premature deletion after CopyObject
on Operation Region (BZ 350)

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: Cast acpi_thread_id to UINT32 for debug output only
Bob Moore [Fri, 2 Feb 2007 16:48:18 +0000 (19:48 +0300)]
ACPICA: Cast acpi_thread_id to UINT32 for debug output only

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

The ACPI Global Lock interrupt handler no longer
queues the execution of a separate thread to signal the
global lock semaphore. Instead, the semaphore is signaled
directly from the interrupt handler.

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

Completed a new design and implementation for
the ACPI Global Lock support. On the OS side, the global
lock is now treated as a standard AML mutex. Previously,
multiple OS threads could acquire the global lock
simultaneously, but this could cause the BIOS to be starved
by the lock in cases such as the Embedded Controller driver,
where there is a tight coupling between the OS and the BIOS.

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

Additional update for NumElements fix. Must handle
case where NumElements > Package list length, pad package
with null elements.

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

Implement support within the AML interpreter for
package objects that contain a mismatch between the AML
length and package element count. In this case, the lesser
of the two is used. Some BIOS code apparently modifies
the package length on the fly, and this change supports
this. Provides compatibility with the MS AML interpreter.

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

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoMerge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik...
Linus Torvalds [Fri, 2 Feb 2007 17:14:48 +0000 (09:14 -0800)]
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev

* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
  libata: Initialize nbytes for internal sg commands
  libata: Fix ata_busy_wait() kernel docs
  pata_via: Correct missing comments
  pata_atiixp: propogate cable detection hack from drivers/ide to the new driver
  ahci/pata_jmicron: fix JMicron quirk

17 years agolibata: Initialize nbytes for internal sg commands
Brian King [Tue, 30 Jan 2007 17:32:26 +0000 (11:32 -0600)]
libata: Initialize nbytes for internal sg commands

Some LLDDs, like ipr, use nbytes and pad_len to determine
the total data transfer length of a command. Make sure
nbytes gets initialized for internally generated commands.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
17 years agolibata: Fix ata_busy_wait() kernel docs
Alan [Wed, 31 Jan 2007 17:47:24 +0000 (17:47 +0000)]
libata: Fix ata_busy_wait() kernel docs

> Looks like you should use ata_busy_wait() here, rather than reproducing
> the same code again.

It waits in 10uS chunks while 1uS chunks were used in the workaround.
Could indeed do that once I know the fix is right. While I'm at it the
ata_busy_wait kerneldoc is borked so here's a fix

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
17 years agopata_via: Correct missing comments
Alan [Wed, 31 Jan 2007 17:14:38 +0000 (17:14 +0000)]
pata_via: Correct missing comments

The 8237S was added to the chipsets but not to the comments. Fix this

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
17 years agopata_atiixp: propogate cable detection hack from drivers/ide to the new driver
Alan [Wed, 31 Jan 2007 17:10:46 +0000 (17:10 +0000)]
pata_atiixp: propogate cable detection hack from drivers/ide to the new driver

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
17 years agoahci/pata_jmicron: fix JMicron quirk
Tejun Heo [Fri, 2 Feb 2007 05:51:09 +0000 (14:51 +0900)]
ahci/pata_jmicron: fix JMicron quirk

For all JMicrons except for 361 and 368, AHCI mode enable bits in the
Control(1) should be set.  This used to be done in both ahci and
pata_jmicron but while moving programming to PCI quirk, it was removed
from ahci part while still left in pata_jmicron.

The implemented JMicron PCI quirk was incorrect in that it didn't
program AHCI mode enable bits.  If pata_jmicron is loaded first and
programs those bits, the ahci ports work; otherwise, ahci device
detection fails miserably.

This patch makes JMicron PCI quirk clear SATA IDE mode bits and set
AHCI mode bits and remove the respective part from pata_jmicron.
Tested on JMB361, 363 and 368.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
17 years agoMerge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik...
Linus Torvalds [Fri, 2 Feb 2007 16:13:23 +0000 (08:13 -0800)]
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6

* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
  spidernet : fix memory leak in spider_net_stop
  e100: fix napi ifdefs removing needed code
  netxen patches

17 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/davem/bnx2-2.6
Linus Torvalds [Fri, 2 Feb 2007 16:10:58 +0000 (08:10 -0800)]
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/bnx2-2.6

* master.kernel.org:/pub/scm/linux/kernel/git/davem/bnx2-2.6:
  [BNX2]: PHY workaround for 5709 A0.

17 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Linus Torvalds [Fri, 2 Feb 2007 16:10:30 +0000 (08:10 -0800)]
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6

* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
  [NET_SCHED]: act_ipt: fix regression in ipt action

17 years agoMerge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
Linus Torvalds [Fri, 2 Feb 2007 16:10:17 +0000 (08:10 -0800)]
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6

* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
  [SPARC32]: Fix over-optimization by GCC near ip_fast_csum.