freebsd-nq/sys/dev/acpica
Hans Petter Selasky c6e6b4fe3b Fix for endless recursion in the ACPI GPE handler during boot.
When handling a GPE ACPI interrupt object the EcSpaceHandler()
function can be called which checks the EC_EVENT_SCI bit and then
recurse on the EcGpeQueryHandler() function. If there are multiple GPE
events pending the EC_EVENT_SCI bit will be set at the next call to
EcSpaceHandler() causing it to recurse again via the
EcGpeQueryHandler() function. This leads to a slow never ending
recursion during boot which prevents proper system startup, because
the EC_EVENT_SCI bit never gets cleared in this scenario.

The behaviour is reproducible with the ALASKA AMI in combination with
a newer Skylake based mainboard in the following way:

Enter BIOS and adjust the clock one hour forward. Save and exit the
BIOS. System fails to boot due to the above mentioned bug in
EcGpeQueryHandler() which was observed recursing multiple times.

This patch adds a simple recursion guard to the EcGpeQueryHandler()
function and also also adds logic to detect if new GPE events occurred
during the execution of EcGpeQueryHandler() and then loop on this
function instead of recursing.

Reviewed by:		jhb
MFC after:		2 weeks
2016-12-02 08:21:08 +00:00
..
Osd Merge ACPICA 20160930. 2016-10-04 20:27:15 +00:00
acpi_acad.c
acpi_battery.c
acpi_button.c
acpi_cmbat.c
acpi_cpu.c Add an EARLY_AP_STARTUP option to start APs earlier during boot. 2016-05-14 18:22:52 +00:00
acpi_dock.c
acpi_ec.c Fix for endless recursion in the ACPI GPE handler during boot. 2016-12-02 08:21:08 +00:00
acpi_hpet.c Implement userspace gettimeofday(2) with HPET timecounter. 2016-08-17 09:52:09 +00:00
acpi_hpet.h Implement userspace gettimeofday(2) with HPET timecounter. 2016-08-17 09:52:09 +00:00
acpi_if.m
acpi_isab.c
acpi_lid.c [acpi] graphics drivers want access to acpi lid handle 2016-06-05 02:02:51 +00:00
acpi_package.c Remove a bogus bzero() call. 2016-02-18 23:32:11 +00:00
acpi_pci_link.c
acpi_pci.c Add a new bus method to fetch device-specific CPU sets. 2016-05-09 20:50:21 +00:00
acpi_pcib_acpi.c Add a new bus method to fetch device-specific CPU sets. 2016-05-09 20:50:21 +00:00
acpi_pcib_pci.c Implement a proper detach method for the PCI-PCI bridge driver. 2016-05-20 00:03:22 +00:00
acpi_pcib.c Add a new bus method to fetch device-specific CPU sets. 2016-05-09 20:50:21 +00:00
acpi_pcibvar.h Add a new bus method to fetch device-specific CPU sets. 2016-05-09 20:50:21 +00:00
acpi_pcivar.h Associate device_t objects with ACPI handles via PCI_CHILD_ADDED(). 2016-04-07 17:15:16 +00:00
acpi_perf.c Remove misc NULL checks after M_WAITOK allocations. 2016-05-10 10:26:07 +00:00
acpi_powerres.c
acpi_quirk.c
acpi_quirks
acpi_resource.c Convert rman to use rman_res_t instead of u_long 2016-01-27 02:23:54 +00:00
acpi_smbat.c
acpi_smbus.h
acpi_thermal.c Fix a minor leak in ACPI thermal 2016-06-07 19:08:13 +00:00
acpi_throttle.c Do not probe Intel PIIX4 south bridge quirks on amd64. These quirky south 2015-05-21 19:31:10 +00:00
acpi_timer.c Use uintmax_t (typedef'd to rman_res_t type) for rman ranges. 2016-03-18 01:28:41 +00:00
acpi_video.c Silence PVS-Studio warning (V595). 2016-02-23 22:55:44 +00:00
acpi.c Remove a tunable and always reset system clock while resuming with ACPI. 2016-07-13 19:16:32 +00:00
acpiio.h sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
acpivar.h Add a new bus method to fetch device-specific CPU sets. 2016-05-09 20:50:21 +00:00