Skip to content

Commit 4e6e650

Browse files
William Morrrowlenb
authored andcommitted
ACPI: Handle BIOS that resumes from S3 to suspend routine rather than resume vector
A BIOS has been found that resumes from S3 to the routine that invoked suspend, ignoring the resume vector. This appears to the OS as a failed S3 attempt. This same system suspend/resume's properly with Windows. It is possible to invoke the protected mode register restore routine (which would normally restore the sysenter registers) when the BIOS returns from S3. This has no effect on a correctly running system and repairs the damage from the deviant BIOS. Signed-off-by: William Morrow <william.morrow@amd.com> Signed-off-by: Jordan Crouse <jordan.crouse@amd.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Len Brown <len.brown@intel.com>
1 parent 9f73763 commit 4e6e650

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎arch/i386/kernel/acpi/wakeup.S‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,10 @@ ENTRY(do_suspend_lowlevel)
292292
pushl $3
293293
call acpi_enter_sleep_state
294294
addl $4, %esp
295-
ret
295+
296+
# In case of S3 failure, we'll emerge here. Jump
297+
# to ret_point to recover
298+
jmp ret_point
296299
.p2align 4,,7
297300
ret_point:
298301
call restore_registers

0 commit comments

Comments
 (0)