Commit Graph

8138 Commits

Author SHA1 Message Date
Richard Hughes
f4637db935 fpc: Remove some dead code
Spotted by Coverity.
2022-11-03 18:16:34 +00:00
Richard Hughes
1e7d741601 Check system integrity when installing UEFI updates
Recently we had an update that changed the system-defined Platform Key, and
we've certainly had updates in the past that changed the Boot#### variables.

Store some core ACPI and UEFI system integrity state from before and after the
update which can be used to mark (waivable) test failures on the LVFS.
2022-11-03 15:51:10 +00:00
Richard Hughes
e79f0f23cb trivial: Do not show a critical warning without a request ID
If using old metadata (or when the device does not hard-require an update
message) just use something generic that cannot be replaced client-side.
2022-11-03 15:33:46 +00:00
Richard Hughes
c72ab882fe Save the new release metadata when using fu_history_modify_device() 2022-11-03 13:49:51 +00:00
Richard Hughes
b76c07f247 Correctly set the remote-id when using new-style xz-metadata
The new xz metadata does not include the non-standard checksum target tags, and
instead uses the standardized artifact checksum.

Support both metadata formats when setting the remote ID used for reports.
2022-11-03 13:44:02 +00:00
Richard Hughes
e2371a5690 igsc: Add a plugin to update some Intel discrete graphics cards 2022-11-03 13:43:54 +00:00
Richard Hughes
09eb3fc7f6 Fix a regression when using fwuptool install-blob with FMAP firmware
Only set _NO_SEARCH when specified, and do not piggy-back on the --force
command line option.

Fixes https://github.com/fwupd/fwupd/issues/5227
2022-11-02 15:01:23 +00:00
Richard Hughes
da6928fe76 Do not use globs when building docs
If we use an explicit file lists then the docs are regenerated when the source
files change.
2022-11-02 13:54:23 +00:00
Richard Hughes
8f904cac17 Add documentation for three existing HSI attributes
Fixes https://github.com/fwupd/fwupd/issues/5233
2022-11-02 13:54:23 +00:00
Richard Hughes
1fafa92218 Ignored root partitions when getting the list of ESPs
Fixes the other half of https://github.com/fwupd/fwupd/issues/5211
2022-11-02 12:27:21 +00:00
Richard Hughes
3e1ce58560 Do not follow symlinks when uing fu_path_get_files()
Fixes half of https://github.com/fwupd/fwupd/issues/5211
2022-11-02 12:27:21 +00:00
Richard Hughes
064da70916 trivial: Fix docs warning for fu_udev_device_find_usb_device() 2022-11-01 16:23:17 +00:00
Richard Hughes
2b64a41dd6 trivial: Don't use _NO_AUTO_INSTANCE_IDS for MEI devices
This doesn't do what we thought it does.
2022-11-01 16:21:39 +00:00
Richard Hughes
20761d2bf6 Record more host DMI data when submitting a report
We want the specific BiosVersion when adding entries to the uefi-dbx.quirk --
as often the dbx update will work only with newer BIOS versions.
2022-11-01 16:19:52 +00:00
Richard Hughes
9dc4be826d analogix: Add a device test with test firmware 2022-11-01 16:19:42 +00:00
Richard Hughes
63aa8a5eea analogix: Devices need to be removed and re-inserted after update has completed
The device needs to switch to the new firmware bank, and no automated way
currently exists to reboot the chip.
2022-11-01 16:19:42 +00:00
Richard Hughes
6117f88b31 Do not hardcode mei0 for mei_me children 2022-11-01 16:19:27 +00:00
Richard Hughes
7222cafbb1 trivial: Ensure all private MEI instance data is incorporated 2022-11-01 16:19:27 +00:00
Richard Hughes
1f97275a33 Add fu_mei_device_get_fw_status() for future usage
All MEI devices support these attributes, and this API addition will allow us
to support new Intel GPUs and also modernize other plugins.
2022-11-01 16:19:27 +00:00
Richard Hughes
ae99b57b2a trivial: Fix over-constification in fu_udev_device_get_siblings_with_subsystem() 2022-11-01 16:19:27 +00:00
Richard Hughes
ee03652200 trivial: Allow specifying NULL for fu_udev_device_get_parent_with_subsystem() 2022-11-01 16:19:27 +00:00
Richard Hughes
3add9e8cb7 flashrom: Only use the IFD when the system is Intel-based 2022-10-31 13:47:30 +00:00
Josh Chen
7dcb9e36d2 elantp: Updating the quirks of the ABS touchpad of Chromebook
Modify the matching method from I2C\MODALIAS_ to I2C\NAME_
2022-10-31 08:57:49 +00:00
Richard Hughes
93599e316c elantp: Derive from FuI2cDevice to allow a I2C\NAME_ quirk match 2022-10-31 08:57:03 +00:00
Mario Limonciello
60c01af01c trivial: add missing log domain for efi signature list
Noticed this missing in https://github.com/fwupd/fwupd/issues/5211
2022-10-28 13:18:48 -05:00
Richard Hughes
22928ac52a analogix: Be more accurate when reporting percentage progress 2022-10-27 15:30:01 +01:00
Richard Hughes
912a578411 trivial: Be less verbose when parsing IHEX files 2022-10-27 15:29:45 +01:00
Richard Hughes
7a481183ee trivial: interpolate correctly when the old value is exactly zero 2022-10-27 15:29:32 +01:00
Richard Hughes
6547696efb trivial: Only ignore progress steps when they are all nonzero 2022-10-27 15:29:32 +01:00
Richard Hughes
b50b67107f Add fu_progress_to_string() to make debugging easier 2022-10-27 15:29:32 +01:00
Richard Hughes
93466bd7c4 trivial: Add two more compiler flags to check for C99 compatibility 2022-10-27 15:21:18 +01:00
Richard Hughes
aeb7dfe6ba trivial: Fix a -Wunused-variable compile warning 2022-10-27 15:21:18 +01:00
Richard Hughes
577a512ce1 trivial: Fix the dell self tests with the new GUsb installed 2022-10-27 14:49:55 +01:00
Benson Leung
41c434ec20 ccgx: Add Anker Thunderbolt 4 Mini Hub
This hub is based on Godzilla Creek.
VID:PID is 291A:8398
2022-10-26 23:28:08 +01:00
Benson Leung
035f1b45c0 ccgx: Add QSI's Godzilla Creek Reference Hub
Quanta Storage Inc. QSI Thunderbolt4 Godzilla Hub
It's VID:PID is 2BEF:9065
2022-10-26 23:28:08 +01:00
Richard Hughes
ac48c865a0 Add a helper to get a GUsbDevice from a FuUdevDevice 2022-10-26 23:27:50 +01:00
Mario Limonciello
507b38dea9 trivial: fix a host security event message
the structure is old->new, so from tained to not tainted should be:
"Kernel is no longer tainted" not "Kernel is tainted"

