mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] FIT: Do not hash image data twice
@ 2026-10-01  7:11 Sascha Hauer
  2026-10-01  7:11 ` [PATCH 1/2] bootm: fit: open FIT images only once per loadable Sascha Hauer
  2026-10-01  7:11 ` [PATCH 2/2] FIT: do not cache uncompressed data Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Sascha Hauer @ 2026-10-01  7:11 UTC (permalink / raw)
  To: BAREBOX

Since we switched the FIT image code to the new loadable API we call
fit_open_image() multiple times per boot. The FIT image code caches
the image data, so we do not have to extract it multiple times, but
it doesn't cache the hashing result, so we hash the image data each
time.

Mitigate this by caching the data in the loadable instead and call
fit_open_image() only once. This makes the caching in the FIT image
unnecessary, so it's removed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Sascha Hauer (2):
      bootm: fit: open FIT images only once per loadable
      FIT: do not cache uncompressed data

 common/bootm-fit.c | 40 +++++++++++++++++++++++++++-------------
 common/image-fit.c | 24 ++++++++++--------------
 2 files changed, 37 insertions(+), 27 deletions(-)
---
base-commit: 4aa5dcd400d5b9cecfd24e68c6f05cd128c75c43
change-id: 20261001-fit-cache-fixes-4e8f1cbb17ab

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-01  7:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01  7:11 [PATCH 0/2] FIT: Do not hash image data twice Sascha Hauer
2026-10-01  7:11 ` [PATCH 1/2] bootm: fit: open FIT images only once per loadable Sascha Hauer
2026-10-01  7:11 ` [PATCH 2/2] FIT: do not cache uncompressed data Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox