===================================================================
@@ -9,6 +9,27 @@
#define _COMPONENT ACPI_SYSTEM_COMPONENT
ACPI_MODULE_NAME("debugfs");
+static int param_set_aml_debug(const char *val, struct kernel_param *kp)
+{
+ if (!strncmp(val, "1\n", 2))
+ acpi_gbl_enable_aml_debug_object = 1;
+ else if (!strncmp(val, "0\n", 2))
+ acpi_gbl_enable_aml_debug_object = 0;
+ else
+ return -EINVAL;
+
+ return 0;
+}
+
+static int param_get_aml_debug(char *buffer, struct kernel_param *kp)
+{
+ if (acpi_gbl_enable_aml_debug_object)
+ return sprintf(buffer, "1");
+ else
+ return sprintf(buffer, "0");
+}
+
+module_param_call(aml_debug, param_set_aml_debug, param_get_aml_debug, NULL, 0644);
/* --------------------------------------------------------------------------
DebugFS Interface
-------------------------------------------------------------------------- */
===================================================================
@@ -19,6 +19,8 @@ Note: Only ACPI METHOD can be overridden
"Device", "OperationRegion", are not recognized.
Note: The same ACPI control method can be overridden for many times,
and it's always the latest one that used by Linux/kernel.
+Note: To get the ACPI debug object output (Store (AAAA, Debug)),
+ please run "echo 1 > /sys/module/acpi/parameters/aml_debug".
1. override an existing method
a) get the ACPI table via ACPI sysfs I/F. e.g. to get the DSDT,