#22666: zram doesn't work with lz4 on big endian machines -------------------------+-------------------------------- Reporter: jhalfmoon@… | Owner: developers Type: defect | Status: new Priority: normal | Milestone: Component: kernel | Version: Chaos Calmer 15.05 Keywords: zram lz4 | -------------------------+-------------------------------- To reproduce it:
opkg install kmod_zram swap-utils swapoff /dev/zram0 rmmod zram modprobe zram echo lz4 > /sys/devices/virtual/block/zram0/comp_algorithm echo $((2*1024*1024)) > /sys/block/zram0/disksize mkswap /dev/zram0 swapon -p 10 /dev/zram0 swapon -s cat /sys/block/zram0/comp_algorithm dmesg | tail The following will be logged: [821241.390000] zram: Created 1 device(s) ... [821242.430000] zram0: detected capacity change from 0 to 4194304 [821244.480000] zram: Decompression failed! err=-1, page=0 [821244.480000] Buffer I/O error on dev zram0, logical block 0, async page read Apparently this is a known issue and even reported by none other than Greg Kroah-Hartman: https://lkml.org/lkml/2016/4/5/564 #=== System info: root@router:~# cat /proc/version Linux version 3.18.23 (buildbot@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47269) ) #1 Sun Jan 31 18:39:35 CET 2016 root@router:~# cat /proc/cpuinfo system type : Atheros AR9132 rev 2 machine : TP-LINK TL-WR1043ND processor : 0 cpu model : MIPS 24Kc V7.4 BogoMIPS : 265.42 wait instruction : yes microsecond timers : yes tlb_entries : 16 extra interrupt vector : yes hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb] isa : mips1 mips2 mips32r1 mips32r2 ASEs implemented : mips16 shadow register sets : 1 kscratch registers : 0 package : 0 core : 0 VCED exceptions : not available VCEI exceptions : not available -- Ticket URL: <https://dev.openwrt.org/ticket/22666> OpenWrt <http://openwrt.org> Opensource Wireless Router Technology _______________________________________________ openwrt-tickets mailing list openwrt-tickets@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets