10347 Commits

Author SHA1 Message Date
Robert Moore
b64e486fb7 Remove obsolete GPE function.
Remove AcpiHwWriteGpeEnableReg, it had been reduced down to a single
line of code, and called from only one place.
2010-06-22 10:28:57 -07:00
Robert Moore
b32838e06c Ensure GPEs are not enabled twice.
While developing the GPE reference counting code we overlooked the
fact that acpi_ev_update_gpes() could have enabled GPEs before
acpi_ev_initialize_gpe_block() was called.  As a result, some GPEs
are enabled twice during the initialization.

To fix this issue avoid calling acpi_enable_gpe() from
acpi_ev_initialize_gpe_block() for the GPEs that have nonzero
runtime reference counters.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Patch : https://patchwork.kernel.org/patch/104911/
2010-06-21 14:53:58 -07:00
Robert Moore
1e514e60e8 Update for GPE enable masking.
ACPICA uses acpi_hw_write_gpe_enable_reg() to re-enable a GPE after
an event signaled by it has been handled.  However, this function
writes the entire GPE enable mask to the GPE's enable register which
may not be correct.  Namely, if one of the other GPEs in the same
register was previously enabled by acpi_enable_gpe() and subsequently
disabled using acpi_set_gpe(), acpi_hw_write_gpe_enable_reg() will
re-enable it along with the target GPE.

To fix this issue rework acpi_hw_write_gpe_enable_reg() so that it
calls acpi_hw_low_set_gpe() with a special action value,
ACPI_GPE_CONDITIONAL_ENABLE, that will make it only enable the GPE if the
corresponding bit in its register's enable_for_run mask is set.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Patch : https://patchwork.kernel.org/patch/104909/
2010-06-21 14:42:52 -07:00
Robert Moore
56ab559769 Update for GPE enabling/disabling.
ACPICA uses acpi_ev_enable_gpe() for enabling GPEs at the low level,
which is incorrect, because this function only enables the GPE if the
corresponding bit in its enable register's enable_for_run mask is set.
This causes acpi_set_gpe() to work incorrectly if used for enabling
GPEs that were not previously enabled with acpi_enable_gpe().  As a
result, among other things, wakeup-only GPEs are never enabled by
acpi_enable_wakeup_device(), so the devices that use them are unable
to wake up the system.

