mb/google/guado: Fix ACPI fan control FNP4 power resource
The FNP4 power resource (minimum fan level) had both _ON and _OFF methods setting the same state (\FLVL = 4), violating ACPI power resource requirements where _OFF must transition to a state where _STA eventually returns 0 (OFF). This violation causes Windows to reject the thermal zone entirely due to its stricter ACPI compliance checking, resulting in non-functional fan control. Linux tolerates this bug, which is why it went unnoticed. Since FAN4 represents the minimum cooling state with no lower state to transition to, the correct implementation is to make _OFF a no-op. This maintains proper ACPI state machine semantics: after _ON, _STA returns 1; after _OFF, the system remains at minimum cooling (which is already the lowest valid state). This enables proper fan control operation on Windows while maintaining Linux compatibility. TEST=build/boot Win10/Linux on google/jecht, verify fan functional under Windows 10, continues to work correctly under Linux. Change-Id: Iac60a18dd1e4b632d85384ddbbcfcddaf0b8d2cc Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89840 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
This commit is contained in:
parent
8a518b2134
commit
b9b95c917a
4 changed files with 12 additions and 20 deletions
|
|
@ -272,11 +272,9 @@ Scope (\_TZ)
|
|||
}
|
||||
}
|
||||
Method (_OFF) {
|
||||
If (_STA ()) {
|
||||
\FLVL = 4
|
||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||
Notify (\_TZ.THRM, 0x81)
|
||||
}
|
||||
// FAN4 is the minimum cooling state (idle/lowest fan speed)
|
||||
// There is no lower state to transition to, so _OFF is a no-op
|
||||
// to maintain proper ACPI power resource state machine semantics
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -272,11 +272,9 @@ Scope (\_TZ)
|
|||
}
|
||||
}
|
||||
Method (_OFF) {
|
||||
If (_STA ()) {
|
||||
\FLVL = 4
|
||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||
Notify (\_TZ.THRM, 0x81)
|
||||
}
|
||||
// FAN4 is the minimum cooling state (idle/lowest fan speed)
|
||||
// There is no lower state to transition to, so _OFF is a no-op
|
||||
// to maintain proper ACPI power resource state machine semantics
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -272,11 +272,9 @@ Scope (\_TZ)
|
|||
}
|
||||
}
|
||||
Method (_OFF) {
|
||||
If (_STA ()) {
|
||||
\FLVL = 4
|
||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||
Notify (\_TZ.THRM, 0x81)
|
||||
}
|
||||
// FAN4 is the minimum cooling state (idle/lowest fan speed)
|
||||
// There is no lower state to transition to, so _OFF is a no-op
|
||||
// to maintain proper ACPI power resource state machine semantics
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -380,11 +380,9 @@ Scope (\_TZ)
|
|||
}
|
||||
}
|
||||
Method (_OFF) {
|
||||
If (_STA ()) {
|
||||
\FLVL = 4
|
||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = F4PW
|
||||
Notify (\_TZ.THRM, 0x81)
|
||||
}
|
||||
// FAN4 is the minimum cooling state (idle/lowest fan speed)
|
||||
// There is no lower state to transition to, so _OFF is a no-op
|
||||
// to maintain proper ACPI power resource state machine semantics
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue