ACPICA: GPE Support: Update debug info for GPE tracing.
authorBob Moore <robert.moore@intel.com>
Fri, 17 Aug 2012 02:55:14 +0000 (10:55 +0800)
committerLen Brown <len.brown@intel.com>
Fri, 21 Sep 2012 04:26:16 +0000 (00:26 -0400)
Add additional debug info to assist with GPE debugging.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpica/evgpe.c

index afbd5cb..3db3c56 100644 (file)
@@ -379,6 +379,18 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list)
                         */
                        if (!(gpe_register_info->enable_for_run |
                              gpe_register_info->enable_for_wake)) {
+                               ACPI_DEBUG_PRINT((ACPI_DB_INTERRUPTS,
+                                                 "Ignore disabled registers for GPE%02X-GPE%02X: "
+                                                 "RunEnable=%02X, WakeEnable=%02X\n",
+                                                 gpe_register_info->
+                                                 base_gpe_number,
+                                                 gpe_register_info->
+                                                 base_gpe_number +
+                                                 (ACPI_GPE_REGISTER_WIDTH - 1),
+                                                 gpe_register_info->
+                                                 enable_for_run,
+                                                 gpe_register_info->
+                                                 enable_for_wake));
                                continue;
                        }
 
@@ -401,9 +413,14 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list)
                        }
 
                        ACPI_DEBUG_PRINT((ACPI_DB_INTERRUPTS,
-                                         "Read GPE Register at GPE%02X: Status=%02X, Enable=%02X\n",
+                                         "Read registers for GPE%02X-GPE%02X: Status=%02X, Enable=%02X, "
+                                         "RunEnable=%02X, WakeEnable=%02X\n",
                                          gpe_register_info->base_gpe_number,
-                                         status_reg, enable_reg));
+                                         gpe_register_info->base_gpe_number +
+                                         (ACPI_GPE_REGISTER_WIDTH - 1),
+                                         status_reg, enable_reg,
+                                         gpe_register_info->enable_for_run,
+                                         gpe_register_info->enable_for_wake));
 
                        /* Check if there is anything active at all in this register */