Commit Graph

8408 Commits

Author SHA1 Message Date
Richard Hughes
f358da7bda redfish: Only offset the IPMI user_id when using XCC
Both iDRAC and SuperMicro do the sensible thing.

Fixes https://github.com/fwupd/fwupd/issues/5129
2023-02-20 15:23:16 +00:00
Richard Hughes
4bd7b8a8f6 Do not update the MOTD during a composite update 2023-02-20 14:29:48 +00:00
Richard Hughes
d74b54a422 trivial: Add a device test for the CalDigit Element Hub 2023-02-20 14:29:48 +00:00
Richard Hughes
1b7d8b1a6f intel-usb4: Prefer this plugin over the Thunderbolt plugin
This also means we don't accidentally run the `FuDevice->attach()` and
`FuDevice->cleanup()` methods on the `FuThunderboltDevice` as this enumerates
first after the post-update replug.
2023-02-20 14:29:48 +00:00
Richard Hughes
148cfab0e4 intel-usb4: Use ONLY_WAIT_FOR_REPLUG to speed up emulation 2023-02-20 14:29:48 +00:00
Richard Hughes
b949fb1eea intel-usb4: Allow setting the name from the metadata
We can do so much better than 'USB3.0 Hub'.
2023-02-20 14:29:48 +00:00
Richard Hughes
c8d2e53942 Allow using requirements <firmware depth=0> with no parent
In this context a depth of 0 with no siblings means 'an only child' which
in practice means 'the device itself'.
2023-02-20 14:29:48 +00:00
Richard Hughes
88bd9fd8c3 intel-usb4: Set the remove delay to avoid a console warning 2023-02-20 14:29:48 +00:00
Richard Hughes
0dcb3aadfe intel-usb4: Implement FuDevice->set_progress() to avoid a warning 2023-02-20 14:29:48 +00:00
Mario Limonciello
e69ffa1b71 trivial: snap: install git package as build-deps explicitly
Hopefully this gets us the source_version set in fwupdmgr --version
and also the tag for use to mark as supported build or not.
2023-02-20 06:10:37 -06:00
Mario Limonciello
074b40e6ee snap: restore automatic promotion, but to candidate channel
Snap is switched to confined but we have to worry about timing our
next release with the new snapd which can work with it.

When we issue our next release we do want to get a binary saved at least,
so let's promote to the 'candidate' channel come release time.

This effectively reverts commit 57282a5903.

When the new snapd is out and we're happy enough with the results we
can switch this back to automatic promotion to the stable channel again.
2023-02-20 06:10:37 -06:00
Richard Hughes
df8a6a7eaf Only accept application/x-xz compression for the metadata payload
Fixes some of https://github.com/fwupd/fwupd/issues/5553
2023-02-19 21:56:52 +00:00
Mario Limonciello
2b96b9e933 Add a quirk for COD detection
Insyde has added a bit into the ACPI UEFI table that can be utilized
to detect if they have fixed the COD bug.

This means that COD can be turned on by default for X86 for all vendors
that support it, and if Insyde is encountered whenever that bit is active.
2023-02-19 08:38:52 +00:00
Richard Hughes
9be0c6dea6 Add a generic ACPI table parser 2023-02-18 20:08:34 +00:00
Richard Hughes
12cfdd2901 Do not run the FuProgress self tests by default
These add over 1000ms to the run time, and also do not work well when
virtualized via qemu.

