MFC r277318:
When disabling C3+ CPU states due to the CPU_QUIRK_NO_C3 quirk, don't accidentally enable non-existent states. This bug was triggered if ACPI advertises the presence of a C2 state which we fail to parse via acpi_PkgGas due to our lack of support for FFixedHW resources, and causes an immediate panic when an attempt is made to enter the (NULL) state. One affected platform is the EC2 c4.8xlarge VM instance type; there may be others.
This commit is contained in:
parent
c8660cb9db
commit
65e2f94603
@ -872,7 +872,7 @@ acpi_cpu_startup(void *arg)
|
||||
for (i = 0; i < cpu_ndevices; i++) {
|
||||
sc = device_get_softc(cpu_devices[i]);
|
||||
if (cpu_quirks & CPU_QUIRK_NO_C3) {
|
||||
sc->cpu_cx_count = sc->cpu_non_c3 + 1;
|
||||
sc->cpu_cx_count = min(sc->cpu_cx_count, sc->cpu_non_c3 + 1);
|
||||
}
|
||||
AcpiInstallNotifyHandler(sc->cpu_handle, ACPI_DEVICE_NOTIFY,
|
||||
acpi_cpu_notify, sc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user