Files
coreboot/util/cbfstool
Sergii Dmytruk cefafca6df util/cbfstool: don't invalidate MH cache unnecessarily
Commit 7c7feca258 ("CBFS verification: support Top Swap redundancy")
forced reset of metadata cache before processing every region to make it
possible to process slots A and B in a single invocation of cbfstool
when Top Swap (TS) redundancy is enabled.  The slots use separate
bootblock copies each with its own metadata anchor, so cache cannot be
blindly reused.

This change invalidates the cache only when a transition from a TS to a
non-TS (or vice versa) region is detected, which is achieved by tracking
what is currently in the cache.

Additionally, make the function fail if TOPSWAP region is not found.

Upstream-Status: Backport [CB:92025]
Change-Id: I37da5585ceffdaa243c6b77471637d2457134768
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/92025
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2026-04-18 20:46:16 +03:00
..
2024-05-29 10:33:54 +00:00
2021-10-25 08:08:41 +00:00
2022-11-09 00:26:30 +00:00
2021-10-19 16:08:45 +00:00
2021-10-19 16:08:45 +00:00
2021-10-19 16:08:45 +00:00
2021-10-19 16:08:45 +00:00
2022-07-04 14:02:26 +00:00
2023-08-01 12:51:25 +00:00