[PATCH v12 6/9] ACPI: x86: s2idle: Add more debugging for AMD constraints parsing

From: Mario Limonciello
Date: Wed Aug 16 2023 - 18:11:27 EST


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@xxxxxxx>
---
v9->v10:
* split from other patches
---
drivers/acpi/x86/s2idle.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/acpi/x86/s2idle.c b/drivers/acpi/x86/s2idle.c
index 290514c21bb90..b8b3151215f0a 100644
--- a/drivers/acpi/x86/s2idle.c
+++ b/drivers/acpi/x86/s2idle.c
@@ -166,7 +166,11 @@ static void lpi_device_get_constraints_amd(void)
continue;

acpi_handle_debug(lps0_device_handle,
- "Name:%s\n", dev_info.name);
+ "Name:%s, Enabled: %d, States: %d, MinDstate: %d\n",
+ dev_info.name,
+ dev_info.enabled,
+ dev_info.function_states,
+ dev_info.min_dstate);

list->min_dstate = dev_info.min_dstate;

--
2.34.1