Skip to content

Commit d024995

Browse files
committed
configs: Enable more ZRAM backends
6.12 kernel reworked how ZRAM backends were configured. Let's enable the ones we've lost. I've chosen zstd as the default. 6.6 kernel supported: $ cat /sys/block/zram0/comp_algorithm [lzo-rle] lzo lz4 zstd 6.12 currently supports: $ cat /sys/block/zram0/comp_algorithm [lzo-rle] lzo With this PR 6.12 supports: $ cat /sys/block/zram0/comp_algorithm lzo-rle lzo lz4 [zstd] See: https://forums.raspberrypi.com/viewtopic.php?p=2296678#p2296678 Signed-off-by: Dom Cobley <[email protected]>
1 parent d2af97c commit d024995

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed

arch/arm/configs/bcm2709_defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,10 @@ CONFIG_MTD_SPI_NOR=m
441441
CONFIG_MTD_UBI=m
442442
CONFIG_OF_CONFIGFS=y
443443
CONFIG_ZRAM=m
444+
CONFIG_ZRAM_BACKEND_LZ4=y
445+
CONFIG_ZRAM_BACKEND_ZSTD=y
446+
CONFIG_ZRAM_BACKEND_LZO=y
447+
CONFIG_ZRAM_DEF_COMP_ZSTD=y
444448
CONFIG_ZRAM_WRITEBACK=y
445449
CONFIG_ZRAM_MULTI_COMP=y
446450
CONFIG_BLK_DEV_LOOP=y

arch/arm/configs/bcm2711_defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,10 @@ CONFIG_MTD_SPI_NOR=m
448448
CONFIG_MTD_UBI=m
449449
CONFIG_OF_CONFIGFS=y
450450
CONFIG_ZRAM=m
451+
CONFIG_ZRAM_BACKEND_LZ4=y
452+
CONFIG_ZRAM_BACKEND_ZSTD=y
453+
CONFIG_ZRAM_BACKEND_LZO=y
454+
CONFIG_ZRAM_DEF_COMP_ZSTD=y
451455
CONFIG_ZRAM_WRITEBACK=y
452456
CONFIG_ZRAM_MULTI_COMP=y
453457
CONFIG_BLK_DEV_LOOP=y

arch/arm/configs/bcmrpi_defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,10 @@ CONFIG_MTD_SPI_NOR=m
435435
CONFIG_MTD_UBI=m
436436
CONFIG_OF_CONFIGFS=y
437437
CONFIG_ZRAM=m
438+
CONFIG_ZRAM_BACKEND_LZ4=y
439+
CONFIG_ZRAM_BACKEND_ZSTD=y
440+
CONFIG_ZRAM_BACKEND_LZO=y
441+
CONFIG_ZRAM_DEF_COMP_ZSTD=y
438442
CONFIG_ZRAM_WRITEBACK=y
439443
CONFIG_ZRAM_MULTI_COMP=y
440444
CONFIG_BLK_DEV_LOOP=y

arch/arm64/configs/bcm2711_defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,10 @@ CONFIG_MTD_SPI_NOR=m
473473
CONFIG_MTD_UBI=m
474474
CONFIG_OF_CONFIGFS=y
475475
CONFIG_ZRAM=m
476+
CONFIG_ZRAM_BACKEND_LZ4=y
477+
CONFIG_ZRAM_BACKEND_ZSTD=y
478+
CONFIG_ZRAM_BACKEND_LZO=y
479+
CONFIG_ZRAM_DEF_COMP_ZSTD=y
476480
CONFIG_ZRAM_WRITEBACK=y
477481
CONFIG_ZRAM_MULTI_COMP=y
478482
CONFIG_BLK_DEV_LOOP=y

arch/arm64/configs/bcm2712_defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,10 @@ CONFIG_MTD_SPI_NOR=m
476476
CONFIG_MTD_UBI=m
477477
CONFIG_OF_CONFIGFS=y
478478
CONFIG_ZRAM=m
479+
CONFIG_ZRAM_BACKEND_LZ4=y
480+
CONFIG_ZRAM_BACKEND_ZSTD=y
481+
CONFIG_ZRAM_BACKEND_LZO=y
482+
CONFIG_ZRAM_DEF_COMP_ZSTD=y
479483
CONFIG_ZRAM_WRITEBACK=y
480484
CONFIG_ZRAM_MULTI_COMP=y
481485
CONFIG_BLK_DEV_LOOP=y

arch/arm64/configs/bcmrpi3_defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,10 @@ CONFIG_MTD_SPI_NAND=m
447447
CONFIG_MTD_UBI=m
448448
CONFIG_OF_CONFIGFS=y
449449
CONFIG_ZRAM=m
450+
CONFIG_ZRAM_BACKEND_LZ4=y
451+
CONFIG_ZRAM_BACKEND_ZSTD=y
452+
CONFIG_ZRAM_BACKEND_LZO=y
453+
CONFIG_ZRAM_DEF_COMP_ZSTD=y
450454
CONFIG_ZRAM_WRITEBACK=y
451455
CONFIG_ZRAM_MULTI_COMP=y
452456
CONFIG_BLK_DEV_LOOP=y

0 commit comments

Comments
 (0)