All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Michal Wilczynski" <m.wilczynski@samsung.com>
Cc: linux-s390@vger.kernel.org, "Heiko Carstens" <hca@linux.ibm.com>,
	"Vasily Gorbik" <gor@linux.ibm.com>,
	"Alexander Gordeev" <agordeev@linux.ibm.com>,
	"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH v2 11/15] lib/lz4: switch the HC compressor to the vendored sources
Date: Fri, 06 Nov 2026 14:54:41 +0000	[thread overview]
Message-ID: <sashiko-outbox-201625@kernel.org> (raw)
In-Reply-To: <20261106-lz4-vendor-upstream-v2-11-ee04c3f0d7dc@samsung.com>

> Replace the forked LZ4HC with thin entry points over the vendored
> lz4hc.c.
> 
> Upstream routes levels 10 and up to its optimal parser, whose ~64K
> workspace the kernel cannot provide. Clamp those levels to 9 rather than
> reject them, so existing f2fs and zram settings keep working, and add
> LZ4HC_CLAMP_CLEVEL to <linux/lz4.h>. Document the clamp in f2fs.rst.
> 
> Levels 1 and 2 now use upstream's lz4mid: on kernel source they are
> 50-84% faster for 4-9% larger output. Levels 3 to 9 compress the same,
> but at 4K are up to 15% slower on poorly compressible data, including at
> level 9, zram's lz4hc default.
> 
> LZ4_compress_HC() and LZ4_resetStreamHC() check the state's alignment
> like the compressor's entry points.
> 
> LZ4_streamHC_t becomes incomplete and the macros that laid out the forked
> structure go. LZ4HC_MEM_COMPRESS grows from 262192 to upstream's 262200,
> static_asserted against LZ4_STREAMHC_MINSIZE. lz4hc.c pulls in lz4.c's
> decoder tables, unused here when the fast decode loop is off, so silence
> -Wunused-const-variable for this object.
> 
> This retires commit b08918fb3f27 ("lz4: do not export static symbol"):
> the glue exports only the five LZ4HC entry points.
> 
> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261106-lz4-vendor-upstream-v2-0-ee04c3f0d7dc@samsung.com?part=11


  reply	other threads:[~2026-11-06 14:54 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20261106144247eucas1p15bdd0704f32d1cb3b19f9d2296a0cbc3@eucas1p1.samsung.com>
2026-11-06 14:42 ` [PATCH v2 00/15] lib/lz4: stop forking upstream LZ4, vendor it instead Michal Wilczynski
2026-11-06 14:42   ` [f2fs-dev] " Michal Wilczynski
2026-11-06 14:42   ` [PATCH v2 01/15] lib/decompress_unlz4: use LZ4_decompress_safe_partial() before boot Michal Wilczynski
2026-11-06 14:42     ` [f2fs-dev] " Michal Wilczynski
2026-11-06 14:59     ` sashiko-bot
2026-11-06 14:42   ` [PATCH v2 02/15] lib/lz4: remove LZ4_decompress_fast() and its variants Michal Wilczynski
2026-11-06 14:42     ` [f2fs-dev] " Michal Wilczynski
2026-11-06 14:47     ` sashiko-bot
2026-11-06 14:42   ` [PATCH v2 03/15] zram: lz4hc: reset the dictionary stream once, not per page Michal Wilczynski
2026-11-06 14:42     ` [f2fs-dev] " Michal Wilczynski
2026-11-06 14:49     ` sashiko-bot
2026-11-10  5:31       ` Sergey Senozhatsky
2026-11-12 11:50         ` Michal Wilczynski
2026-11-06 14:42   ` [PATCH v2 04/15] lib/lz4: import upstream LZ4 sources verbatim Michal Wilczynski
2026-11-06 14:42     ` [f2fs-dev] " Michal Wilczynski
2026-11-06 14:48     ` sashiko-bot
2026-11-06 14:42   ` [PATCH v2 05/15] lib/lz4: backport upstream's -Wmissing-prototypes fix Michal Wilczynski
2026-11-06 14:42     ` [f2fs-dev] " Michal Wilczynski
2026-11-06 14:46     ` sashiko-bot
2026-11-06 14:42   ` [PATCH v2 06/15] lib/lz4: backport upstream's aarch64 fast decode loop enablement Michal Wilczynski
2026-11-06 14:42     ` [f2fs-dev] " Michal Wilczynski
2026-11-06 14:47     ` sashiko-bot
2026-11-06 14:42   ` [f2fs-dev] [PATCH v2 07/15] lib/lz4: backport upstream's match length limit fix Michal Wilczynski
2026-11-06 14:42     ` Michal Wilczynski
2026-11-06 14:50     ` sashiko-bot
2026-11-06 14:42   ` [f2fs-dev] [PATCH v2 08/15] lib/lz4: add the build environment for the vendored sources Michal Wilczynski
2026-11-06 14:42     ` Michal Wilczynski
2026-11-06 14:57     ` sashiko-bot
2026-11-06 14:42   ` [f2fs-dev] [PATCH v2 09/15] arch: boot: put the LZ4 freestanding headers on the decompressor path Michal Wilczynski
2026-11-06 14:42     ` Michal Wilczynski
2026-11-06 14:49     ` sashiko-bot
2026-11-06 14:42   ` [f2fs-dev] [PATCH v2 10/15] lib/lz4: switch the compressor to the vendored sources Michal Wilczynski
2026-11-06 14:42     ` Michal Wilczynski
2026-11-06 14:52     ` sashiko-bot
2026-11-07  1:40     ` kernel test robot
2026-11-10  5:36     ` Sergey Senozhatsky
2026-11-10  5:36       ` [f2fs-dev] " Sergey Senozhatsky
2026-11-12 12:02       ` Michal Wilczynski
2026-11-12 12:02         ` [f2fs-dev] " Michal Wilczynski
2026-11-06 14:42   ` [f2fs-dev] [PATCH v2 11/15] lib/lz4: switch the HC " Michal Wilczynski
2026-11-06 14:42     ` Michal Wilczynski
2026-11-06 14:54     ` sashiko-bot [this message]
2026-11-06 14:42   ` [f2fs-dev] [PATCH v2 12/15] lib/lz4: widen LZ4_DECOMPRESS_INPLACE_MARGIN for the fast decode loop Michal Wilczynski
2026-11-06 14:42     ` Michal Wilczynski
2026-11-06 14:52     ` sashiko-bot
2026-11-11 22:02     ` Gao Xiang
2026-11-11 22:02       ` [f2fs-dev] " Gao Xiang via Linux-f2fs-devel
2026-11-12 12:40       ` Michal Wilczynski
2026-11-12 12:40         ` [f2fs-dev] " Michal Wilczynski
2026-11-06 14:42   ` [f2fs-dev] [PATCH v2 13/15] lib/lz4: switch the decompressor to the vendored sources Michal Wilczynski
2026-11-06 14:42     ` Michal Wilczynski
2026-11-06 14:57     ` sashiko-bot
2026-11-10  5:39     ` Sergey Senozhatsky
2026-11-10  5:39       ` [f2fs-dev] " Sergey Senozhatsky
2026-11-12 12:06       ` Michal Wilczynski
2026-11-12 12:06         ` [f2fs-dev] " Michal Wilczynski
2026-11-06 14:42   ` [PATCH v2 14/15] lib/lz4: replace lz4_kernel_api.h's prototypes with <linux/lz4.h> Michal Wilczynski
2026-11-06 14:42     ` [f2fs-dev] " Michal Wilczynski
2026-11-06 14:51     ` sashiko-bot
2026-11-06 14:42   ` [PATCH v2 15/15] MAINTAINERS: add an entry for the LZ4 compression library Michal Wilczynski
2026-11-06 14:42     ` [f2fs-dev] " Michal Wilczynski
2026-11-12 11:25   ` [PATCH v2 00/15] lib/lz4: stop forking upstream LZ4, vendor it instead Michal Wilczynski
2026-11-12 11:25     ` [f2fs-dev] " Michal Wilczynski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-201625@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=agordeev@linux.ibm.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=linux-s390@vger.kernel.org \
    --cc=m.wilczynski@samsung.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.