To fix this issue remove acpi_ev_enable_gpe() and its counterpart
acpi_ev_disable_gpe() and replace acpi_hw_low_disable_gpe() with
acpi_hw_low_set_gpe() that will be used instead to manipulate GPE
enable bits at the low level.  Make the users of acpi_ev_enable_gpe()
and acpi_ev_disable_gpe() call acpi_hw_low_set_gpe() instead and
make sure that GPE enable masks are only updated by acpi_enable_gpe()
and acpi_disable_gpe() when GPE reference counters change from 0
to 1 and from 1 to 0, respectively.
Rafael Wysocki. Corresponds to:
Patch : https://patchwork.kernel.org/patch/104912/
2010-06-21 14:28:04 -07:00
Robert Moore
8b4c46906a Add new function to compute GPE register masks.
In quite a few places ACPICA needs to compute a GPE enable mask with
only one bit set, corresponding to a given GPE. Currently, that
computation is always open coded which leads to unnecessary code
duplication. Fix this by introducing a helper function for computing
one-bit GPE enable masks and using it where appropriate.
Rafael Wysocki. corresponds to:
Patch : https://patchwork.kernel.org/patch/104903/
2010-06-21 13:30:30 -07:00
Robert Moore
cd3f1db755 iASL: Fully enable Data Table Compiler (DTC).
No option needed to invoke DTC. Compiler auto-detects ASl code
versus DT code.
2010-06-18 14:52:34 -07:00
Robert Moore
65652115cc iASL: DTC/Disassembler: Standardize buffer format.
Make all buffer values have the same format, rather than three
different formats.
2010-06-18 10:33:18 -07:00
Robert Moore
42cf3e7371 iASL-DTC: Fix a couple issues with subtable and header lengths.
EINJ, ERST.
2010-06-16 15:04:15 -07:00
Robert Moore
8a35bee324 iASL: Add help message that displays all supported ACPI table names.
Added -ht help function. Simply displays currently supported ACPI
table names.
2010-06-11 12:52:24 -07:00
Robert Moore
7cf3243436 iASL-DTC: Add comment support, fix error messages.
Adds full support for comments within input source files.
Fixed a couple error messages one for unknown table signature,
another for unrecognized source file (not asl or data table source.)
Also, reduced verbosity of the standard templates, but added
option (-vt) to make the output look exactly like the disassembler.
2010-06-11 10:05:28 -07:00
Robert Moore
04b4bfd74a acpisrc: update for data table compiler.
new structs.
2010-06-11 10:01:29 -07:00
Robert Moore
cc318d4921 iASL-DTC: Set length field in extended RSDP.
Completes update for RSDP compilation. Set the Length field
in an extended RSDP.
2010-06-09 12:21:32 -07:00
Robert Moore
f23b9c7d49 Revert "Enable multi-byte EC transfers."
This change was found to break IndexField and possibly BankField
operations.
2010-06-09 11:40:54 -07:00
Robert Moore
9178def100 Disassembler: Add new strings for EINJ, ERST, HEST tables.
Add description strings for EINJ/ERST actions and instructions.
Also flag decoding for EINJ/ERST/HEST.
2010-06-08 15:10:01 -07:00
Robert Moore
648799e494 Disassembler: Add checksum validation for RSDP.
Verify both RSDP checksums during disassembly.
Also, fix checksum generation during RSDP compile.
2010-06-08 12:45:36 -07:00
Robert Moore
654c1f0ad2 Add support for OS X in the Unix OSL.
OS X needs to use named semaphores. Conditional on __APPLE__
2010-06-08 12:22:20 -07:00
Robert Moore
3491ce88bb iASL: Update templates for ASF!, HEST, MADT, SRAT.
Add additional subtables so that there is one example of each
possible subtable.
2010-06-07 14:16:06 -07:00
Robert Moore
9ca20f7b59 Disassembler: Cleanup output file header.
A couple minor changes.
2010-06-04 14:06:17 -07:00
Robert Moore
64edfcfe01 iASL: Add templates for FACS, RSDP, DSDT, SSDT.
These tables are a bit different from the rest of the tables.
DSDT/SSDT are AML tables, not data tables. FACS/RSDP do not use
the standard ACPI table header.
2010-06-04 13:41:40 -07:00
Robert Moore
cebf60d620 iASL: Ensure that temporary files (.src) are deleted.
Use the temp filename instead of temp handle for existence check.
Also, clear both the filename and handle during re-init during
multiple file compiles.
2010-06-04 13:38:57 -07:00
Robert Moore
d9634daeee iASL: Additional template generator integration.
Also fixes a few issues with SBST, HEST, and ECDT templates.
2010-06-03 13:38:49 -07:00
Robert Moore
c65f66e528 iASL: Add addtional ACPI table templates.
For IVRS, SBST, UEFI, WAET, WDRT.
2010-06-02 14:59:37 -07:00
Robert Moore
45b2e97735 iASL: Fix several issues with Data Table Compiler.
Eliminate duplicate field names in the same table.
Do not unnecessarily pad strings with blanks.
Fix a problem when compile Flag fields.
2010-06-02 14:00:22 -07:00
Robert Moore
1ad056a79f iASL: Add support to generate ACPI Data Table Template files.
These files can be used as the starting point for an actual ACPI
table, to be compiled via the iASL Data Table Compiler.
2010-06-02 13:45:39 -07:00
Robert Moore
b738e9a74c Add support for WDDT - Watchdog Descriptor Table.
Disassembler and header file support.
2010-06-02 12:29:13 -07:00
Robert Moore
a41ee01736 iASL: Update handling of temp files for DTC.
The Data Table Compiler does not use the .SRC temp files.
Update code flow so this file is not created or used.
2010-06-02 09:41:59 -07:00
Robert Moore
f07ee8aa56 Update version to 20100528.
Version 20100528.
2010-05-28 14:16:03 -07:00
Robert Moore
41fdcaead2 Add signatures for undefined tables: ATKG, GSCI, IEIT.
These ACPI tables have been seen in the field, but the actual
table definitions are unkown at this time.
2010-05-27 10:32:55 -07:00
Robert Moore
45979a335e Automated cleanup - no functional change.
Remove tabs and extra spaces.
2010-05-26 13:32:13 -07:00
Robert Moore
df3d422671 Enable multi-byte EC transfers.
Previously, the maximum data size passed to the EC operation region
handler was a single byte. Since there are often larger datums that
need to be transfered, and the EC would like to lock these as a single
transaction, this change enables transfers larger than a single byte.
This may require changes to the host-OS Embedded Controller driver
to enable 16/32/64 bit tranfers in addition to 8-bit transfers.
Alexey Starikovskiy, Lin Ming
2010-05-26 13:01:18 -07:00
Robert Moore
14aafc8b1b Update flags for operand object.
Remove obsolete AOPOBJ_SINGLE_DATUM. Add AOPOBJ_INVALID for use if
the host OS rejects the address of an operation region (currently
only used by Linux.)
2010-05-26 11:25:44 -07:00
Robert Moore
de716aac23 Performance enhancement for namespace search and access.
This change enhances the performance of namespace searches and walks
by adding a backpointer to the parent in each namespace node. On large
namespaces, this change can improve overall ACPI performance by up to 9X.
Adding a pointer to each namespace node increases the overall size of
the internal namespace by about 5%, since each namespace entry usually
consists of both a namespace node and an ACPI operand object.
Alexey Starikovskiy.
2010-05-25 12:38:08 -07:00
Robert Moore
ac028ba3a8 iASL: Prevent extraneous error message.
In the case where there are errors and the AML file therefore
does not exist.
2010-05-25 08:21:51 -07:00
Robert Moore
b5dc1a48a1 iASL: Fix some issues with data table compiler integration.
Fixes a fault when using wildcards, Fixes linux generation makefile,
adds support for multi-line buffers in the SLIT table.
2010-05-24 10:18:16 -07:00
Robert Moore
d6027aa4c5 iASL: Support for Data Table Compiler.
Modifications to existing compiler that are
required for the data table compiler.
2010-05-21 14:19:32 -07:00
Robert Moore
48ed9d4f7a iASL: New files for Data Table Compiler.
These are the the files that implement the data table compiler.
2010-05-21 14:18:07 -07:00
Robert Moore
045d5cf5c8 Truncate I/O addresses to 16 bits for Windows compatibility.
This feature is optional and is enabled if the BIOS requests any Windows
OSI strings. It can also be enabled by the host OS. Matthew Garrett,
Bob Moore.
2010-05-20 13:57:02 -07:00
Robert Moore
027c7ffd9a Expand device initialization counters to 32 bits.
Expand the various device initialization counters from 16-bit to 32-bit.
Allows for very large namespaces.
2010-05-20 12:29:29 -07:00
Robert Moore
1af8b94914 iASL/Tools: Replace all %d format specifiers with %u (unsigned).
With only a few exceptions, ACPICA does not use signed integers.
Therefore, %d is incorrect.
2010-05-20 12:12:23 -07:00
Robert Moore
3929a1f9a2 Core: Replace all %d format specifiers with %u (unsigned).
With only a few exceptions, ACPICA does not use signed integers.
Therefore, %d is incorrect.
2010-05-20 10:22:16 -07:00
Robert Moore
89f72c1af3 Optimization: Reduce the number of namespace walks.
On control method exit, only walk the namespace if the method is known
to have created namespace objects outside of its local scope.
Bob Moore, Alexey Starikovskiy.
2010-05-20 08:58:10 -07:00
Robert Moore
d90488f435 acpiexec: add option to disable memory tracking mechanism.
-dt option will disable the tracking mechanism, which improves performance
considerably. Also restructured the options into -d (disable) and -e (enable) options.
2010-05-19 13:53:55 -07:00
Robert Moore
b2bad68e4c Limit maximum time for Sleep() operator.
To prevent accidental deep sleeps, limit the maximum time that Sleep()
will sleep. Configurable, default maximum is two seconds.
ACPICA bugzilla 854.
2010-05-19 09:00:58 -07:00
Robert Moore
ba571ef4a6 Expand initialization counters to 32 bits.
Expand the various initialization counters from 16-bit to 32-bit.
Allows for very large namespaces. Alexey Starikovskiy, Bob Moore.
2010-05-18 15:10:09 -07:00
Robert Moore
450158957f iASL/Core: Add support for _WDG/_WED MS methods.
These objects are defined by "Windows Instrumentation", and are not
part of the ACPI spec. Adds compiler support and runtime typechecking
support in the ACPICA core. ACPICA BZ 860.
2010-05-18 12:07:27 -07:00
Robert Moore
07e62f2dbf Fix namestring associated with AE_NO_HANDLER exception.
Was incorrectly AE_WAKE_ONLY_GPE.
2010-04-30 12:33:10 -07:00
Robert Moore
27794f1bd0 Add comment: _BCL cannot be sorted on the fly.
Because of package index values used for _BQC and _BCM.
2010-04-30 12:19:10 -07:00
Robert Moore
2ec18d1ecf Update version to 20100428.
Version 20100428.
2010-04-28 12:24:04 -07:00
Robert Moore
540b6bfb95 iASL: Add -cr option to disable resource descriptor checks.
Useful for ASLTS. Disable errors from resource descriptors.
ASLTS checks for correct byte-by-byte descriptor construction, thus
errors are unavoidable.
2010-04-28 10:16:26 -07:00
Robert Moore
ecff2c8ed5 Update/clarify some parameter names associated with ACPI_HANDLE.
Simple rename of some parameters to standardize them.
2010-04-23 10:00:16 -07:00