Re: [PATCH v2 3/4] powerpc/boot: Add bzip2 support for uImage

2019-04-25 Thread Adam Borowski
On Tue, Apr 23, 2019 at 02:20:43PM +, Christophe Leroy wrote: > This patch allows to generate bzip2 compressed uImage Please don't add bzip2 support, that's a waste of your time as we're trying to remove it kernel-wide. There's a patchset to retire compressors beaten by alternatives on the

Re: [PATCH 05/17] mips: Remove support for BZIP2 and LZMA compressed kernel

2018-11-13 Thread Adam Borowski
On Tue, Nov 13, 2018 at 10:45:54PM +, Paul Burton wrote: > On Fri, Nov 09, 2018 at 08:02:52PM +0100, Adam Borowski wrote: > > @@ -122,7 +104,6 @@ $(obj)/vmlinux.its.S: $(addprefix > > $(srctree)/arch/mips/$(PLATFORM)/,$(ITS_INPUTS > > > > targets

[PATCH 16/17] Kconfig: Update the prose for selection of compression algorithm

2018-11-09 Thread Adam Borowski
It was really obsolete, and some entries contradicted each other. Let's not recommend ZSTD for kernel compression yet as it's available only on x86, and some distros might not have the tool installed. Proposing ZSTD for initrd is safer but let's test it first. Signed-off-by: Adam Borowski

[PATCH 17/17] [NOT FOR MERGING] lib: Be noisy about used decompression method.

2018-11-09 Thread Adam Borowski
It's too easy to build the initrd with wrong options during testing, after which it may silently work anyway. Signed-off-by: Adam Borowski --- lib/decompress.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/decompress.c b/lib/decompress.c index 95f39a14eb7b

[PATCH 07/17] s390: Remove support for BZIP2 and LZMA compressed kernel

2018-11-09 Thread Adam Borowski
Made redundant by newer choices. Signed-off-by: Adam Borowski --- arch/s390/Kconfig| 2 -- arch/s390/boot/compressed/Makefile | 8 +--- arch/s390/boot/compressed/decompressor.c | 8 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/arch

[PATCH 04/17] x86: Remove support for BZIP2 and LZMA compressed kernel

2018-11-09 Thread Adam Borowski
it will harmlessly be adjusted, thus there's no risk of breakage. Bare lzma is redundant with xz, lacks some improvements, and uses its own copy of code instead using the common library. Signed-off-by: Adam Borowski --- Documentation/x86/boot.txt| 11 +-- arch/x86/Kconfig | 2

[PATCH 15/17] lib: Completely purge now-unused lzma code from the kernel

2018-11-09 Thread Adam Borowski
The XZ library already can decompress lzma, this other copy was redundant. We just removed rather than converted all old users. Signed-off-by: Adam Borowski --- include/linux/decompress/unlzma.h | 13 - lib/Makefile | 1 - lib/decompress.c | 5 - lib

[PATCH 10/17] arm: Remove support for LZMA compressed kernel

2018-11-09 Thread Adam Borowski
You want XZ instead: newer version of same algorithm, has an optimized filter for arm32 executables, uses a library shared with other uses of XZ in the kernel. Signed-off-by: Adam Borowski --- arch/arm/Kconfig | 1 - arch/arm/boot/compressed/Makefile | 1 - arch/arm

[PATCH 06/17] parisc: Remove support for BZIP2 and LZMA compressed kernel

2018-11-09 Thread Adam Borowski
Made redundant by newer choices. Signed-off-by: Adam Borowski --- arch/parisc/Kconfig | 2 -- arch/parisc/boot/compressed/Makefile | 10 ++ arch/parisc/boot/compressed/misc.c | 8 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/arch/parisc

[PATCH 01/17] lib: Add support for ZSTD-compressed kernel

2018-11-09 Thread Adam Borowski
From: Nick Terrell Add support for extracting ZSTD-compressed kernel images, as well as ZSTD-compressed ramdisk images in the kernel boot process. When neither `fill' nor `flush' are used, the decompression function requires a constant amount of memory (192 KB is sufficient). When either is

[PATCH 05/17] mips: Remove support for BZIP2 and LZMA compressed kernel

2018-11-09 Thread Adam Borowski
Made redundant by newer choices. Signed-off-by: Adam Borowski --- arch/mips/Kconfig | 2 -- arch/mips/boot/Makefile| 27 -- arch/mips/boot/compressed/Makefile | 2 -- arch/mips/boot/compressed/decompress.c | 8 4 files

[PATCH 03/17] .gitignore: add ZSTD-compressed files

2018-11-09 Thread Adam Borowski
For now, that's arch/x86/boot/compressed/vmlinux.bin.zst but probably more will come, thus let's be consistent with all other compressors. Signed-off-by: Adam Borowski --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 97ba6b79834c..0d09cf1c053c

[PATCH 0/17] Kernel compression: add ZSTD, remove LZMA1 and BZIP2

2018-11-09 Thread Adam Borowski
Hi! As new compressors get invented, they tend to find their way into the kernel, yet we never prune superseded ones. It's time to do so. In particular, BZIP2 is drastically slower than other compressors we have, even when they achieve smaller sizes. It takes more memory, too. And, BZIP2 is not

[PATCH 02/17] x86: Add support for ZSTD-compressed kernel

2018-11-09 Thread Adam Borowski
From: Nick Terrell Integrates the ZSTD decompression code to the x86 pre-boot code. Zstandard requires slightly more memory during the kernel decompression on x86 (192 KB vs 64 KB), and the memory usage is independent of the window size. Zstandard requires memory proportional to the window

[PATCH 08/17] sh: Remove support for BZIP2 and LZMA compressed kernel

2018-11-09 Thread Adam Borowski
Made redundant by newer choices. Signed-off-by: Adam Borowski --- arch/sh/Kconfig | 2 -- arch/sh/Makefile | 4 +--- arch/sh/boot/Makefile| 19 ++- arch/sh/boot/compressed/Makefile | 5 - arch/sh/boot/compressed/misc.c | 12

[PATCH 11/17] Kconfig: Remove support for BZIP2-compressed initrd and kernel

2018-11-09 Thread Adam Borowski
might have requested it in initramfs.conf -- but it's not an option users tend to alter, and they'd use a better algorithm anyway. Thus, user damage is possible but on par with removal of an ancient filesystem. Signed-off-by: Adam Borowski --- Makefile | 1 - init/Kconfig

[PATCH 12/17] Kconfig: Remove support for LZMA-compressed initrd

2018-11-09 Thread Adam Borowski
Obsoleted by XZ. The config option for compressing the kernel stays, as some archs have a bootloader outside the kernel that wants LZMA. Signed-off-by: Adam Borowski --- Makefile| 1 - usr/Kconfig | 28 ++-- 2 files changed, 2 insertions(+), 27 deletions(-) diff

[PATCH 09/17] unicore32: Remove support for BZIP2 and LZMA compressed kernel

2018-11-09 Thread Adam Borowski
Made redundant by newer choices -- sort of, as no one enabled support for XZ nor ZSTD for unicore yet... Signed-off-by: Adam Borowski --- arch/unicore32/Kconfig | 2 -- arch/unicore32/boot/compressed/Makefile | 4 +--- arch/unicore32/boot/compressed/misc.c | 8 3

[PATCH 13/17] arch/*: Purge references to CONFIG_RD_BZIP2/LZMA from various defconfigs

2018-11-09 Thread Adam Borowski
They don't exist anymore. Signed-off-by: Adam Borowski --- arch/arm/configs/aspeed_g4_defconfig | 1 - arch/arm/configs/aspeed_g5_defconfig | 1 - arch/arm/configs/clps711x_defconfig| 1 - arch/arm/configs/ezx_defconfig | 2 -- arch/arm/configs/hisi_defconfig

[PATCH 14/17] lib: Completely purge now-unused bzip2 code from the kernel

2018-11-09 Thread Adam Borowski
All remaining references are userspace code to build tarballs, packages or such. Signed-off-by: Adam Borowski --- lib/Kconfig | 3 - lib/Makefile | 1 - lib/decompress.c | 4 - lib/decompress_bunzip2.c | 756 --- scripts

Re: [RFC] new SYSCALL_DEFINE/COMPAT_SYSCALL_DEFINE wrappers

2018-03-30 Thread Adam Borowski
On Fri, Mar 30, 2018 at 12:58:02PM +0200, Ingo Molnar wrote: > * John Paul Adrian Glaubitz wrote: > > > On 03/27/2018 12:40 PM, Linus Torvalds wrote: > > > On Mon, Mar 26, 2018 at 4:37 PM, John Paul Adrian Glaubitz > > > wrote: > > >>

Re: [PATCH 00/13] mmu_notifier kill invalidate_page callback

2017-08-30 Thread Adam Borowski
On Tue, Aug 29, 2017 at 08:56:15PM -0400, Jerome Glisse wrote: > I will wait for people to test and for result of my own test before > reposting if need be, otherwise i will post as separate patch. > > > But from a _very_ quick read-through this looks fine. But it obviously > > needs testing. > >

[PATCH] powerpc/85xx: typo in dts: interupt (four devices)

2013-11-12 Thread Adam Borowski
These lines were inoperative for four years, which puts some doubt into their importance, and it's possible the fixed version will regress, but at the very least they should be removed instead. Signed-off-by: Adam Borowski kilob...@angband.pl --- arch/powerpc/boot/dts/xcalibur1501.dts | 4

[PATCH] powerpc/85xx: typo in dts: interupt (four devices)

2013-11-11 Thread Adam Borowski
These lines were inoperative for four years, which puts some doubt into their importance, and it's possible the fixed version will regress, but at the very least they should be removed instead. Signed-off-by: Adam Borowski kilob...@angband.pl --- arch/powerpc/boot/dts/xcalibur1501.dts | 4