// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.01/******************************************************************************2*3* Module Name: dsmethod - Parser/Interpreter interface - control method parsing4*5* Copyright (C) 2000 - 2025, Intel Corp.6*7*****************************************************************************/89#include <acpi/acpi.h>10#include "accommon.h"11#include "acdispat.h"12#include "acinterp.h"13#include "acnamesp.h"14#include "acparser.h"15#include "amlcode.h"16#include "acdebug.h"1718#define _COMPONENT ACPI_DISPATCHER19ACPI_MODULE_NAME("dsmethod")2021/* Local prototypes */22static acpi_status23acpi_ds_detect_named_opcodes(struct acpi_walk_state *walk_state,24union acpi_parse_object **out_op);2526static acpi_status27acpi_ds_create_method_mutex(union acpi_operand_object *method_desc);2829/*******************************************************************************30*31* FUNCTION: acpi_ds_auto_serialize_method32*33* PARAMETERS: node - Namespace Node of the method34* obj_desc - Method object attached to node35*36* RETURN: Status37*38* DESCRIPTION: Parse a control method AML to scan for control methods that39* need serialization due to the creation of named objects.40*41* NOTE: It is a bit of overkill to mark all such methods serialized, since42* there is only a problem if the method actually blocks during execution.43* A blocking operation is, for example, a Sleep() operation, or any access44* to an operation region. However, it is probably not possible to easily45* detect whether a method will block or not, so we simply mark all suspicious46* methods as serialized.47*48* NOTE2: This code is essentially a generic routine for parsing a single49* control method.50*51******************************************************************************/5253acpi_status54acpi_ds_auto_serialize_method(struct acpi_namespace_node *node,55union acpi_operand_object *obj_desc)56{57acpi_status status;58union acpi_parse_object *op = NULL;59struct acpi_walk_state *walk_state;6061ACPI_FUNCTION_TRACE_PTR(ds_auto_serialize_method, node);6263ACPI_DEBUG_PRINT((ACPI_DB_PARSE,64"Method auto-serialization parse [%4.4s] %p\n",65acpi_ut_get_node_name(node), node));6667/* Create/Init a root op for the method parse tree */6869op = acpi_ps_alloc_op(AML_METHOD_OP, obj_desc->method.aml_start);70if (!op) {71return_ACPI_STATUS(AE_NO_MEMORY);72}7374acpi_ps_set_name(op, node->name.integer);75op->common.node = node;7677/* Create and initialize a new walk state */7879walk_state =80acpi_ds_create_walk_state(node->owner_id, NULL, NULL, NULL);81if (!walk_state) {82acpi_ps_free_op(op);83return_ACPI_STATUS(AE_NO_MEMORY);84}8586status = acpi_ds_init_aml_walk(walk_state, op, node,87obj_desc->method.aml_start,88obj_desc->method.aml_length, NULL, 0);89if (ACPI_FAILURE(status)) {90acpi_ds_delete_walk_state(walk_state);91acpi_ps_free_op(op);92return_ACPI_STATUS(status);93}9495walk_state->descending_callback = acpi_ds_detect_named_opcodes;9697/* Parse the method, scan for creation of named objects */9899status = acpi_ps_parse_aml(walk_state);100101acpi_ps_delete_parse_tree(op);102return_ACPI_STATUS(status);103}104105/*******************************************************************************106*107* FUNCTION: acpi_ds_detect_named_opcodes108*109* PARAMETERS: walk_state - Current state of the parse tree walk110* out_op - Unused, required for parser interface111*112* RETURN: Status113*114* DESCRIPTION: Descending callback used during the loading of ACPI tables.115* Currently used to detect methods that must be marked serialized116* in order to avoid problems with the creation of named objects.117*118******************************************************************************/119120static acpi_status121acpi_ds_detect_named_opcodes(struct acpi_walk_state *walk_state,122union acpi_parse_object **out_op)123{124125ACPI_FUNCTION_NAME(acpi_ds_detect_named_opcodes);126127/* We are only interested in opcodes that create a new name */128129if (!130(walk_state->op_info->131flags & (AML_NAMED | AML_CREATE | AML_FIELD))) {132return (AE_OK);133}134135/*136* At this point, we know we have a Named object opcode.137* Mark the method as serialized. Later code will create a mutex for138* this method to enforce serialization.139*140* Note, ACPI_METHOD_IGNORE_SYNC_LEVEL flag means that we will ignore the141* Sync Level mechanism for this method, even though it is now serialized.142* Otherwise, there can be conflicts with existing ASL code that actually143* uses sync levels.144*/145walk_state->method_desc->method.sync_level = 0;146walk_state->method_desc->method.info_flags |=147(ACPI_METHOD_SERIALIZED | ACPI_METHOD_IGNORE_SYNC_LEVEL);148149ACPI_DEBUG_PRINT((ACPI_DB_INFO,150"Method serialized [%4.4s] %p - [%s] (%4.4X)\n",151walk_state->method_node->name.ascii,152walk_state->method_node, walk_state->op_info->name,153walk_state->opcode));154155/* Abort the parse, no need to examine this method any further */156157return (AE_CTRL_TERMINATE);158}159160/*******************************************************************************161*162* FUNCTION: acpi_ds_method_error163*164* PARAMETERS: status - Execution status165* walk_state - Current state166*167* RETURN: Status168*169* DESCRIPTION: Called on method error. Invoke the global exception handler if170* present, dump the method data if the debugger is configured171*172* Note: Allows the exception handler to change the status code173*174******************************************************************************/175176acpi_status177acpi_ds_method_error(acpi_status status, struct acpi_walk_state *walk_state)178{179u32 aml_offset;180acpi_name name = 0;181182ACPI_FUNCTION_ENTRY();183184/* Ignore AE_OK and control exception codes */185186if (ACPI_SUCCESS(status) || (status & AE_CODE_CONTROL)) {187return (status);188}189190/* Invoke the global exception handler */191192if (acpi_gbl_exception_handler) {193194/* Exit the interpreter, allow handler to execute methods */195196acpi_ex_exit_interpreter();197198/*199* Handler can map the exception code to anything it wants, including200* AE_OK, in which case the executing method will not be aborted.201*/202aml_offset = (u32)ACPI_PTR_DIFF(walk_state->aml,203walk_state->parser_state.204aml_start);205206if (walk_state->method_node) {207name = walk_state->method_node->name.integer;208} else if (walk_state->deferred_node) {209name = walk_state->deferred_node->name.integer;210}211212status = acpi_gbl_exception_handler(status, name,213walk_state->opcode,214aml_offset, NULL);215acpi_ex_enter_interpreter();216}217218acpi_ds_clear_implicit_return(walk_state);219220if (ACPI_FAILURE(status)) {221acpi_ds_dump_method_stack(status, walk_state, walk_state->op);222223/* Display method locals/args if debugger is present */224225#ifdef ACPI_DEBUGGER226acpi_db_dump_method_info(status, walk_state);227#endif228}229230return (status);231}232233/*******************************************************************************234*235* FUNCTION: acpi_ds_create_method_mutex236*237* PARAMETERS: obj_desc - The method object238*239* RETURN: Status240*241* DESCRIPTION: Create a mutex object for a serialized control method242*243******************************************************************************/244245static acpi_status246acpi_ds_create_method_mutex(union acpi_operand_object *method_desc)247{248union acpi_operand_object *mutex_desc;249acpi_status status;250251ACPI_FUNCTION_TRACE(ds_create_method_mutex);252253/* Create the new mutex object */254255mutex_desc = acpi_ut_create_internal_object(ACPI_TYPE_MUTEX);256if (!mutex_desc) {257return_ACPI_STATUS(AE_NO_MEMORY);258}259260/* Create the actual OS Mutex */261262status = acpi_os_create_mutex(&mutex_desc->mutex.os_mutex);263if (ACPI_FAILURE(status)) {264acpi_ut_delete_object_desc(mutex_desc);265return_ACPI_STATUS(status);266}267268mutex_desc->mutex.sync_level = method_desc->method.sync_level;269method_desc->method.mutex = mutex_desc;270return_ACPI_STATUS(AE_OK);271}272273/*******************************************************************************274*275* FUNCTION: acpi_ds_begin_method_execution276*277* PARAMETERS: method_node - Node of the method278* obj_desc - The method object279* walk_state - current state, NULL if not yet executing280* a method.281*282* RETURN: Status283*284* DESCRIPTION: Prepare a method for execution. Parses the method if necessary,285* increments the thread count, and waits at the method semaphore286* for clearance to execute.287*288******************************************************************************/289290acpi_status291acpi_ds_begin_method_execution(struct acpi_namespace_node *method_node,292union acpi_operand_object *obj_desc,293struct acpi_walk_state *walk_state)294{295acpi_status status = AE_OK;296297ACPI_FUNCTION_TRACE_PTR(ds_begin_method_execution, method_node);298299if (!method_node) {300return_ACPI_STATUS(AE_NULL_ENTRY);301}302303acpi_ex_start_trace_method(method_node, obj_desc, walk_state);304305/* Prevent wraparound of thread count */306307if (obj_desc->method.thread_count == ACPI_UINT8_MAX) {308ACPI_ERROR((AE_INFO,309"Method reached maximum reentrancy limit (255)"));310return_ACPI_STATUS(AE_AML_METHOD_LIMIT);311}312313/*314* If this method is serialized, we need to acquire the method mutex.315*/316if (obj_desc->method.info_flags & ACPI_METHOD_SERIALIZED) {317/*318* Create a mutex for the method if it is defined to be Serialized319* and a mutex has not already been created. We defer the mutex creation320* until a method is actually executed, to minimize the object count321*/322if (!obj_desc->method.mutex) {323status = acpi_ds_create_method_mutex(obj_desc);324if (ACPI_FAILURE(status)) {325return_ACPI_STATUS(status);326}327}328329/*330* The current_sync_level (per-thread) must be less than or equal to331* the sync level of the method. This mechanism provides some332* deadlock prevention.333*334* If the method was auto-serialized, we just ignore the sync level335* mechanism, because auto-serialization of methods can interfere336* with ASL code that actually uses sync levels.337*338* Top-level method invocation has no walk state at this point339*/340if (walk_state &&341(!(obj_desc->method.342info_flags & ACPI_METHOD_IGNORE_SYNC_LEVEL))343&& (walk_state->thread->current_sync_level >344obj_desc->method.mutex->mutex.sync_level)) {345ACPI_ERROR((AE_INFO,346"Cannot acquire Mutex for method [%4.4s]"347", current SyncLevel is too large (%u)",348acpi_ut_get_node_name(method_node),349walk_state->thread->current_sync_level));350351return_ACPI_STATUS(AE_AML_MUTEX_ORDER);352}353354/*355* Obtain the method mutex if necessary. Do not acquire mutex for a356* recursive call.357*/358if (!walk_state ||359!obj_desc->method.mutex->mutex.thread_id ||360(walk_state->thread->thread_id !=361obj_desc->method.mutex->mutex.thread_id)) {362/*363* Acquire the method mutex. This releases the interpreter if we364* block (and reacquires it before it returns)365*/366status =367acpi_ex_system_wait_mutex(obj_desc->method.mutex->368mutex.os_mutex,369ACPI_WAIT_FOREVER);370if (ACPI_FAILURE(status)) {371return_ACPI_STATUS(status);372}373374/* Update the mutex and walk info and save the original sync_level */375376if (walk_state) {377obj_desc->method.mutex->mutex.378original_sync_level =379walk_state->thread->current_sync_level;380381obj_desc->method.mutex->mutex.thread_id =382walk_state->thread->thread_id;383384/*385* Update the current sync_level only if this is not an auto-386* serialized method. In the auto case, we have to ignore387* the sync level for the method mutex (created for the388* auto-serialization) because we have no idea of what the389* sync level should be. Therefore, just ignore it.390*/391if (!(obj_desc->method.info_flags &392ACPI_METHOD_IGNORE_SYNC_LEVEL)) {393walk_state->thread->current_sync_level =394obj_desc->method.sync_level;395}396} else {397obj_desc->method.mutex->mutex.398original_sync_level =399obj_desc->method.mutex->mutex.sync_level;400401obj_desc->method.mutex->mutex.thread_id =402acpi_os_get_thread_id();403}404}405406/* Always increase acquisition depth */407408obj_desc->method.mutex->mutex.acquisition_depth++;409}410411/*412* Allocate an Owner ID for this method, only if this is the first thread413* to begin concurrent execution. We only need one owner_id, even if the414* method is invoked recursively.415*/416if (!obj_desc->method.owner_id) {417status = acpi_ut_allocate_owner_id(&obj_desc->method.owner_id);418if (ACPI_FAILURE(status)) {419goto cleanup;420}421}422423/*424* Increment the method parse tree thread count since it has been425* reentered one more time (even if it is the same thread)426*/427obj_desc->method.thread_count++;428acpi_method_count++;429return_ACPI_STATUS(status);430431cleanup:432/* On error, must release the method mutex (if present) */433434if (obj_desc->method.mutex) {435acpi_os_release_mutex(obj_desc->method.mutex->mutex.os_mutex);436}437return_ACPI_STATUS(status);438}439440/*******************************************************************************441*442* FUNCTION: acpi_ds_call_control_method443*444* PARAMETERS: thread - Info for this thread445* this_walk_state - Current walk state446* op - Current Op to be walked447*448* RETURN: Status449*450* DESCRIPTION: Transfer execution to a called control method451*452******************************************************************************/453454acpi_status455acpi_ds_call_control_method(struct acpi_thread_state *thread,456struct acpi_walk_state *this_walk_state,457union acpi_parse_object *op)458{459acpi_status status;460struct acpi_namespace_node *method_node;461struct acpi_walk_state *next_walk_state = NULL;462union acpi_operand_object *obj_desc;463struct acpi_evaluate_info *info;464u32 i;465466ACPI_FUNCTION_TRACE_PTR(ds_call_control_method, this_walk_state);467468ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH,469"Calling method %p, currentstate=%p\n",470this_walk_state->prev_op, this_walk_state));471472/*473* Get the namespace entry for the control method we are about to call474*/475method_node = this_walk_state->method_call_node;476if (!method_node) {477return_ACPI_STATUS(AE_NULL_ENTRY);478}479480obj_desc = acpi_ns_get_attached_object(method_node);481if (!obj_desc) {482return_ACPI_STATUS(AE_NULL_OBJECT);483}484485if (this_walk_state->num_operands < obj_desc->method.param_count) {486ACPI_ERROR((AE_INFO, "Missing argument for method [%4.4s]",487acpi_ut_get_node_name(method_node)));488489return_ACPI_STATUS(AE_AML_UNINITIALIZED_ARG);490}491492/* Init for new method, possibly wait on method mutex */493494status =495acpi_ds_begin_method_execution(method_node, obj_desc,496this_walk_state);497if (ACPI_FAILURE(status)) {498return_ACPI_STATUS(status);499}500501/* Begin method parse/execution. Create a new walk state */502503next_walk_state =504acpi_ds_create_walk_state(obj_desc->method.owner_id, NULL, obj_desc,505thread);506if (!next_walk_state) {507status = AE_NO_MEMORY;508goto cleanup;509}510511/*512* The resolved arguments were put on the previous walk state's operand513* stack. Operands on the previous walk state stack always514* start at index 0. Also, null terminate the list of arguments515*/516this_walk_state->operands[this_walk_state->num_operands] = NULL;517518/*519* Allocate and initialize the evaluation information block520* TBD: this is somewhat inefficient, should change interface to521* ds_init_aml_walk. For now, keeps this struct off the CPU stack522*/523info = ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_evaluate_info));524if (!info) {525status = AE_NO_MEMORY;526goto pop_walk_state;527}528529info->parameters = &this_walk_state->operands[0];530531status = acpi_ds_init_aml_walk(next_walk_state, NULL, method_node,532obj_desc->method.aml_start,533obj_desc->method.aml_length, info,534ACPI_IMODE_EXECUTE);535536ACPI_FREE(info);537if (ACPI_FAILURE(status)) {538goto pop_walk_state;539}540541next_walk_state->method_nesting_depth =542this_walk_state->method_nesting_depth + 1;543544/*545* Delete the operands on the previous walkstate operand stack546* (they were copied to new objects)547*/548for (i = 0; i < obj_desc->method.param_count; i++) {549acpi_ut_remove_reference(this_walk_state->operands[i]);550this_walk_state->operands[i] = NULL;551}552553/* Clear the operand stack */554555this_walk_state->num_operands = 0;556557ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH,558"**** Begin nested execution of [%4.4s] **** WalkState=%p\n",559method_node->name.ascii, next_walk_state));560561this_walk_state->method_pathname =562acpi_ns_get_normalized_pathname(method_node, TRUE);563this_walk_state->method_is_nested = TRUE;564565/* Optional object evaluation log */566567ACPI_DEBUG_PRINT_RAW((ACPI_DB_EVALUATION,568"%-26s: %*s%s\n", " Nested method call",569next_walk_state->method_nesting_depth * 3, " ",570&this_walk_state->method_pathname[1]));571572/* Invoke an internal method if necessary */573574if (obj_desc->method.info_flags & ACPI_METHOD_INTERNAL_ONLY) {575status =576obj_desc->method.dispatch.implementation(next_walk_state);577if (status == AE_OK) {578status = AE_CTRL_TERMINATE;579}580}581582return_ACPI_STATUS(status);583584pop_walk_state:585586/* On error, pop the walk state to be deleted from thread */587588acpi_ds_pop_walk_state(thread);589590cleanup:591592/* On error, we must terminate the method properly */593594acpi_ds_terminate_control_method(obj_desc, next_walk_state);595acpi_ds_delete_walk_state(next_walk_state);596597return_ACPI_STATUS(status);598}599600/*******************************************************************************601*602* FUNCTION: acpi_ds_restart_control_method603*604* PARAMETERS: walk_state - State for preempted method (caller)605* return_desc - Return value from the called method606*607* RETURN: Status608*609* DESCRIPTION: Restart a method that was preempted by another (nested) method610* invocation. Handle the return value (if any) from the callee.611*612******************************************************************************/613614acpi_status615acpi_ds_restart_control_method(struct acpi_walk_state *walk_state,616union acpi_operand_object *return_desc)617{618acpi_status status;619int same_as_implicit_return;620621ACPI_FUNCTION_TRACE_PTR(ds_restart_control_method, walk_state);622623ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH,624"****Restart [%4.4s] Op %p ReturnValueFromCallee %p\n",625acpi_ut_get_node_name(walk_state->method_node),626walk_state->method_call_op, return_desc));627628ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH,629" ReturnFromThisMethodUsed?=%X ResStack %p Walk %p\n",630walk_state->return_used,631walk_state->results, walk_state));632633/* Did the called method return a value? */634635if (return_desc) {636637/* Is the implicit return object the same as the return desc? */638639same_as_implicit_return =640(walk_state->implicit_return_obj == return_desc);641642/* Are we actually going to use the return value? */643644if (walk_state->return_used) {645646/* Save the return value from the previous method */647648status = acpi_ds_result_push(return_desc, walk_state);649if (ACPI_FAILURE(status)) {650acpi_ut_remove_reference(return_desc);651return_ACPI_STATUS(status);652}653654/*655* Save as THIS method's return value in case it is returned656* immediately to yet another method657*/658walk_state->return_desc = return_desc;659}660661/*662* The following code is the optional support for the so-called663* "implicit return". Some AML code assumes that the last value of the664* method is "implicitly" returned to the caller, in the absence of an665* explicit return value.666*667* Just save the last result of the method as the return value.668*669* NOTE: this is optional because the ASL language does not actually670* support this behavior.671*/672else if (!acpi_ds_do_implicit_return673(return_desc, walk_state, FALSE)674|| same_as_implicit_return) {675/*676* Delete the return value if it will not be used by the677* calling method or remove one reference if the explicit return678* is the same as the implicit return value.679*/680acpi_ut_remove_reference(return_desc);681}682}683684return_ACPI_STATUS(AE_OK);685}686687/*******************************************************************************688*689* FUNCTION: acpi_ds_terminate_control_method690*691* PARAMETERS: method_desc - Method object692* walk_state - State associated with the method693*694* RETURN: None695*696* DESCRIPTION: Terminate a control method. Delete everything that the method697* created, delete all locals and arguments, and delete the parse698* tree if requested.699*700* MUTEX: Interpreter is locked701*702******************************************************************************/703704void705acpi_ds_terminate_control_method(union acpi_operand_object *method_desc,706struct acpi_walk_state *walk_state)707{708709ACPI_FUNCTION_TRACE_PTR(ds_terminate_control_method, walk_state);710711/* method_desc is required, walk_state is optional */712713if (!method_desc) {714return_VOID;715}716717if (walk_state) {718719/* Delete all arguments and locals */720721acpi_ds_method_data_delete_all(walk_state);722723/*724* Delete any namespace objects created anywhere within the725* namespace by the execution of this method. Unless:726* 1) This method is a module-level executable code method, in which727* case we want make the objects permanent.728* 2) There are other threads executing the method, in which case we729* will wait until the last thread has completed.730*/731if (!(method_desc->method.info_flags & ACPI_METHOD_MODULE_LEVEL)732&& (method_desc->method.thread_count == 1)) {733734/* Delete any direct children of (created by) this method */735736(void)acpi_ex_exit_interpreter();737acpi_ns_delete_namespace_subtree(walk_state->738method_node);739(void)acpi_ex_enter_interpreter();740741/*742* Delete any objects that were created by this method743* elsewhere in the namespace (if any were created).744* Use of the ACPI_METHOD_MODIFIED_NAMESPACE optimizes the745* deletion such that we don't have to perform an entire746* namespace walk for every control method execution.747*/748if (method_desc->method.749info_flags & ACPI_METHOD_MODIFIED_NAMESPACE) {750(void)acpi_ex_exit_interpreter();751acpi_ns_delete_namespace_by_owner(method_desc->752method.753owner_id);754(void)acpi_ex_enter_interpreter();755method_desc->method.info_flags &=756~ACPI_METHOD_MODIFIED_NAMESPACE;757}758}759760/*761* If method is serialized, release the mutex and restore the762* current sync level for this thread763*/764if (method_desc->method.mutex) {765766/* Acquisition Depth handles recursive calls */767768method_desc->method.mutex->mutex.acquisition_depth--;769if (!method_desc->method.mutex->mutex.acquisition_depth) {770walk_state->thread->current_sync_level =771method_desc->method.mutex->mutex.772original_sync_level;773774acpi_os_release_mutex(method_desc->method.775mutex->mutex.os_mutex);776method_desc->method.mutex->mutex.thread_id = 0;777}778}779}780781/* Decrement the thread count on the method */782783if (method_desc->method.thread_count) {784method_desc->method.thread_count--;785} else {786ACPI_ERROR((AE_INFO, "Invalid zero thread count in method"));787}788789/* Are there any other threads currently executing this method? */790791if (method_desc->method.thread_count) {792/*793* Additional threads. Do not release the owner_id in this case,794* we immediately reuse it for the next thread executing this method795*/796ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH,797"*** Completed execution of one thread, %u threads remaining\n",798method_desc->method.thread_count));799} else {800/* This is the only executing thread for this method */801802/*803* Support to dynamically change a method from not_serialized to804* Serialized if it appears that the method is incorrectly written and805* does not support multiple thread execution. The best example of this806* is if such a method creates namespace objects and blocks. A second807* thread will fail with an AE_ALREADY_EXISTS exception.808*809* This code is here because we must wait until the last thread exits810* before marking the method as serialized.811*/812if (method_desc->method.813info_flags & ACPI_METHOD_SERIALIZED_PENDING) {814if (walk_state) {815ACPI_INFO(("Marking method %4.4s as Serialized "816"because of AE_ALREADY_EXISTS error",817walk_state->method_node->name.818ascii));819}820821/*822* Method tried to create an object twice and was marked as823* "pending serialized". The probable cause is that the method824* cannot handle reentrancy.825*826* The method was created as not_serialized, but it tried to create827* a named object and then blocked, causing the second thread828* entrance to begin and then fail. Workaround this problem by829* marking the method permanently as Serialized when the last830* thread exits here.831*/832method_desc->method.info_flags &=833~ACPI_METHOD_SERIALIZED_PENDING;834835method_desc->method.info_flags |=836(ACPI_METHOD_SERIALIZED |837ACPI_METHOD_IGNORE_SYNC_LEVEL);838method_desc->method.sync_level = 0;839}840841/* No more threads, we can free the owner_id */842843if (!844(method_desc->method.845info_flags & ACPI_METHOD_MODULE_LEVEL)) {846acpi_ut_release_owner_id(&method_desc->method.owner_id);847}848}849850acpi_ex_stop_trace_method((struct acpi_namespace_node *)method_desc->851method.node, method_desc, walk_state);852853return_VOID;854}855856857