Skip to content

RFC Add support for boot-time caching

acampanella-thegoodpenguin linux-embedded oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected] change-id 20250915-bootcache-1bcf0ee0d7b0

Versions newest first

  1. v1 RFC Latest6 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6base: bootcache: initial commitMAINTAINERS drivers/base/Kconfig drivers/base/Makefile +2 more+416 -02 replies
2/6raid6: Add bootcachelib/raid6/algos.c+21 -00 replies
3/6crypto: use bootcache to cache fastest algorithmcrypto/xor.c+28 -12 replies
4/6base: bootcache: Add bootcache test backendMAINTAINERS drivers/base/Kconfig drivers/base/Makefile +1 more+136 -00 replies
5/6base: bootcache: Add bootcache memory backenddrivers/base/Kconfig drivers/base/Makefile drivers/base/bootcache_backend_memory.c+228 -04 replies
6/6dt-bindings: bootcache: Add bindings for bootcache backendDocumentation/devicetree/bindings/bootcache/linux,bootcache-backend-memory.yaml MAINTAINERS+68 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH PREVIEW RFC 0/6] Add support for boot-time caching

This patch series provides a simple key-value cache for storing boot-time configuration data. The goal is to allow kernel components and drivers to cache time-consuming-to-compute values during boot, enabling faster subsequent boots by avoiding redundant initialization work.

During kernel boot, many subsystems perform expensive operations like:

- Hardware detection and configuration
- Performance tuning calculations
- Resource allocation decisions
- Driver initialization parameters

These operations often produce the same results across boots on the same hardware, making them good candidates for caching.

---
Andrew Murray (1):
crypto: use bootcache to cache fastest algorithm

Marc Kelly (3):
base: bootcache: Add bootcache test backend
base: bootcache: Add bootcache memory backend
dt-bindings: bootcache: Add bindings for bootcache backend

acampanella-thegoodpenguin (2):
base: bootcache: initial commit
raid6: Add bootcache

 .../bootcache/linux,bootcache-backend-memory.yaml  |  67 +++++++
 MAINTAINERS                                        |   9 +
 crypto/xor.c                                       |  29 ++-
 drivers/base/Kconfig                               |  32 +++
 drivers/base/Makefile                              |   3 +
 drivers/base/bootcache.c                           | 179 +++++++++++++++++
 drivers/base/bootcache_backend_memory.c            | 220 +++++++++++++++++++++
 drivers/base/bootcache_backend_test.c              | 119 +++++++++++
 include/linux/bootcache.h                          | 219 ++++++++++++++++++++
 lib/raid6/algos.c                                  |  21 ++
 10 files changed, 897 insertions(+), 1 deletion(-)

---
base-commit: c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
change-id: 20250915-bootcache-1bcf0ee0d7b0

Best regards,

Signature · 1 line
acampanella-thegoodpenguin <[email protected]>