Skip to content

Commit d6b88ce

Browse files
rgongatamdrafaeljw
authored andcommitted
ACPI: processor idle: Allow playing dead in C3 state
When some cores are disabled on AMD platforms, the system will no longer be able to enter suspend-to-idle s0ix. Update to allow playing dead in C3 state so that the CPUs can enter the deepest state on AMD platforms. BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1708 Suggested-by: Mario Limonciello <[email protected]> Signed-off-by: Richard Gong <[email protected]> [ rjw: Fixed coding style ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent e4e737b commit d6b88ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/acpi/processor_idle.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,8 @@ static int acpi_processor_setup_cstates(struct acpi_processor *pr)
789789
state->enter = acpi_idle_enter;
790790

791791
state->flags = 0;
792-
if (cx->type == ACPI_STATE_C1 || cx->type == ACPI_STATE_C2) {
792+
if (cx->type == ACPI_STATE_C1 || cx->type == ACPI_STATE_C2 ||
793+
cx->type == ACPI_STATE_C3) {
793794
state->enter_dead = acpi_idle_play_dead;
794795
drv->safe_state_index = count;
795796
}

0 commit comments

Comments
 (0)