ACPI: x86: s2idle: Add more debugging for AMD constraints parsing
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 18 Aug 2023 19:40:05 +0000 (14:40 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 21 Aug 2023 18:28:20 +0000 (20:28 +0200)
While parsing the constraints show all the entries for the table
to aid with debugging other problems later.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/x86/s2idle.c

index 6083595..8756333 100644 (file)
@@ -156,6 +156,13 @@ static void lpi_device_get_constraints_amd(void)
                                        }
                                }
 
+                               acpi_handle_debug(lps0_device_handle,
+                                                 "Name:%s, Enabled: %d, States: %d, MinDstate: %d\n",
+                                                 dev_info.name,
+                                                 dev_info.enabled,
+                                                 dev_info.function_states,
+                                                 dev_info.min_dstate);
+
                                if (!dev_info.enabled || !dev_info.name ||
                                    !dev_info.min_dstate)
                                        continue;
@@ -164,9 +171,6 @@ static void lpi_device_get_constraints_amd(void)
                                if (ACPI_FAILURE(status))
                                        continue;
 
-                               acpi_handle_debug(lps0_device_handle,
-                                                 "Name:%s\n", dev_info.name);
-
                                list->min_dstate = dev_info.min_dstate;
 
                                lpi_constraints_table_size++;