[PATCH v2 0/3] ARM ZSTD boot compression

From: Andreas Kemnade

Date: Fri Aug 28 2026 - 16:32:56 EST


Add ZSTD compression to still have a quite high compression but with
not too much boot delay penality.

Signed-off-by: Andreas Kemnade <andreas@xxxxxxxxxxxx>
---
Changes in v2:
- rebased
- practically rewritten 3/3 (and therefore changed author)
- added more measurements
- Link to v1: https://lore.kernel.org/lkml/ZDoDYh01GYjdwp63@probook/

To: Russell King <linux@xxxxxxxxxxxxxxx>
To: Nick Terrell <terrelln@xxxxxx>
To: David Sterba <dsterba@xxxxxxxx>
To: Nathan Chancellor <nathan@xxxxxxxxxx>
To: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
To: Bill Wendling <morbo@xxxxxxxxxx>
To: Justin Stitt <justinstitt@xxxxxxxxxx>
Cc: j.neuschaefer@xxxxxxx
Cc: f.fainelli@xxxxxxxxx
Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
Cc: Tony Lindgren <tony@xxxxxxxxxxx>
Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx

---
Andreas Kemnade (1):
ARM: compressed: Enable ZSTD compression

Jonathan Neuschäfer (2):
ARM: compressed: Pass the actual output length to the decompressor
ARM: compressed: Bump MALLOC_SIZE to 128 KiB

arch/arm/Kconfig | 1 +
arch/arm/boot/compressed/Makefile | 3 ++-
arch/arm/boot/compressed/decompress.c | 15 ++++++++++++---
arch/arm/boot/compressed/head.S | 4 ++--
arch/arm/boot/compressed/misc.c | 10 +++++++++-
arch/arm/boot/compressed/misc.h | 3 ++-
6 files changed, 28 insertions(+), 8 deletions(-)
---
base-commit: 8d3ae59288f1e7d58d76558a6ee96d533bc5019f
change-id: 20260828-zstd2-045ce924f624

Best regards,
--
Andreas Kemnade <andreas@xxxxxxxxxxxx>