Fixes https://github.com/fwupd/fwupd/issues/5547
2023-02-18 16:38:45 +00:00
Mario Limonciello
9407c5680f trivial: fix overwriting errors for existence of shim
fixes: #5545
2023-02-17 16:44:09 +00:00
Richard Hughes
02e665b847 Use a heuristic to set ignore-system-power for all Lenovo batteries 2023-02-17 14:00:43 +00:00
Frédéric Danis
30ed9ced21 trivial: fix typo 2023-02-17 12:57:46 +00:00
Richard Hughes
a5dd40690b trivial: Add FuProgress to FuPlugin->backend_device_added()
Now we know fu_synaptics_mst_plugin_device_rescan() takes ~267ms...
2023-02-17 06:52:49 +00:00
Richard Hughes
9bfddede49 trivial: Speed up coldplug by respecting REQUEST_KIND_ONLY_SUPPORTED 2023-02-17 06:52:49 +00:00
Richard Hughes
a04c64a144 trivial: Only call fu_engine_md_refresh_device_from_component once per device add
See also e038419240 for more details.
2023-02-17 06:52:49 +00:00
Mario Limonciello
331e59eb04 trivial: be consistent about the vendor string for AMD 2023-02-16 14:40:51 -06:00
Mario Limonciello
c6731e56f2 trivial: add a plugin to show VBIOS version for AMD APUs
The VBIOS version is actually fetched by udev, this plugin sets
up the relationship so it's displayed in the right place.
2023-02-16 14:40:51 -06:00
Mario Limonciello
088359a381 trivial: read vbios_version on dGPUs
This allows getting a read only view of the VBIOS version advertised
by the dGPU driver.
2023-02-16 14:40:51 -06:00
Mario Limonciello
53faf281c1 trivial: read the class sysfs file if present 2023-02-16 14:40:51 -06:00
Mario Limonciello
9635851d4a trivial: add a new helper to read a sysfs attr as guint32 2023-02-16 14:40:51 -06:00
Mario Limonciello
fc25813bae trivial: snap: install shim into the snap as well
Fixes: #5485
2023-02-16 11:32:36 -06:00
Mario Limonciello
4a2dc41b7e trivial: snap: install EFI binaries into $ESP/fwupd instead 2023-02-16 11:32:36 -06:00
Mario Limonciello
2ddda260a6 trivial: uefi-capsule: drop the fallback to removable path flag
It was used for ubuntu-core with a confined fwupd, but now we will
load our own shim as necessary to the ESP.
2023-02-16 11:32:36 -06:00
Mario Limonciello
5266d62611 uefi-capsule: Copy in an updated shim if provided
If a shim is in the fwupd libexec/efi directory, it's intended to
be paired with the fwupd binary.
2023-02-16 11:32:36 -06:00
Richard Hughes
249bbf540c Offer to enable emulation if disabled 2023-02-16 13:53:11 +00:00
Richard Hughes
9ec39636e2 trivial: Fix -Wunused-variable with old GUsb versions 2023-02-15 20:14:12 +00:00
Richard Hughes
11cd52f58d trivial: Ensure the progressbar gets to exactly 100% when downloading 2023-02-15 17:16:28 +00:00
Richard Hughes
205ffb5eac trivial: Only show the non-interactive text status if interesting 2023-02-15 17:16:28 +00:00
Richard Hughes
7e0ba9ff97 trivial: Move the uint prompt to FuConsole 2023-02-15 17:16:28 +00:00
Richard Hughes
73d1b47e18 trivial: Fix newline when asking for confirmation 2023-02-15 17:16:28 +00:00
Richard Hughes
caaeb1ea16 Split out the console handling to a new module
This simplifies a lot of confusion.
2023-02-15 16:16:30 +00:00
Richard Hughes
b25e0f3a28 uefi-capsule: Require at least 80MB free in the ESP
See https://github.com/fwupd/firmware-lenovo/issues/257
2023-02-15 16:12:26 +00:00
Richard Hughes
336494190d Allow installing some battery firmware updates when the power is too low
The firmware in this case fixes the battery charging, and as the battery is
*internal* the user isn't able to apply the fix.

Fixes https://github.com/fwupd/firmware-lenovo/issues/315
2023-02-15 16:08:53 +00:00
Richard Hughes
b1556dc046 Fix -Dbuild=library target 2023-02-15 15:46:36 +00:00
Richard Hughes
474b520e9f trivial: Add emulation data for the HP G5 dock 2023-02-14 16:02:45 +00:00
Richard Hughes
87dc2bec11 trivial: Add device test data for the HP 910 keyboard and mouse 2023-02-14 15:38:36 +00:00
Richard Hughes
7157d695e0 Use a predefined message when emulating
This allow us to guide the user through emulation in gnome-firmware.
2023-02-14 13:52:35 +00:00
Richard Hughes
00c50afe21 trivial: Correctly fallback from SMBIOS to FDT 2023-02-14 13:52:04 +00:00
Richard Hughes
cc7c44312b Correctly fall back to the compatible vendor when FDT vendor is missing
Fixes https://github.com/fwupd/fwupd/issues/5530
2023-02-14 13:52:04 +00:00
Richard Hughes
fd5d84a8f5 trivial: Never add missing FDT values as a HwID 2023-02-14 13:52:04 +00:00
Richard Hughes
23ae0b115c trivial: Fix critical warning when using fwupdtool export-hwids 2023-02-14 09:27:11 +00:00
Richard Hughes
a528793127 ccgx: Make the default image type for FuCcgxDmcDevice to be DMC_COMPOSITE
This means most devices do not need to specify additional quirks.
2023-02-14 08:22:47 +00:00
Richard Hughes
34743ff6f4 Allow downloading files in fwupdtool
The useragent was being set as 'fwupdtool/1.8.11 fwupd/(NULL)' which the LVFS
did not like. As we're using fwupdtool without a daemon proxy just set the
fwupd version manually.

Fixes https://github.com/fwupd/fwupd/issues/5519
2023-02-13 21:17:03 +00:00
Richard Hughes
be45a3a773 Show the 4XX download failure in the error output 2023-02-13 21:17:03 +00:00