fwu: Mark failed bank as invalid during rollback
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 3 repliesIn review
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fwu: Pass bank state enum to fwu_state_machine_updates()include/ lib/ lib/ +1 more | +44 | 1 reply | |
| 2/2 | fwu: Mark failed bank as invalid during rollbacklib/ | +6 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Ilias Apalodimas |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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