Skip to content

fwu: Mark failed bank as invalid during rollback

Kory Maincent u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v11 patch 4 repliesSuperseded

Changes in v2 from the cover letter

- Refactors fwu_state_machine_updates() to use enum as parameter instead of adding a new fwu_invalid_bank() helper.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fwu: Pass bank state enum to fwu_state_machine_updates()include/fwu.h lib/efi_loader/efi_capsule.c lib/fwu_updates/fwu_v1.c +1 more+44 -491 reply
2/2fwu: Mark failed bank as invalid during rollbacklib/fwu_updates/fwu.c+6 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchIlias Apalodimas
1/2R-b
2/2R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] fwu: Mark failed bank as invalid during rollback

This series improves the FWU (Firmware Update) subsystem's handling of boot failures by properly marking failed banks as invalid during rollback.

Patch 1 refactors fwu_state_machine_updates() to use an enum instead of a boolean, adding support for FWU_BANK_INVALID state.

Patch 2 detects rollback at boot time (when boot_idx != active_idx) and marks the failed bank as invalid to prevent future boot attempts.

Changes in v2:
- Refactors fwu_state_machine_updates() to use enum as parameter instead of adding a new fwu_invalid_bank() helper.

Kory Maincent (2):
fwu: Pass bank state enum to fwu_state_machine_updates()
fwu: Mark failed bank as invalid during rollback

 include/fwu.h                | 22 ++++++++--------
 lib/efi_loader/efi_capsule.c |  5 ++--
 lib/fwu_updates/fwu.c        |  6 +++++
 lib/fwu_updates/fwu_v1.c     | 16 ++++++------
 lib/fwu_updates/fwu_v2.c     | 50 +++++++++++++++---------------------
 5 files changed, 50 insertions(+), 49 deletions(-)
Signature · 1 line
2.43.0