Skip to content

Commit fa54d36

Browse files
committed
Merge tag 'acpi-5.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI fixes from Rafael Wysocki: "These fix two mistakes in new code. Specifics: - Prevent confusing messages from being printed if the PRMT table is not present or there are no PRM modules (Aubrey Li). - Fix the handling of suspend-to-idle entry and exit in the case when the Microsoft UUID is used with the Low-Power S0 Idle _DSM interface (Mario Limonciello)" * tag 'acpi-5.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: PM: s2idle: Invert Microsoft UUID entry and exit ACPI: PRM: Deal with table not present or no module found
2 parents cae6876 + 0f09f4c commit fa54d36

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

drivers/acpi/prmt.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,12 @@ void __init init_prmt(void)
292292
int mc = acpi_table_parse_entries(ACPI_SIG_PRMT, sizeof(struct acpi_table_prmt) +
293293
sizeof (struct acpi_table_prmt_header),
294294
0, acpi_parse_prmt, 0);
295+
/*
296+
* Return immediately if PRMT table is not present or no PRM module found.
297+
*/
298+
if (mc <= 0)
299+
return;
300+
295301
pr_info("PRM: found %u modules\n", mc);
296302

297303
status = acpi_install_address_space_handler(ACPI_ROOT_OBJECT,

drivers/acpi/x86/s2idle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ int acpi_s2idle_prepare_late(void)
452452
if (lps0_dsm_func_mask_microsoft > 0) {
453453
acpi_sleep_run_lps0_dsm(ACPI_LPS0_SCREEN_OFF,
454454
lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);
455-
acpi_sleep_run_lps0_dsm(ACPI_LPS0_MS_EXIT,
455+
acpi_sleep_run_lps0_dsm(ACPI_LPS0_MS_ENTRY,
456456
lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);
457457
acpi_sleep_run_lps0_dsm(ACPI_LPS0_ENTRY,
458458
lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);
@@ -479,7 +479,7 @@ void acpi_s2idle_restore_early(void)
479479
if (lps0_dsm_func_mask_microsoft > 0) {
480480
acpi_sleep_run_lps0_dsm(ACPI_LPS0_EXIT,
481481
lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);
482-
acpi_sleep_run_lps0_dsm(ACPI_LPS0_MS_ENTRY,
482+
acpi_sleep_run_lps0_dsm(ACPI_LPS0_MS_EXIT,
483483
lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);
484484
acpi_sleep_run_lps0_dsm(ACPI_LPS0_SCREEN_ON,
485485
lps0_dsm_func_mask_microsoft, lps0_dsm_guid_microsoft);

0 commit comments

Comments
 (0)