Skip to content

FIT: Do not hash image data twice

Sascha Hauer barebox 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20261001-fit-cache-fixes-4e8f1cbb17ab

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2bootm: fit: open FIT images only once per loadablecommon/bootm-fit.c+27 -130 replies
2/2FIT: do not cache uncompressed datacommon/image-fit.c+10 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] FIT: Do not hash image data twice

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.

---
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,

Signature · 1 line
Sascha Hauer <[email protected]>