diff options
author | Robert Moore <Robert.Moore@intel.com> | 2005-09-02 17:24:17 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-09-03 00:15:11 -0400 |
commit | aff8c2777d1a9edf97f26bf60579f9c931443eb1 (patch) | |
tree | fcd5bfe84e0e3aeb328d60ec41776522b9b7d122 /drivers/acpi/parser | |
parent | a94f18810f52d3a6de0a09bee0c7258b62eca262 (diff) |
[ACPI] ACPICA 20050902
Fixed a problem with the internal Owner ID allocation and
deallocation mechanisms for control method execution and
recursive method invocation. This should eliminate the
OWNER_ID_LIMIT exceptions and "Invalid OwnerId" messages
seen on some systems. Recursive method invocation depth
is currently limited to 255. (Alexey Starikovskiy)
http://bugzilla.kernel.org/show_bug.cgi?id=4892
Completely eliminated all vestiges of support for the
"module-level executable code" until this support is
fully implemented and debugged. This should eliminate the
NO_RETURN_VALUE exceptions seen during table load on some
systems that invoke this support.
http://bugzilla.kernel.org/show_bug.cgi?id=5162
Fixed a problem within the resource manager code where
the transaction flags for a 64-bit address descriptor were
handled incorrectly in the type-specific flag byte.
Consolidated duplicate code within the address descriptor
resource manager code, reducing overall subsystem code size.
Signed-off-by: Robert Moore <Robert.Moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/parser')
-rw-r--r-- | drivers/acpi/parser/psparse.c | 23 | ||||
-rw-r--r-- | drivers/acpi/parser/psxface.c | 14 |
2 files changed, 9 insertions, 28 deletions
diff --git a/drivers/acpi/parser/psparse.c b/drivers/acpi/parser/psparse.c index 3248051d77ee..76d4d640d83c 100644 --- a/drivers/acpi/parser/psparse.c +++ b/drivers/acpi/parser/psparse.c | |||
@@ -438,7 +438,6 @@ acpi_ps_next_parse_state(struct acpi_walk_state *walk_state, | |||
438 | acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state) | 438 | acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state) |
439 | { | 439 | { |
440 | acpi_status status; | 440 | acpi_status status; |
441 | acpi_status terminate_status; | ||
442 | struct acpi_thread_state *thread; | 441 | struct acpi_thread_state *thread; |
443 | struct acpi_thread_state *prev_walk_list = acpi_gbl_current_walk_list; | 442 | struct acpi_thread_state *prev_walk_list = acpi_gbl_current_walk_list; |
444 | struct acpi_walk_state *previous_walk_state; | 443 | struct acpi_walk_state *previous_walk_state; |
@@ -508,6 +507,10 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state) | |||
508 | walk_state->method_node, NULL, | 507 | walk_state->method_node, NULL, |
509 | status); | 508 | status); |
510 | 509 | ||
510 | /* Ensure proper cleanup */ | ||
511 | |||
512 | walk_state->parse_flags |= ACPI_PARSE_EXECUTE; | ||
513 | |||
511 | /* Check for possible multi-thread reentrancy problem */ | 514 | /* Check for possible multi-thread reentrancy problem */ |
512 | 515 | ||
513 | if ((status == AE_ALREADY_EXISTS) && | 516 | if ((status == AE_ALREADY_EXISTS) && |
@@ -524,14 +527,6 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state) | |||
524 | } | 527 | } |
525 | } | 528 | } |
526 | 529 | ||
527 | if (walk_state->method_desc) { | ||
528 | /* Decrement the thread count on the method parse tree */ | ||
529 | |||
530 | if (walk_state->method_desc->method.thread_count) { | ||
531 | walk_state->method_desc->method.thread_count--; | ||
532 | } | ||
533 | } | ||
534 | |||
535 | /* We are done with this walk, move on to the parent if any */ | 530 | /* We are done with this walk, move on to the parent if any */ |
536 | 531 | ||
537 | walk_state = acpi_ds_pop_walk_state(thread); | 532 | walk_state = acpi_ds_pop_walk_state(thread); |
@@ -546,13 +541,13 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state) | |||
546 | */ | 541 | */ |
547 | if ((walk_state->parse_flags & ACPI_PARSE_MODE_MASK) == | 542 | if ((walk_state->parse_flags & ACPI_PARSE_MODE_MASK) == |
548 | ACPI_PARSE_EXECUTE) { | 543 | ACPI_PARSE_EXECUTE) { |
549 | terminate_status = | 544 | if (walk_state->method_desc) { |
550 | acpi_ds_terminate_control_method(walk_state); | 545 | /* Decrement the thread count on the method parse tree */ |
551 | if (ACPI_FAILURE(terminate_status)) { | ||
552 | ACPI_REPORT_ERROR(("Could not terminate control method properly\n")); | ||
553 | 546 | ||
554 | /* Ignore error and continue */ | 547 | walk_state->method_desc->method.thread_count--; |
555 | } | 548 | } |
549 | |||
550 | acpi_ds_terminate_control_method(walk_state); | ||
556 | } | 551 | } |
557 | 552 | ||
558 | /* Delete this walk state and all linked control states */ | 553 | /* Delete this walk state and all linked control states */ |
diff --git a/drivers/acpi/parser/psxface.c b/drivers/acpi/parser/psxface.c index 80c67f2d3dd2..4dcbd443160e 100644 --- a/drivers/acpi/parser/psxface.c +++ b/drivers/acpi/parser/psxface.c | |||
@@ -99,16 +99,6 @@ acpi_status acpi_ps_execute_method(struct acpi_parameter_info *info) | |||
99 | } | 99 | } |
100 | 100 | ||
101 | /* | 101 | /* |
102 | * Get a new owner_id for objects created by this method. Namespace | ||
103 | * objects (such as Operation Regions) can be created during the | ||
104 | * first pass parse. | ||
105 | */ | ||
106 | status = acpi_ut_allocate_owner_id(&info->obj_desc->method.owner_id); | ||
107 | if (ACPI_FAILURE(status)) { | ||
108 | return_ACPI_STATUS(status); | ||
109 | } | ||
110 | |||
111 | /* | ||
112 | * The caller "owns" the parameters, so give each one an extra | 102 | * The caller "owns" the parameters, so give each one an extra |
113 | * reference | 103 | * reference |
114 | */ | 104 | */ |
@@ -139,10 +129,6 @@ acpi_status acpi_ps_execute_method(struct acpi_parameter_info *info) | |||
139 | status = acpi_ps_execute_pass(info); | 129 | status = acpi_ps_execute_pass(info); |
140 | 130 | ||
141 | cleanup: | 131 | cleanup: |
142 | if (info->obj_desc->method.owner_id) { | ||
143 | acpi_ut_release_owner_id(&info->obj_desc->method.owner_id); | ||
144 | } | ||
145 | |||
146 | /* Take away the extra reference that we gave the parameters above */ | 132 | /* Take away the extra reference that we gave the parameters above */ |
147 | 133 | ||
148 | acpi_ps_update_parameter_list(info, REF_DECREMENT); | 134 | acpi_ps_update_parameter_list(info, REF_DECREMENT); |