diff options
author | Bob Moore <robert.moore@intel.com> | 2006-01-27 16:43:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-31 03:25:09 -0500 |
commit | b8e4d89357fc434618a59c1047cac72641191805 (patch) | |
tree | ac97fcc6fdc277c682365900663872c96f2420bd /drivers/acpi/hardware/hwacpi.c | |
parent | 292dd876ee765c478b27c93cc51e93a558ed58bf (diff) |
[ACPI] ACPICA 20060127
Implemented support in the Resource Manager to allow
unresolved namestring references within resource package
objects for the _PRT method. This support is in addition
to the previously implemented unresolved reference
support within the AML parser. If the interpreter slack
mode is enabled (true on Linux unless acpi=strict),
these unresolved references will be passed through
to the caller as a NULL package entry.
http://bugzilla.kernel.org/show_bug.cgi?id=5741
Implemented and deployed new macros and functions for
error and warning messages across the subsystem. These
macros are simpler and generate less code than their
predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,
ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_*
macros.
Implemented the acpi_cpu_flags type to simplify host OS
integration of the Acquire/Release Lock OSL interfaces.
Suggested by Steven Rostedt and Andrew Morton.
Fixed a problem where Alias ASL operators are sometimes
not correctly resolved. causing AE_AML_INTERNAL
http://bugzilla.kernel.org/show_bug.cgi?id=5189
http://bugzilla.kernel.org/show_bug.cgi?id=5674
Fixed several problems with the implementation of the
ConcatenateResTemplate ASL operator. As per the ACPI
specification, zero length buffers are now treated as a
single EndTag. One-length buffers always cause a fatal
exception. Non-zero length buffers that do not end with
a full 2-byte EndTag cause a fatal exception.
Fixed a possible structure overwrite in the
AcpiGetObjectInfo external interface. (With assistance
from Thomas Renninger)
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/hardware/hwacpi.c')
-rw-r--r-- | drivers/acpi/hardware/hwacpi.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/acpi/hardware/hwacpi.c b/drivers/acpi/hardware/hwacpi.c index 5c068cc4f674..ea2f13271ff1 100644 --- a/drivers/acpi/hardware/hwacpi.c +++ b/drivers/acpi/hardware/hwacpi.c | |||
@@ -68,7 +68,7 @@ acpi_status acpi_hw_initialize(void) | |||
68 | /* We must have the ACPI tables by the time we get here */ | 68 | /* We must have the ACPI tables by the time we get here */ |
69 | 69 | ||
70 | if (!acpi_gbl_FADT) { | 70 | if (!acpi_gbl_FADT) { |
71 | ACPI_REPORT_ERROR(("No FADT is present\n")); | 71 | ACPI_ERROR((AE_INFO, "No FADT is present")); |
72 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); | 72 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); |
73 | } | 73 | } |
74 | 74 | ||
@@ -107,7 +107,8 @@ acpi_status acpi_hw_set_mode(u32 mode) | |||
107 | * system does not support mode transition. | 107 | * system does not support mode transition. |
108 | */ | 108 | */ |
109 | if (!acpi_gbl_FADT->smi_cmd) { | 109 | if (!acpi_gbl_FADT->smi_cmd) { |
110 | ACPI_REPORT_ERROR(("No SMI_CMD in FADT, mode transition failed\n")); | 110 | ACPI_ERROR((AE_INFO, |
111 | "No SMI_CMD in FADT, mode transition failed")); | ||
111 | return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); | 112 | return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); |
112 | } | 113 | } |
113 | 114 | ||
@@ -119,7 +120,8 @@ acpi_status acpi_hw_set_mode(u32 mode) | |||
119 | * transitions are not supported. | 120 | * transitions are not supported. |
120 | */ | 121 | */ |
121 | if (!acpi_gbl_FADT->acpi_enable && !acpi_gbl_FADT->acpi_disable) { | 122 | if (!acpi_gbl_FADT->acpi_enable && !acpi_gbl_FADT->acpi_disable) { |
122 | ACPI_REPORT_ERROR(("No ACPI mode transition supported in this system (enable/disable both zero)\n")); | 123 | ACPI_ERROR((AE_INFO, |
124 | "No ACPI mode transition supported in this system (enable/disable both zero)")); | ||
123 | return_ACPI_STATUS(AE_OK); | 125 | return_ACPI_STATUS(AE_OK); |
124 | } | 126 | } |
125 | 127 | ||
@@ -153,8 +155,8 @@ acpi_status acpi_hw_set_mode(u32 mode) | |||
153 | } | 155 | } |
154 | 156 | ||
155 | if (ACPI_FAILURE(status)) { | 157 | if (ACPI_FAILURE(status)) { |
156 | ACPI_REPORT_ERROR(("Could not write mode change, %s\n", | 158 | ACPI_EXCEPTION((AE_INFO, status, |
157 | acpi_format_exception(status))); | 159 | "Could not write ACPI mode change")); |
158 | return_ACPI_STATUS(status); | 160 | return_ACPI_STATUS(status); |
159 | } | 161 | } |
160 | 162 | ||
@@ -174,7 +176,7 @@ acpi_status acpi_hw_set_mode(u32 mode) | |||
174 | retry--; | 176 | retry--; |
175 | } | 177 | } |
176 | 178 | ||
177 | ACPI_REPORT_ERROR(("Hardware never changed modes\n")); | 179 | ACPI_ERROR((AE_INFO, "Hardware did not change modes")); |
178 | return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); | 180 | return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); |
179 | } | 181 | } |
180 | 182 | ||