* [PATCH 5/5] ACPI: introduce module parameter acpi.aml_debug
@ 2010-06-11 5:48 Zhang Rui
2010-06-11 16:11 ` Len Brown
0 siblings, 1 reply; 3+ messages in thread
From: Zhang Rui @ 2010-06-11 5:48 UTC (permalink / raw)
To: Brown, Len
Cc: linux-acpi@vger.kernel.org, Zhang, Rui, Lin Ming, Moore, Robert
Introduce module parameter acpi.aml_debug.
With acpi.aml_debug set, we can get AML debug object
output (Store (AAA, Debug)), even with CONFIG_ACPI_DEBUG
cleared.
Together with the runtime custom method,
we can debug AML code problems without rebuilding the kernel.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
drivers/acpi/acpica/acglobal.h | 2 +-
drivers/acpi/sysfs.c | 4 ++++
include/acpi/acpixf.h | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
Index: linux-2.6/drivers/acpi/sysfs.c
===================================================================
--- linux-2.6.orig/drivers/acpi/sysfs.c
+++ linux-2.6/drivers/acpi/sysfs.c
@@ -219,6 +219,10 @@ static int param_get_acpica_version(char
module_param_call(acpica_version, NULL, param_get_acpica_version, NULL, 0444);
+/* /sys/module/acpi/parameters/aml_debug */
+
+module_param_named(aml_debug, acpi_gbl_enable_aml_debug_object, uint, 0644);
+
/* /sys/firmware/acpi/tables/ */
static LIST_HEAD(acpi_table_attr_list);
static struct kobject *tables_kobj;
Index: linux-2.6/drivers/acpi/acpica/acglobal.h
===================================================================
--- linux-2.6.orig/drivers/acpi/acpica/acglobal.h
+++ linux-2.6/drivers/acpi/acpica/acglobal.h
@@ -115,7 +115,7 @@ u8 ACPI_INIT_GLOBAL(acpi_gbl_use_default
/*
* Optionally enable output from the AML Debug Object.
*/
-u8 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
+u32 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
/*
* Optionally copy the entire DSDT to local memory (instead of simply
Index: linux-2.6/include/acpi/acpixf.h
===================================================================
--- linux-2.6.orig/include/acpi/acpixf.h
+++ linux-2.6/include/acpi/acpixf.h
@@ -67,7 +67,7 @@ extern u8 acpi_gbl_leave_wake_gpes_disab
extern u8 acpi_gbl_use_default_register_widths;
extern acpi_name acpi_gbl_trace_method_name;
extern u32 acpi_gbl_trace_flags;
-extern u8 acpi_gbl_enable_aml_debug_object;
+extern u32 acpi_gbl_enable_aml_debug_object;
extern u8 acpi_gbl_copy_dsdt_locally;
extern u32 acpi_current_gpe_count;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 5/5] ACPI: introduce module parameter acpi.aml_debug
2010-06-11 5:48 [PATCH 5/5] ACPI: introduce module parameter acpi.aml_debug Zhang Rui
@ 2010-06-11 16:11 ` Len Brown
2010-06-12 3:05 ` Zhang Rui
0 siblings, 1 reply; 3+ messages in thread
From: Len Brown @ 2010-06-11 16:11 UTC (permalink / raw)
To: Zhang Rui; +Cc: linux-acpi@vger.kernel.org, Lin Ming, Moore, Robert
On Fri, 11 Jun 2010, Zhang Rui wrote:
> Introduce module parameter acpi.aml_debug.
>
> With acpi.aml_debug set, we can get AML debug object
> output (Store (AAA, Debug)), even with CONFIG_ACPI_DEBUG
> cleared.
>
> Together with the runtime custom method,
> we can debug AML code problems without rebuilding the kernel.
>
> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> ---
> drivers/acpi/acpica/acglobal.h | 2 +-
> drivers/acpi/sysfs.c | 4 ++++
> include/acpi/acpixf.h | 2 +-
> 3 files changed, 6 insertions(+), 2 deletions(-)
Is there an update to Documentation/acpi/ ?
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 5/5] ACPI: introduce module parameter acpi.aml_debug
2010-06-11 16:11 ` Len Brown
@ 2010-06-12 3:05 ` Zhang Rui
0 siblings, 0 replies; 3+ messages in thread
From: Zhang Rui @ 2010-06-12 3:05 UTC (permalink / raw)
To: Len Brown; +Cc: linux-acpi@vger.kernel.org, Lin, Ming M, Moore, Robert
On Sat, 2010-06-12 at 00:11 +0800, Len Brown wrote:
> On Fri, 11 Jun 2010, Zhang Rui wrote:
>
> > Introduce module parameter acpi.aml_debug.
> >
> > With acpi.aml_debug set, we can get AML debug object
> > output (Store (AAA, Debug)), even with CONFIG_ACPI_DEBUG
> > cleared.
> >
> > Together with the runtime custom method,
> > we can debug AML code problems without rebuilding the kernel.
> >
> > Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> > ---
> > drivers/acpi/acpica/acglobal.h | 2 +-
> > drivers/acpi/sysfs.c | 4 ++++
> > include/acpi/acpixf.h | 2 +-
> > 3 files changed, 6 insertions(+), 2 deletions(-)
>
> Is there an update to Documentation/acpi/ ?
>
Oh, I'll update the documentation in patch V2.
thanks,
rui
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-12 3:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-11 5:48 [PATCH 5/5] ACPI: introduce module parameter acpi.aml_debug Zhang Rui
2010-06-11 16:11 ` Len Brown
2010-06-12 3:05 ` Zhang Rui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).