git: f19206c660fc - main - acpi_spmc: Make Intel device-specific state optional
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Nov 2026 14:19:24 UTC
The branch main has been updated by olivier:
URL: https://cgit.FreeBSD.org/src/commit/?id=f19206c660fc600b88c02dddda401eec0697965c
commit f19206c660fc600b88c02dddda401eec0697965c
Author: Olivier Cochard <olivier@FreeBSD.org>
AuthorDate: 2026-11-24 12:00:59 +0000
Commit: Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2026-11-24 14:10:44 +0000
acpi_spmc: Make Intel device-specific state optional
The Intel Low Power S0 Idle _DSM specification marks the minimum
device-specific state of a constraint package as optional, and its own
example returns {0xFF, 0}. Requiring three elements rejected such
constraints, with one boot message each.
Reviewed by: olce
Approved by: olce
Fixes: 508efe35e577 ("acpi_spmc: Check Intel constraint packages")
Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/134
---
sys/dev/acpica/acpi_spmc.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
index 32456852052c..9a716be3c006 100644
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -691,7 +691,7 @@ acpi_spmc_parse_constraints_intel(struct acpi_spmc_softc *sc, ACPI_OBJECT *objec
"constraint %zu's constraint package.\n", i);
goto skip;
}
- if (constraint_package->Package.Count != 3) {
+ if (constraint_package->Package.Count < 2) {
device_printf(sc->dev, "Intel: Wrong package length "
"for constraint %zu's constraint package.\n", i);
goto skip;
@@ -703,8 +703,10 @@ acpi_spmc_parse_constraints_intel(struct acpi_spmc_softc *sc, ACPI_OBJECT *objec
constraint_package->Package.Elements[0].Integer.Value;
constraint->min_d_state =
constraint_package->Package.Elements[1].Integer.Value;
+ /* Optional: Intel Low Power S0 Idle _DSM spec, Table 9. */
constraint->min_dev_specific_state =
- constraint_package->Package.Elements[2].Integer.Value;
+ constraint_package->Package.Count > 2 ?
+ constraint_package->Package.Elements[2].Integer.Value : 0;
j++;
continue;