evrgnini.c 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. /******************************************************************************
  2. *
  3. * Module Name: evrgnini- ACPI address_space (op_region) init
  4. *
  5. *****************************************************************************/
  6. /*
  7. * Copyright (C) 2000 - 2008, Intel Corp.
  8. * All rights reserved.
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. * 1. Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions, and the following disclaimer,
  15. * without modification.
  16. * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  17. * substantially similar to the "NO WARRANTY" disclaimer below
  18. * ("Disclaimer") and any redistribution must be conditioned upon
  19. * including a substantially similar Disclaimer requirement for further
  20. * binary redistribution.
  21. * 3. Neither the names of the above-listed copyright holders nor the names
  22. * of any contributors may be used to endorse or promote products derived
  23. * from this software without specific prior written permission.
  24. *
  25. * Alternatively, this software may be distributed under the terms of the
  26. * GNU General Public License ("GPL") version 2 as published by the Free
  27. * Software Foundation.
  28. *
  29. * NO WARRANTY
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  31. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  32. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
  33. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  34. * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  35. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  36. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  38. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  39. * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  40. * POSSIBILITY OF SUCH DAMAGES.
  41. */
  42. #include <acpi/acpi.h>
  43. #include "accommon.h"
  44. #include "acevents.h"
  45. #include "acnamesp.h"
  46. #define _COMPONENT ACPI_EVENTS
  47. ACPI_MODULE_NAME("evrgnini")
  48. /* Local prototypes */
  49. static u8 acpi_ev_match_pci_root_bridge(char *id);
  50. static u8 acpi_ev_is_pci_root_bridge(struct acpi_namespace_node *node);
  51. /*******************************************************************************
  52. *
  53. * FUNCTION: acpi_ev_system_memory_region_setup
  54. *
  55. * PARAMETERS: Handle - Region we are interested in
  56. * Function - Start or stop
  57. * handler_context - Address space handler context
  58. * region_context - Region specific context
  59. *
  60. * RETURN: Status
  61. *
  62. * DESCRIPTION: Setup a system_memory operation region
  63. *
  64. ******************************************************************************/
  65. acpi_status
  66. acpi_ev_system_memory_region_setup(acpi_handle handle,
  67. u32 function,
  68. void *handler_context, void **region_context)
  69. {
  70. union acpi_operand_object *region_desc =
  71. (union acpi_operand_object *)handle;
  72. struct acpi_mem_space_context *local_region_context;
  73. ACPI_FUNCTION_TRACE(ev_system_memory_region_setup);
  74. if (function == ACPI_REGION_DEACTIVATE) {
  75. if (*region_context) {
  76. local_region_context =
  77. (struct acpi_mem_space_context *)*region_context;
  78. /* Delete a cached mapping if present */
  79. if (local_region_context->mapped_length) {
  80. acpi_os_unmap_memory(local_region_context->
  81. mapped_logical_address,
  82. local_region_context->
  83. mapped_length);
  84. }
  85. ACPI_FREE(local_region_context);
  86. *region_context = NULL;
  87. }
  88. return_ACPI_STATUS(AE_OK);
  89. }
  90. /* Create a new context */
  91. local_region_context =
  92. ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_mem_space_context));
  93. if (!(local_region_context)) {
  94. return_ACPI_STATUS(AE_NO_MEMORY);
  95. }
  96. /* Save the region length and address for use in the handler */
  97. local_region_context->length = region_desc->region.length;
  98. local_region_context->address = region_desc->region.address;
  99. *region_context = local_region_context;
  100. return_ACPI_STATUS(AE_OK);
  101. }
  102. /*******************************************************************************
  103. *
  104. * FUNCTION: acpi_ev_io_space_region_setup
  105. *
  106. * PARAMETERS: Handle - Region we are interested in
  107. * Function - Start or stop
  108. * handler_context - Address space handler context
  109. * region_context - Region specific context
  110. *
  111. * RETURN: Status
  112. *
  113. * DESCRIPTION: Setup a IO operation region
  114. *
  115. ******************************************************************************/
  116. acpi_status
  117. acpi_ev_io_space_region_setup(acpi_handle handle,
  118. u32 function,
  119. void *handler_context, void **region_context)
  120. {
  121. ACPI_FUNCTION_TRACE(ev_io_space_region_setup);
  122. if (function == ACPI_REGION_DEACTIVATE) {
  123. *region_context = NULL;
  124. } else {
  125. *region_context = handler_context;
  126. }
  127. return_ACPI_STATUS(AE_OK);
  128. }
  129. /*******************************************************************************
  130. *
  131. * FUNCTION: acpi_ev_pci_config_region_setup
  132. *
  133. * PARAMETERS: Handle - Region we are interested in
  134. * Function - Start or stop
  135. * handler_context - Address space handler context
  136. * region_context - Region specific context
  137. *
  138. * RETURN: Status
  139. *
  140. * DESCRIPTION: Setup a PCI_Config operation region
  141. *
  142. * MUTEX: Assumes namespace is not locked
  143. *
  144. ******************************************************************************/
  145. acpi_status
  146. acpi_ev_pci_config_region_setup(acpi_handle handle,
  147. u32 function,
  148. void *handler_context, void **region_context)
  149. {
  150. acpi_status status = AE_OK;
  151. acpi_integer pci_value;
  152. struct acpi_pci_id *pci_id = *region_context;
  153. union acpi_operand_object *handler_obj;
  154. struct acpi_namespace_node *parent_node;
  155. struct acpi_namespace_node *pci_root_node;
  156. struct acpi_namespace_node *pci_device_node;
  157. union acpi_operand_object *region_obj =
  158. (union acpi_operand_object *)handle;
  159. ACPI_FUNCTION_TRACE(ev_pci_config_region_setup);
  160. handler_obj = region_obj->region.handler;
  161. if (!handler_obj) {
  162. /*
  163. * No installed handler. This shouldn't happen because the dispatch
  164. * routine checks before we get here, but we check again just in case.
  165. */
  166. ACPI_DEBUG_PRINT((ACPI_DB_OPREGION,
  167. "Attempting to init a region %p, with no handler\n",
  168. region_obj));
  169. return_ACPI_STATUS(AE_NOT_EXIST);
  170. }
  171. *region_context = NULL;
  172. if (function == ACPI_REGION_DEACTIVATE) {
  173. if (pci_id) {
  174. ACPI_FREE(pci_id);
  175. }
  176. return_ACPI_STATUS(status);
  177. }
  178. parent_node = acpi_ns_get_parent_node(region_obj->region.node);
  179. /*
  180. * Get the _SEG and _BBN values from the device upon which the handler
  181. * is installed.
  182. *
  183. * We need to get the _SEG and _BBN objects relative to the PCI BUS device.
  184. * This is the device the handler has been registered to handle.
  185. */
  186. /*
  187. * If the address_space.Node is still pointing to the root, we need
  188. * to scan upward for a PCI Root bridge and re-associate the op_region
  189. * handlers with that device.
  190. */
  191. if (handler_obj->address_space.node == acpi_gbl_root_node) {
  192. /* Start search from the parent object */
  193. pci_root_node = parent_node;
  194. while (pci_root_node != acpi_gbl_root_node) {
  195. /* Get the _HID/_CID in order to detect a root_bridge */
  196. if (acpi_ev_is_pci_root_bridge(pci_root_node)) {
  197. /* Install a handler for this PCI root bridge */
  198. status =
  199. acpi_install_address_space_handler((acpi_handle) pci_root_node, ACPI_ADR_SPACE_PCI_CONFIG, ACPI_DEFAULT_HANDLER, NULL, NULL);
  200. if (ACPI_FAILURE(status)) {
  201. if (status == AE_SAME_HANDLER) {
  202. /*
  203. * It is OK if the handler is already installed on the
  204. * root bridge. Still need to return a context object
  205. * for the new PCI_Config operation region, however.
  206. */
  207. status = AE_OK;
  208. } else {
  209. ACPI_EXCEPTION((AE_INFO, status,
  210. "Could not install PciConfig handler "
  211. "for Root Bridge %4.4s",
  212. acpi_ut_get_node_name
  213. (pci_root_node)));
  214. }
  215. }
  216. break;
  217. }
  218. pci_root_node = acpi_ns_get_parent_node(pci_root_node);
  219. }
  220. /* PCI root bridge not found, use namespace root node */
  221. } else {
  222. pci_root_node = handler_obj->address_space.node;
  223. }
  224. /*
  225. * If this region is now initialized, we are done.
  226. * (install_address_space_handler could have initialized it)
  227. */
  228. if (region_obj->region.flags & AOPOBJ_SETUP_COMPLETE) {
  229. return_ACPI_STATUS(AE_OK);
  230. }
  231. /* Region is still not initialized. Create a new context */
  232. pci_id = ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_pci_id));
  233. if (!pci_id) {
  234. return_ACPI_STATUS(AE_NO_MEMORY);
  235. }
  236. /*
  237. * For PCI_Config space access, we need the segment, bus, device and
  238. * function numbers. Acquire them here.
  239. *
  240. * Find the parent device object. (This allows the operation region to be
  241. * within a subscope under the device, such as a control method.)
  242. */
  243. pci_device_node = region_obj->region.node;
  244. while (pci_device_node && (pci_device_node->type != ACPI_TYPE_DEVICE)) {
  245. pci_device_node = acpi_ns_get_parent_node(pci_device_node);
  246. }
  247. if (!pci_device_node) {
  248. ACPI_FREE(pci_id);
  249. return_ACPI_STATUS(AE_AML_OPERAND_TYPE);
  250. }
  251. /*
  252. * Get the PCI device and function numbers from the _ADR object contained
  253. * in the parent's scope.
  254. */
  255. status = acpi_ut_evaluate_numeric_object(METHOD_NAME__ADR,
  256. pci_device_node, &pci_value);
  257. /*
  258. * The default is zero, and since the allocation above zeroed the data,
  259. * just do nothing on failure.
  260. */
  261. if (ACPI_SUCCESS(status)) {
  262. pci_id->device = ACPI_HIWORD(ACPI_LODWORD(pci_value));
  263. pci_id->function = ACPI_LOWORD(ACPI_LODWORD(pci_value));
  264. }
  265. /* The PCI segment number comes from the _SEG method */
  266. status = acpi_ut_evaluate_numeric_object(METHOD_NAME__SEG,
  267. pci_root_node, &pci_value);
  268. if (ACPI_SUCCESS(status)) {
  269. pci_id->segment = ACPI_LOWORD(pci_value);
  270. }
  271. /* The PCI bus number comes from the _BBN method */
  272. status = acpi_ut_evaluate_numeric_object(METHOD_NAME__BBN,
  273. pci_root_node, &pci_value);
  274. if (ACPI_SUCCESS(status)) {
  275. pci_id->bus = ACPI_LOWORD(pci_value);
  276. }
  277. /* Complete this device's pci_id */
  278. acpi_os_derive_pci_id(pci_root_node, region_obj->region.node, &pci_id);
  279. *region_context = pci_id;
  280. return_ACPI_STATUS(AE_OK);
  281. }
  282. /*******************************************************************************
  283. *
  284. * FUNCTION: acpi_ev_match_pci_root_bridge
  285. *
  286. * PARAMETERS: Id - The HID/CID in string format
  287. *
  288. * RETURN: TRUE if the Id is a match for a PCI/PCI-Express Root Bridge
  289. *
  290. * DESCRIPTION: Determine if the input ID is a PCI Root Bridge ID.
  291. *
  292. ******************************************************************************/
  293. static u8 acpi_ev_match_pci_root_bridge(char *id)
  294. {
  295. /*
  296. * Check if this is a PCI root.
  297. * ACPI 3.0+: check for a PCI Express root also.
  298. */
  299. if (!(ACPI_STRNCMP(id,
  300. PCI_ROOT_HID_STRING,
  301. sizeof(PCI_ROOT_HID_STRING))) ||
  302. !(ACPI_STRNCMP(id,
  303. PCI_EXPRESS_ROOT_HID_STRING,
  304. sizeof(PCI_EXPRESS_ROOT_HID_STRING)))) {
  305. return (TRUE);
  306. }
  307. return (FALSE);
  308. }
  309. /*******************************************************************************
  310. *
  311. * FUNCTION: acpi_ev_is_pci_root_bridge
  312. *
  313. * PARAMETERS: Node - Device node being examined
  314. *
  315. * RETURN: TRUE if device is a PCI/PCI-Express Root Bridge
  316. *
  317. * DESCRIPTION: Determine if the input device represents a PCI Root Bridge by
  318. * examining the _HID and _CID for the device.
  319. *
  320. ******************************************************************************/
  321. static u8 acpi_ev_is_pci_root_bridge(struct acpi_namespace_node *node)
  322. {
  323. acpi_status status;
  324. struct acpica_device_id hid;
  325. struct acpi_compatible_id_list *cid;
  326. u32 i;
  327. /* Get the _HID and check for a PCI Root Bridge */
  328. status = acpi_ut_execute_HID(node, &hid);
  329. if (ACPI_FAILURE(status)) {
  330. return (FALSE);
  331. }
  332. if (acpi_ev_match_pci_root_bridge(hid.value)) {
  333. return (TRUE);
  334. }
  335. /* The _HID did not match. Get the _CID and check for a PCI Root Bridge */
  336. status = acpi_ut_execute_CID(node, &cid);
  337. if (ACPI_FAILURE(status)) {
  338. return (FALSE);
  339. }
  340. /* Check all _CIDs in the returned list */
  341. for (i = 0; i < cid->count; i++) {
  342. if (acpi_ev_match_pci_root_bridge(cid->id[i].value)) {
  343. ACPI_FREE(cid);
  344. return (TRUE);
  345. }
  346. }
  347. ACPI_FREE(cid);
  348. return (FALSE);
  349. }
  350. /*******************************************************************************
  351. *
  352. * FUNCTION: acpi_ev_pci_bar_region_setup
  353. *
  354. * PARAMETERS: Handle - Region we are interested in
  355. * Function - Start or stop
  356. * handler_context - Address space handler context
  357. * region_context - Region specific context
  358. *
  359. * RETURN: Status
  360. *
  361. * DESCRIPTION: Setup a pci_bAR operation region
  362. *
  363. * MUTEX: Assumes namespace is not locked
  364. *
  365. ******************************************************************************/
  366. acpi_status
  367. acpi_ev_pci_bar_region_setup(acpi_handle handle,
  368. u32 function,
  369. void *handler_context, void **region_context)
  370. {
  371. ACPI_FUNCTION_TRACE(ev_pci_bar_region_setup);
  372. return_ACPI_STATUS(AE_OK);
  373. }
  374. /*******************************************************************************
  375. *
  376. * FUNCTION: acpi_ev_cmos_region_setup
  377. *
  378. * PARAMETERS: Handle - Region we are interested in
  379. * Function - Start or stop
  380. * handler_context - Address space handler context
  381. * region_context - Region specific context
  382. *
  383. * RETURN: Status
  384. *
  385. * DESCRIPTION: Setup a CMOS operation region
  386. *
  387. * MUTEX: Assumes namespace is not locked
  388. *
  389. ******************************************************************************/
  390. acpi_status
  391. acpi_ev_cmos_region_setup(acpi_handle handle,
  392. u32 function,
  393. void *handler_context, void **region_context)
  394. {
  395. ACPI_FUNCTION_TRACE(ev_cmos_region_setup);
  396. return_ACPI_STATUS(AE_OK);
  397. }
  398. /*******************************************************************************
  399. *
  400. * FUNCTION: acpi_ev_default_region_setup
  401. *
  402. * PARAMETERS: Handle - Region we are interested in
  403. * Function - Start or stop
  404. * handler_context - Address space handler context
  405. * region_context - Region specific context
  406. *
  407. * RETURN: Status
  408. *
  409. * DESCRIPTION: Default region initialization
  410. *
  411. ******************************************************************************/
  412. acpi_status
  413. acpi_ev_default_region_setup(acpi_handle handle,
  414. u32 function,
  415. void *handler_context, void **region_context)
  416. {
  417. ACPI_FUNCTION_TRACE(ev_default_region_setup);
  418. if (function == ACPI_REGION_DEACTIVATE) {
  419. *region_context = NULL;
  420. } else {
  421. *region_context = handler_context;
  422. }
  423. return_ACPI_STATUS(AE_OK);
  424. }
  425. /*******************************************************************************
  426. *
  427. * FUNCTION: acpi_ev_initialize_region
  428. *
  429. * PARAMETERS: region_obj - Region we are initializing
  430. * acpi_ns_locked - Is namespace locked?
  431. *
  432. * RETURN: Status
  433. *
  434. * DESCRIPTION: Initializes the region, finds any _REG methods and saves them
  435. * for execution at a later time
  436. *
  437. * Get the appropriate address space handler for a newly
  438. * created region.
  439. *
  440. * This also performs address space specific initialization. For
  441. * example, PCI regions must have an _ADR object that contains
  442. * a PCI address in the scope of the definition. This address is
  443. * required to perform an access to PCI config space.
  444. *
  445. * MUTEX: Interpreter should be unlocked, because we may run the _REG
  446. * method for this region.
  447. *
  448. ******************************************************************************/
  449. acpi_status
  450. acpi_ev_initialize_region(union acpi_operand_object *region_obj,
  451. u8 acpi_ns_locked)
  452. {
  453. union acpi_operand_object *handler_obj;
  454. union acpi_operand_object *obj_desc;
  455. acpi_adr_space_type space_id;
  456. struct acpi_namespace_node *node;
  457. acpi_status status;
  458. struct acpi_namespace_node *method_node;
  459. acpi_name *reg_name_ptr = (acpi_name *) METHOD_NAME__REG;
  460. union acpi_operand_object *region_obj2;
  461. ACPI_FUNCTION_TRACE_U32(ev_initialize_region, acpi_ns_locked);
  462. if (!region_obj) {
  463. return_ACPI_STATUS(AE_BAD_PARAMETER);
  464. }
  465. if (region_obj->common.flags & AOPOBJ_OBJECT_INITIALIZED) {
  466. return_ACPI_STATUS(AE_OK);
  467. }
  468. region_obj2 = acpi_ns_get_secondary_object(region_obj);
  469. if (!region_obj2) {
  470. return_ACPI_STATUS(AE_NOT_EXIST);
  471. }
  472. node = acpi_ns_get_parent_node(region_obj->region.node);
  473. space_id = region_obj->region.space_id;
  474. /* Setup defaults */
  475. region_obj->region.handler = NULL;
  476. region_obj2->extra.method_REG = NULL;
  477. region_obj->common.flags &= ~(AOPOBJ_SETUP_COMPLETE);
  478. region_obj->common.flags |= AOPOBJ_OBJECT_INITIALIZED;
  479. /* Find any "_REG" method associated with this region definition */
  480. status =
  481. acpi_ns_search_one_scope(*reg_name_ptr, node, ACPI_TYPE_METHOD,
  482. &method_node);
  483. if (ACPI_SUCCESS(status)) {
  484. /*
  485. * The _REG method is optional and there can be only one per region
  486. * definition. This will be executed when the handler is attached
  487. * or removed
  488. */
  489. region_obj2->extra.method_REG = method_node;
  490. }
  491. /*
  492. * The following loop depends upon the root Node having no parent
  493. * ie: acpi_gbl_root_node->parent_entry being set to NULL
  494. */
  495. while (node) {
  496. /* Check to see if a handler exists */
  497. handler_obj = NULL;
  498. obj_desc = acpi_ns_get_attached_object(node);
  499. if (obj_desc) {
  500. /* Can only be a handler if the object exists */
  501. switch (node->type) {
  502. case ACPI_TYPE_DEVICE:
  503. handler_obj = obj_desc->device.handler;
  504. break;
  505. case ACPI_TYPE_PROCESSOR:
  506. handler_obj = obj_desc->processor.handler;
  507. break;
  508. case ACPI_TYPE_THERMAL:
  509. handler_obj = obj_desc->thermal_zone.handler;
  510. break;
  511. default:
  512. /* Ignore other objects */
  513. break;
  514. }
  515. while (handler_obj) {
  516. /* Is this handler of the correct type? */
  517. if (handler_obj->address_space.space_id ==
  518. space_id) {
  519. /* Found correct handler */
  520. ACPI_DEBUG_PRINT((ACPI_DB_OPREGION,
  521. "Found handler %p for region %p in obj %p\n",
  522. handler_obj,
  523. region_obj,
  524. obj_desc));
  525. status =
  526. acpi_ev_attach_region(handler_obj,
  527. region_obj,
  528. acpi_ns_locked);
  529. /*
  530. * Tell all users that this region is usable by
  531. * running the _REG method
  532. */
  533. if (acpi_ns_locked) {
  534. status =
  535. acpi_ut_release_mutex
  536. (ACPI_MTX_NAMESPACE);
  537. if (ACPI_FAILURE(status)) {
  538. return_ACPI_STATUS
  539. (status);
  540. }
  541. }
  542. status =
  543. acpi_ev_execute_reg_method
  544. (region_obj, 1);
  545. if (acpi_ns_locked) {
  546. status =
  547. acpi_ut_acquire_mutex
  548. (ACPI_MTX_NAMESPACE);
  549. if (ACPI_FAILURE(status)) {
  550. return_ACPI_STATUS
  551. (status);
  552. }
  553. }
  554. return_ACPI_STATUS(AE_OK);
  555. }
  556. /* Try next handler in the list */
  557. handler_obj = handler_obj->address_space.next;
  558. }
  559. }
  560. /* This node does not have the handler we need; Pop up one level */
  561. node = acpi_ns_get_parent_node(node);
  562. }
  563. /* If we get here, there is no handler for this region */
  564. ACPI_DEBUG_PRINT((ACPI_DB_OPREGION,
  565. "No handler for RegionType %s(%X) (RegionObj %p)\n",
  566. acpi_ut_get_region_name(space_id), space_id,
  567. region_obj));
  568. return_ACPI_STATUS(AE_NOT_EXIST);
  569. }