zstd changes for v6.15-rc1
Hi Linus,
This pull request updates Zstandard to the latest upstream release v1.5.7. The two major motivations for updating Zstandard are to keep the code up to date, and to expose API's needed by Intel for the QAT compression accelerator. Detailed changelog and testing information are in the commit message.
This change conflicts with 1400c87e. It should be merged to keep the change to (__GNUC__ >= 11) to work around a gcc segfault which is still present after the update to zstd-v1.5.7. I've tested that the merge builds & runs successfully on x86-64 with gcc-9 and gcc-14. I've left the conflict as-is to avoid back merges.
This pull request has been baking in linux-next since March 18th. This is on the short side because the commit was only completed on the 13th. If this is acceptable, I would still like to merge the zstd update, so we don't have to wait for another cycle. The updated Zstandard has been tested in btrfs and squashfs on x86-64, and tested in kernel & initramfs decompression on x86-64, i386, and aarch64.
Thanks,
Nick Terrell
--
The following changes since commit 7eb172143d5508b4da468ed59ee857c6e5e01da6:
Linux 6.14-rc5 (2025-03-02 11:48:20 -0800)
are available in the Git repository at:
https://github.com/terrelln/linux.git tags/zstd-linus-v6.15-rc1
for you to fetch changes up to 65d1f5507ed2c78c64fce40e44e5574a9419eb09:
zstd: Import upstream v1.5.7 (2025-03-13 13:25:58 -0700)
----------------------------------------------------------------
Update zstd to the latest upstream release v1.5.7. Imported cleanly from the upstream tag v1.5.7-kernel, which is signed by upstream's signing key EF8FE99528B52FFD.
----------------------------------------------------------------
Nick Terrell (1):
zstd: Import upstream v1.5.7
include/linux/zstd.h | 87 +- include/linux/zstd_errors.h | 30 +- include/linux/zstd_lib.h | 1123 ++++++-- lib/zstd/Makefile | 3 +- lib/zstd/common/allocations.h | 56 + lib/zstd/common/bits.h | 150 ++ lib/zstd/common/bitstream.h | 155 +- lib/zstd/common/compiler.h | 151 +- lib/zstd/common/cpu.h | 3 +- lib/zstd/common/debug.c | 9 +- lib/zstd/common/debug.h | 37 +- lib/zstd/common/entropy_common.c | 42 +- lib/zstd/common/error_private.c | 13 +- lib/zstd/common/error_private.h | 88 +- lib/zstd/common/fse.h | 103 +- lib/zstd/common/fse_decompress.c | 132 +- lib/zstd/common/huf.h | 240 +- lib/zstd/common/mem.h | 3 +- lib/zstd/common/portability_macros.h | 45 +- lib/zstd/common/zstd_common.c | 38 +- lib/zstd/common/zstd_deps.h | 16 +- lib/zstd/common/zstd_internal.h | 153 +- lib/zstd/compress/clevels.h | 3 +- lib/zstd/compress/fse_compress.c | 74 +- lib/zstd/compress/hist.c | 13 +- lib/zstd/compress/hist.h | 10 +- lib/zstd/compress/huf_compress.c | 441 ++-- lib/zstd/compress/zstd_compress.c | 3293 +++++++++++++++++------- lib/zstd/compress/zstd_compress_internal.h | 621 +++-- lib/zstd/compress/zstd_compress_literals.c | 157 +- lib/zstd/compress/zstd_compress_literals.h | 25 +- lib/zstd/compress/zstd_compress_sequences.c | 21 +- lib/zstd/compress/zstd_compress_sequences.h | 16 +- lib/zstd/compress/zstd_compress_superblock.c | 394 ++- lib/zstd/compress/zstd_compress_superblock.h | 3 +- lib/zstd/compress/zstd_cwksp.h | 222 +- lib/zstd/compress/zstd_double_fast.c | 245 +- lib/zstd/compress/zstd_double_fast.h | 27 +- lib/zstd/compress/zstd_fast.c | 703 +++-- lib/zstd/compress/zstd_fast.h | 16 +- lib/zstd/compress/zstd_lazy.c | 840 +++--- lib/zstd/compress/zstd_lazy.h | 195 +- lib/zstd/compress/zstd_ldm.c | 102 +- lib/zstd/compress/zstd_ldm.h | 17 +- lib/zstd/compress/zstd_ldm_geartab.h | 3 +- lib/zstd/compress/zstd_opt.c | 571 ++-- lib/zstd/compress/zstd_opt.h | 55 +- lib/zstd/compress/zstd_preSplit.c | 239 ++ lib/zstd/compress/zstd_preSplit.h | 34 + lib/zstd/decompress/huf_decompress.c | 887 ++++--- lib/zstd/decompress/zstd_ddict.c | 9 +- lib/zstd/decompress/zstd_ddict.h | 3 +- lib/zstd/decompress/zstd_decompress.c | 375 ++- lib/zstd/decompress/zstd_decompress_block.c | 724 +++--- lib/zstd/decompress/zstd_decompress_block.h | 10 +- lib/zstd/decompress/zstd_decompress_internal.h | 19 +- lib/zstd/decompress_sources.h | 2 +- lib/zstd/zstd_common_module.c | 5 +- lib/zstd/zstd_compress_module.c | 75 +- lib/zstd/zstd_decompress_module.c | 4 +- 60 files changed, 8749 insertions(+), 4381 deletions(-) create mode 100644 lib/zstd/common/allocations.h create mode 100644 lib/zstd/common/bits.h create mode 100644 lib/zstd/compress/zstd_preSplit.c create mode 100644 lib/zstd/compress/zstd_preSplit.h
The pull request you sent on Wed, 26 Mar 2025 02:20:52 +0000:
The pull request you sent on Wed, 26 Mar 2025 02:20:52 +0000:
Quoted 1 line
https://github.com/terrelln/linux.git tags/zstd-linus-v6.15-rc1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/e61f33273ca755b3e2ebee4520a76097199dc7a8
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html