mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Add kernel option ACPI_NO_RESET_VIDEO as workaround for problems
(e.g. LCD white-out after resume) on some machine cased by re-initialize video BIOS code in acpi_wakecode.
This commit is contained in:
parent
7921179035
commit
92781c3567
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121641
@ -599,6 +599,7 @@ WITNESS_SKIPSPIN opt_witness.h
|
||||
ACPI_DEBUG opt_acpi.h
|
||||
ACPI_MAX_THREADS opt_acpi.h
|
||||
ACPI_NO_SEMAPHORES opt_acpi.h
|
||||
ACPI_NO_RESET_VIDEO opt_acpi.h
|
||||
ACPICA_PEDANTIC opt_acpi.h
|
||||
|
||||
# options for DEVFS, see sys/fs/devfs/devfs.h
|
||||
|
@ -11,6 +11,10 @@ CLEANFILES= acpi_wakecode.h acpi_wakecode.bin acpi_wakecode.o
|
||||
.endif
|
||||
CFLAGS+= -I.
|
||||
|
||||
.ifdef ACPI_NO_RESET_VIDEO
|
||||
CFLAGS+= -DACPI_NO_RESET_VIDEO
|
||||
.endif
|
||||
|
||||
all: acpi_wakecode.h
|
||||
|
||||
acpi_wakecode.o: acpi_wakecode.S
|
||||
|
@ -43,6 +43,7 @@ wakeup_16:
|
||||
movw %ax,%ds
|
||||
movw %ax,%ss
|
||||
|
||||
#ifndef ACPI_NO_RESET_VIDEO
|
||||
/*
|
||||
* Re-initialize video BIOS. Restore DS and SS from CS in
|
||||
* case the BIOS modified them.
|
||||
@ -51,6 +52,7 @@ wakeup_16:
|
||||
movw %cs, %ax
|
||||
movw %ax, %ds
|
||||
movw %ax, %ss
|
||||
#endif
|
||||
|
||||
/* Load GDT for real mode */
|
||||
lgdt physical_gdt
|
||||
|
@ -425,6 +425,7 @@ device acpi
|
||||
options ACPI_DEBUG
|
||||
options ACPI_MAX_THREADS=1
|
||||
#!options ACPI_NO_SEMAPHORES
|
||||
#!options ACPI_NO_RESET_VIDEO
|
||||
#!options ACPICA_PEDANTIC
|
||||
|
||||
# DRM options:
|
||||
|
Loading…
Reference in New Issue
Block a user