This change is made separately from the previous commit as it is a
significant change in behavior that affects all laptops. Copying the
message from the EC commit:
> Fan noise is one of the top complaints reported. The existing
> interpolation and smoothing logic has not sufficiently addressed the
> issues with fans changing speeds too quickly in response to rapid
> changes in thermals (particularly from PECI).
>
> This behavior can be observed by with very basic tasks, such as:
>
> - Powering on a system and logging into GNOME
> - Starting a GUI application such as Firefox
>
> Replace them with a fixed step update per event interval. Fans now have
> a maximum amount they change change over time (3.9%/sec) as they move
> towards a target duty.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Decouple the fan logic from the dGPU logic. Firmware now supports a
second fan on systems without a dGPU, such as darp10.
Behavioral changes:
- ectool: Fans are now indexed from 1 instead of 0
- Linux: darp10 now reports details about the second fan
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Remove rust-src as it is not required. Use a minimal profile with
clippy and rustfmt installed, instead of the default profile, as
rust-docs is not needed.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
The EC will already be set to unlocked at this point, so the prompt
must be run even when in the "Unlock" state. This is fine, as the
prompt is for physical presence detection.
Only lemp13-b has a release affected by this change.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Clear PS/2 status to prevent data for writes being detected on reads,
which was causing drivers to stop working.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Upgrade FSP from D.0.97.10 to D.0.A8.20.
- Meteor Lake RVP Binaries and FSP
- Kit: 646966
- ID: 790907
This is the version Google validated for coreboot integration.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Update toolchain to match the version used in Redox.
firmware-setup is still stuck on nightly-2023-01-21.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
As somewhat of a hack, allow flashing only the EC by deleting the
`firmware.rom` file before running `flash.sh`.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
`flash.sh` was changed from internally flashing to using the UEFI
application (firmware-update). The option `--without-ec` was removed as
part of this.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Caching ramtop does not update the checksum, causing CMOS options to not
work. Fixes CSME not being disabled on first boot.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
- coreboot: Disable AER on TBT port to avoid UnsupReq error
- ec: Select the correct smart charger to fix charging issue
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Commit 7d6a15e63c95 ("Convert toolchain file to TOML syntax") switched
from the bare toolchain file to the TOML-based one for better management
of the toolchain and components used.
Commit cf7fc2c540d5 ("scripts: Update rustup or inform user of env
vars") added an explicit `rustup self update` because there were still
cases, a year later, of people not having a rustup new enough to support
the TOML-based toolchain file.
Now 2 years after that, it should be safe to drop the explicit self
update. The TOML format has widespread adoption and rustup now self
updates by default. This should allow distro-provided rustup, which
disables the self update feature, to work if it is already installed in
place of the one downloaded from https://rustup.rs.
Signed-off-by: Tim Crawford <tcrawford@system76.com>