Skip to contentSkip to conversation

PM: hibernate: make LZ4 available for hibernation compression

PATCH In review l1rox3 2 participants 3 messages May 20 – May 26 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

l1rox3

author
#0 lore raw

PATCH 1/1 PM: hibernate: make LZ4 available for hibernation compression

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.

---
 kernel/power/Kconfig | 1 +
 1 file changed, 1 insertion(+)
kernel/power/Kconfig +1 -0
index 05337f437cca..530c897311d4 100644
@@ -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
Signature · 1 line
2.54.0
#1 lore raw
Quoted 17 lines · On Wed, May 20, 2026 at 10:16 AM l1rox3 <[email protected]> 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.

---
 kernel/power/Kconfig | 1 +
 1 file changed, 1 insertion(+)
kernel/power/Kconfig +0 -0
index 05337f437cca..530c897311d4 100644

kernel/power/Kconfig config HIBERNATION

Quoted 8 lines
kernel/power/Kconfig +1 -1
@@ -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!

A message that is not in the archive (sent off-list or not yet received): CAL+gSJwF_mfwNVss0evwjBptX-FLwWQp1hTUC0z9WMRnJLGV-g@mail.gmail.com

#3 lore raw
Quoted 4 lines · On Tue, May 26, 2026 at 1:30 PM l1rox3 <[email protected]> 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!

Quoted 37 lines · On Tue, May 26, 2026, 13:12 Rafael J. Wysocki <[email protected]> wrote:
Quoted 36 lines · On Wed, May 20, 2026 at 10:16 AM l1rox3 <[email protected]> wrote:
Quoted 17 lines

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.

---
 kernel/power/Kconfig | 1 +
 1 file changed, 1 insertion(+)
kernel/power/Kconfig +0 -0
index 05337f437cca..530c897311d4 100644

kernel/power/Kconfig config HIBERNATION

Quoted 8 lines
kernel/power/Kconfig +1 -1
@@ -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!