Skip to content

Commit a879058

Browse files
superm1rafaeljw
authored andcommitted
ACPI: x86: s2idle: Add more debugging for AMD constraints parsing
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>
1 parent 9cc8cd0 commit a879058

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

drivers/acpi/x86/s2idle.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ static void lpi_device_get_constraints_amd(void)
156156
}
157157
}
158158

159+
acpi_handle_debug(lps0_device_handle,
160+
"Name:%s, Enabled: %d, States: %d, MinDstate: %d\n",
161+
dev_info.name,
162+
dev_info.enabled,
163+
dev_info.function_states,
164+
dev_info.min_dstate);
165+
159166
if (!dev_info.enabled || !dev_info.name ||
160167
!dev_info.min_dstate)
161168
continue;
@@ -164,9 +171,6 @@ static void lpi_device_get_constraints_amd(void)
164171
if (ACPI_FAILURE(status))
165172
continue;
166173

167-
acpi_handle_debug(lps0_device_handle,
168-
"Name:%s\n", dev_info.name);
169-
170174
list->min_dstate = dev_info.min_dstate;
171175

172176
lpi_constraints_table_size++;

0 commit comments

Comments
 (0)