Fixes: #5199
2022-10-26 09:41:33 -05:00
Sean Rhodes
01fe8bdcb2
Add new GUIDs for Star Labs laptops (#5201)
* plugins/{flashrom,superio]: Add GUIDs for StarBook Mk VI - Intel

Signed-off-by: Sean Rhodes <sean@starlabs.systems>

* plugins/{flashrom,superio]: Add GUIDs for StarBook Mk VI - AMD

Signed-off-by: Sean Rhodes <sean@starlabs.systems>

* plugins/{flashrom,superio]: Add GUIDs for Byte Mk I - AMD

Signed-off-by: Sean Rhodes <sean@starlabs.systems>

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
2022-10-26 13:48:38 +01:00
Victor Cheng
d421d3db22 usi-dock: set correct chip type before update. 2022-10-25 20:52:06 +01:00
Richard Hughes
2c321ac29b Emit a critical warning if a plugin tries to use HWIDs in ->init()
The HWIDs are only available for ->setup() and ->coldplug().
2022-10-25 10:46:29 -05:00
Richard Hughes
ee8c63b56a trivial: Use the GError when loading hwinfo
No behaviour change as this always returns TRUE even if failing to load SMBIOS.
2022-10-25 10:46:29 -05:00
Richard Hughes
98622b690b trivial: Rename an internal function to reflect reality 2022-10-25 10:46:29 -05:00
Richard Hughes
0bf5afaa98 dell: Fix the GError setting when querying for a TPM 2022-10-25 10:46:29 -05:00
Richard Hughes
33347866de Revert "trivial: load hwinfo early so plugins can use the info timely"
This reverts commit 960b6141a6 as
fu_context_load_hwinfo() needs to load the HWID quirks, and we need to load the
plugins before the quirks otherwise we'll get warnings about quirk keys not
being registered.
2022-10-25 10:46:29 -05:00
Richard Hughes
e8eaca0051 Save the ONLY_QUIRK instance IDs to fix incorporation of i2c
The baseclass is calling fu_device_build_instance_id_quirk() and when we
incorporate the device we were only copying the 'proper' instance IDs and not
the ones used for quirk matching -- which we need to match the devices that use
keys containing MODALIAS for the Plugin key to be set.
2022-10-25 15:39:30 +01:00
Richard Hughes
7c4398615e trivial: Watch the plugin config even if there's no ->startup() 2022-10-25 06:54:08 -05:00
Richard Hughes
5987a9691a Ensure the configure file is correct for built-in plugins
The fu_plugin_open() function is only called for modular plugins.
2022-10-25 06:54:08 -05:00
Richard Hughes
820e42143d Make the HSI specification machine readable
This allows us to convert it to other forms, e.g. OPAL.
2022-10-24 16:24:25 +01:00
Crag Wang
960b6141a6 trivial: load hwinfo early so plugins can use the info timely 2022-10-24 23:21:39 +08:00
Richard Hughes
5a2ef166ee Support loading COSWID when only one role has been set
CBOR supports removing the array for only one base element, which the python
uSWID tools now support; allow parsing this in fwupd.
2022-10-24 16:12:00 +01:00