Commit Graph

8004 Commits

Author SHA1 Message Date
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
Mario Limonciello
7ea89eea62 trivial: drop libsmbios from synaptics-mst README 2022-10-24 09:46:24 -05:00
Richard Hughes
9adac67691 dell: Use fu_memread_xxx() to make buffer parsing less scary 2022-10-24 13:58:00 +01:00
Richard Hughes
d1c6acd752 trivial: Return an error from fu_context_get_smbios_data() 2022-10-24 13:58:00 +01:00
Richard Hughes
749eb49852 dell: Fix plugin startup
The fu_context_get_smbios_data() call will not work when creating the plugin
GType, so just create the SMI object when it is needed in ->startup().

Fixes https://github.com/fwupd/firmware-dell/issues/144
2022-10-24 13:58:00 +01:00
Richard Hughes
8eca325ae2
elantp: Add ELAN hapticpad support
Co-authored-by: jingle.wu <jingle.wu@emc.com.tw>
2022-10-22 17:20:46 +01:00
Matthias Braun
0f42a5a152 Update README.md 2022-10-21 18:54:20 +01:00
Richard Hughes
c837491344 trivial: Store .xz files with the correct filename 2022-10-21 14:53:17 +01:00
Richard Hughes
fab1066314 trivial: Add a few more kernel command line arguements we don't care about 2022-10-21 12:17:46 +01:00
Richard Hughes
c533162099 Use xz-compressed metadata to reduce bandwidth used by ~25% 2022-10-20 09:08:24 -05:00
Richard Hughes
06800069d4 Split out FuUefiPkDevice as a device for future use
This does not serve much purpose now, but would be useful if we need to know
more about the installed PK from other plugins. If nothing else it makes the
`--verbose` output more helpful.
2022-10-20 13:52:22 +01:00
Mario Limonciello
6eebe95273 trivial: snap: remove some unnecessary files 2022-10-19 11:53:39 -05:00
Mario Limonciello
b7ec831cdb trivial: snap: move EFI binaries to expected location
We compile with prefix "/", but Ubuntu (where we get the binaries from)
compiles with prefix "/usr".

Correct the location of these binaries in the snap.
2022-10-19 11:53:39 -05:00
Richard Hughes
c190c0877d Allow parsing metadata more than 1MB in size
The LVFS crept over this limit yesterday. I've put some emergency commits in
place that take it back down to 800KB, and I'll focus next week on getting it
much lower than that.

The real problem is that we thought that g_input_stream_read_bytes() was using
`count` as the chunk size, not the total size. Raise the total size to 32MB and
chunk in 32kB blocks to reduce the RSS peak when loading metadata.

Fixes https://github.com/fwupd/fwupd/issues/5173
2022-10-19 15:09:57 +01:00
Richard Hughes
6f129a97de Fix a compile failure when compiling without efiboot
Fixes https://github.com/fwupd/fwupd/issues/5171
2022-10-19 12:50:12 +01:00
Matthias Gerstner
21dfea650b fu-daemon: GetBiosSettings: explain the meaning of the unauthenticated branch 2022-10-19 09:28:02 +01:00
Richard Hughes
1c35757f85 Consider the release priority when returning results
This means we might be able to offer two versions of firmware for the same
device, where one has additional requirement such as a CHID.

The idea here is to allow OEMs to distribute thier own superset dbx updates on
the LVFS without having to invent an anti-CHID requirement type.
2022-10-18 17:55:31 +01:00
jim.zhang
31f481518b add FPC lenfy device support 2022-10-18 12:23:27 +01:00
Richard Hughes
5fcfe7f0fc Only count the Microsoft hashes when getting the dbx version
HP include extra keys that means the version is higher than expected.
2022-10-17 16:31:37 +01:00
Richard Hughes
3a0f187a16 Move the AMT functionality to the Intel MEI plugin 2022-10-13 18:34:00 +01:00
Richard Hughes
0f8ec55f46 Add a new plugin to get more Intel ME MCA data
This allows us to get the OEM Public Key BootGuard hashes.

Also add a new HSI test for leaked bootguard keys.
2022-10-13 18:34:00 +01:00
Richard Hughes
ef04d0578f trivial: Fix a critical warning when using old kernel versions 2022-10-13 18:34:00 +01:00
Mario Limonciello
d25d4f124e trivial: snap: re-enable UEFI capsule splash images 2022-10-12 11:25:34 -05:00
Mario Limonciello
7a003b597a trivial: snap: drop some of the libraries from the snap that aren't needed 2022-10-12 11:25:34 -05:00
Mario Limonciello
886ec33f79 trivial: snap: disable flashrom by default
When later this is converted to confined we won't want to support
it.  So drop it now.
2022-10-12 11:25:34 -05:00
Mario Limonciello
ea6ac08b7a trivial: snap: add some packages identified as missing 2022-10-12 11:25:34 -05:00
Mario Limonciello
b922ba1bb6 trivial: snap: add libpcre.so.3 into snap package (Fixes: #4195) 2022-10-12 10:42:19 -05:00
Mario Limonciello
95e014a844 trivial: drop snap promotion from RELEASE 2022-10-12 10:35:27 -05:00
Mario Limonciello
0230e03562 trivial: snap: ci: pass file name of snap between jobs 2022-10-12 10:22:57 -05:00
Mario Limonciello
1963f7db4e trivial: snap: ci: display path of the artifacts 2022-10-12 10:02:36 -05:00
Richard Hughes
6894f67dc5 Do not use GKeyFile to parse quirk files
There are two reasons for this. First is that GKeyFile is quite inefficient,
using a large amount of heap memory when loading. Given we don't actually use
the merge and replace functionality of GKeyFile and we only need line-by-line
access we can parse this ourselves and reduce the peak RSS considerably.

This also accidentally fixes another bug. Moving from multiple quirk files to
a single builtin.quirk meant that multiple subsystem plugins were deduped --
which isn't really what we wanted. For example, this now works:

    [MEI]
    Plugin = one
    [MEI]
    Plugin = two
2022-10-12 15:12:56 +01:00
Mario Limonciello
c583d7a2da trivial: snap: ci: upload snap not a directory 2022-10-12 09:10:29 -05:00
Mario Limonciello
6e715143f6 trivial: snap: ci: try to fix deploy to store 2022-10-12 09:00:37 -05:00
Mario Limonciello
652bd65102 trivial: snap: ci: set fetch depth for checkout
To make `git describe` work we need to have all the history.
2022-10-12 09:00:37 -05:00
Mario Limonciello
f68a35e664 trivial: snap: ci: remove checkout step from upload job
This is unnecessary.
2022-10-12 09:00:37 -05:00