Skip to content

EFI: Reset system after capsule-on-disk

Masami Hiramatsu u-boot 5 versions – In review

Get series with b4
b4 am 164499213192.688621.17382243642029677399.stgit@localhost

Versions newest first · linked by author and title

  1. v5 Latest4 patches 17 repliesIn review
  2. v42 patches 12 repliesSuperseded
  3. v2 posting 2/22 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/22 patches15 repliesSuperseded
v12 patches7 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4efi_loader: use efi_update_capsule_firmware() for capsule on disklib/efi_loader/efi_capsule.c+1 -10 replies
2/4test/py: Handle expected reset by commandtest/py/u_boot_console_base.py+58 -410 replies
3/4test/py: Handle expected reboot while booting sandboxtest/py/u_boot_console_base.py test/py/u_boot_console_sandbox.py+33 -2217 replies
4/4efi_loader: test/py: Reset system after capsule update on disklib/efi_loader/efi_capsule.c test/py/tests/test_efi_capsule/test_capsule_firmware.py+39 -160 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchHeinrich Schuchardt
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/4] EFI: Reset system after capsule-on-disk

Hi,

Here is the 5th version of the reset after capsule-on-disk. This version includes the test updates for this new behavior. I finally split the test update patches into 3 parts. ConsoleBase::run_command() update [2/4], ConsoleBase::ensure_spawned() update [3/4] and the test code update. The last part is merged into the reset after capsule-on-disk patch [4/4].

The reset after completing the capsule-on-disk is stated in the UEFI specification 2.9, section 8.5.5 "Delivery of Capsules via file on Mass Storage device" as below,

In all cases that a capsule is identified for processing the system is restarted after capsule processing is completed.

Thank you,

---

Masami Hiramatsu (4):
efi_loader: use efi_update_capsule_firmware() for capsule on disk test/py: Handle expected reset by command
test/py: Handle expected reboot while booting sandbox
efi_loader: test/py: Reset system after capsule update on disk

 lib/efi_loader/efi_capsule.c                       |   20 +++
 .../test_efi_capsule/test_capsule_firmware.py      |   37 ++++--
 test/py/u_boot_console_base.py                     |  115 ++++++++++++--------
 test/py/u_boot_console_sandbox.py                  |    7 +
 4 files changed, 115 insertions(+), 64 deletions(-)

--
Masami Hiramatsu <[email protected]>