Re: [PATCH] PM: hibernate: make LZ4 available for hibernation compression
From: Rafael J. Wysocki
Date: Tue May 26 2026 - 07:50:16 EST
On Tue, May 26, 2026 at 1:30 PM l1rox3 <l1rox3.developer@xxxxxxxxx> wrote:
>
> CRYPTO_LZO is already selected unconditionally from HIBERNATION in
> the same way, and has been working fine like that for a long time.
> This patch just brings CRYPTO_LZ4 in line with that existing behavior.
OK, I guess people will complain if that turns out to be a problem.
Patch applied as 7.2 material, thanks!
> On Tue, May 26, 2026, 13:12 Rafael J. Wysocki <rafael@xxxxxxxxxx> wrote:
>>
>> On Wed, May 20, 2026 at 10:16 AM l1rox3 <l1rox3.developer@xxxxxxxxx> wrote:
>> >
>> > Without this, CRYPTO_LZ4 had to be manually enabled in the config
>> > to use LZ4 for hibernation compression. Add the select so it gets
>> > pulled in automatically when hibernation is enabled, just like
>> > CRYPTO_LZO already does.
>> >
>> > Tested-by: l1rox3 <l1rox3.developer@xxxxxxxxx>
>> > Signed-off-by: l1rox3 <l1rox3.developer@xxxxxxxxx>
>> > ---
>> > kernel/power/Kconfig | 1 +
>> > 1 file changed, 1 insertion(+)
>> >
>> > diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
>> > index 05337f437cca..530c897311d4 100644
>> > --- a/kernel/power/Kconfig
>> > +++ b/kernel/power/Kconfig
>> > @@ -42,6 +42,7 @@ config HIBERNATION
>> > select CRC32
>> > select CRYPTO
>> > select CRYPTO_LZO
>> > + select CRYPTO_LZ4
>> > help
>> > Enable the suspend to disk (STD) functionality, which is usually
>> > called "hibernation" in user interfaces. STD checkpoints the
>> > --
>>
>> Please check the sashiko.dev feedback on this change:
>>
>> https://sashiko.dev/#/patchset/20260520081254.13493-1-l1rox3.developer%40gmail.com
>>
>> and either address it, or let me know why you don't think that it
>> needs to be addressed.
>>
>> Thanks!