* + init-add-support-for-zstd-compressed-modules.patch added to -mm tree
@ 2021-03-31 4:53 akpm
2021-04-08 3:10 ` Masahiro Yamada
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2021-03-31 4:53 UTC (permalink / raw)
To: lucjan.lucjanov, masahiroy, mm-commits, oleksandr
The patch titled
Subject: init: add support for zstd compressed modules
has been added to the -mm tree. Its filename is
init-add-support-for-zstd-compressed-modules.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/init-add-support-for-zstd-compressed-modules.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/init-add-support-for-zstd-compressed-modules.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Piotr Gorski <lucjan.lucjanov@gmail.com>
Subject: init: add support for zstd compressed modules
kmod 28 supports modules compressed in zstd format so let's add this
possibility to kernel.
Requires this update to mkinitcpio:
https://github.com/archlinux/mkinitcpio/pull/43
Link: https://lkml.kernel.org/r/20210330113235.2767216-1-lucjan.lucjanov@gmail.com
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Reviewed-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
Makefile | 7 +++++--
init/Kconfig | 9 ++++++---
2 files changed, 11 insertions(+), 5 deletions(-)
--- a/init/Kconfig~init-add-support-for-zstd-compressed-modules
+++ a/init/Kconfig
@@ -2222,8 +2222,8 @@ config MODULE_COMPRESS
bool "Compress modules on installation"
help
- Compresses kernel modules when 'make modules_install' is run; gzip or
- xz depending on "Compression algorithm" below.
+ Compresses kernel modules when 'make modules_install' is run; gzip,
+ xz, or zstd depending on "Compression algorithm" below.
module-init-tools MAY support gzip, and kmod MAY support gzip and xz.
@@ -2245,7 +2245,7 @@ choice
This determines which sort of compression will be used during
'make modules_install'.
- GZIP (default) and XZ are supported.
+ GZIP (default), XZ, and ZSTD are supported.
config MODULE_COMPRESS_GZIP
bool "GZIP"
@@ -2253,6 +2253,9 @@ config MODULE_COMPRESS_GZIP
config MODULE_COMPRESS_XZ
bool "XZ"
+config MODULE_COMPRESS_ZSTD
+ bool "ZSTD"
+
endchoice
config MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS
--- a/Makefile~init-add-support-for-zstd-compressed-modules
+++ a/Makefile
@@ -1066,8 +1066,8 @@ endif # INSTALL_MOD_STRIP
export mod_strip_cmd
# CONFIG_MODULE_COMPRESS, if defined, will cause module to be compressed
-# after they are installed in agreement with CONFIG_MODULE_COMPRESS_GZIP
-# or CONFIG_MODULE_COMPRESS_XZ.
+# after they are installed in agreement with CONFIG_MODULE_COMPRESS_GZIP,
+# CONFIG_MODULE_COMPRESS_XZ, or CONFIG_MODULE_COMPRESS_ZSTD.
mod_compress_cmd = true
ifdef CONFIG_MODULE_COMPRESS
@@ -1077,6 +1077,9 @@ ifdef CONFIG_MODULE_COMPRESS
ifdef CONFIG_MODULE_COMPRESS_XZ
mod_compress_cmd = $(XZ) --lzma2=dict=2MiB -f
endif # CONFIG_MODULE_COMPRESS_XZ
+ ifdef CONFIG_MODULE_COMPRESS_ZSTD
+ mod_compress_cmd = $(ZSTD) -T0 --rm -f -q
+ endif # CONFIG_MODULE_COMPRESS_ZSTD
endif # CONFIG_MODULE_COMPRESS
export mod_compress_cmd
_
Patches currently in -mm which might be from lucjan.lucjanov@gmail.com are
init-add-support-for-zstd-compressed-modules.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: + init-add-support-for-zstd-compressed-modules.patch added to -mm tree
2021-03-31 4:53 + init-add-support-for-zstd-compressed-modules.patch added to -mm tree akpm
@ 2021-04-08 3:10 ` Masahiro Yamada
0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2021-04-08 3:10 UTC (permalink / raw)
To: Andrew Morton; +Cc: Piotr Gorski, mm-commits, Oleksandr Natalenko
On Wed, Mar 31, 2021 at 1:53 PM <akpm@linux-foundation.org> wrote:
>
>
> The patch titled
> Subject: init: add support for zstd compressed modules
> has been added to the -mm tree. Its filename is
> init-add-support-for-zstd-compressed-modules.patch
>
> This patch should soon appear at
> https://ozlabs.org/~akpm/mmots/broken-out/init-add-support-for-zstd-compressed-modules.patch
> and later at
> https://ozlabs.org/~akpm/mmotm/broken-out/init-add-support-for-zstd-compressed-modules.patch
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
>
> The -mm tree is included into linux-next and is updated
> there every 3-4 working days
>
> ------------------------------------------------------
> From: Piotr Gorski <lucjan.lucjanov@gmail.com>
> Subject: init: add support for zstd compressed modules
>
> kmod 28 supports modules compressed in zstd format so let's add this
> possibility to kernel.
>
> Requires this update to mkinitcpio:
> https://github.com/archlinux/mkinitcpio/pull/43
>
> Link: https://lkml.kernel.org/r/20210330113235.2767216-1-lucjan.lucjanov@gmail.com
> Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
> Reviewed-by: Oleksandr Natalenko <oleksandr@natalenko.name>
> Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
> Cc: Masahiro Yamada <masahiroy@kernel.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
I applied v3 to the kbuild tree.
> ---
>
> Makefile | 7 +++++--
> init/Kconfig | 9 ++++++---
> 2 files changed, 11 insertions(+), 5 deletions(-)
>
> --- a/init/Kconfig~init-add-support-for-zstd-compressed-modules
> +++ a/init/Kconfig
> @@ -2222,8 +2222,8 @@ config MODULE_COMPRESS
> bool "Compress modules on installation"
> help
>
> - Compresses kernel modules when 'make modules_install' is run; gzip or
> - xz depending on "Compression algorithm" below.
> + Compresses kernel modules when 'make modules_install' is run; gzip,
> + xz, or zstd depending on "Compression algorithm" below.
>
> module-init-tools MAY support gzip, and kmod MAY support gzip and xz.
>
> @@ -2245,7 +2245,7 @@ choice
> This determines which sort of compression will be used during
> 'make modules_install'.
>
> - GZIP (default) and XZ are supported.
> + GZIP (default), XZ, and ZSTD are supported.
>
> config MODULE_COMPRESS_GZIP
> bool "GZIP"
> @@ -2253,6 +2253,9 @@ config MODULE_COMPRESS_GZIP
> config MODULE_COMPRESS_XZ
> bool "XZ"
>
> +config MODULE_COMPRESS_ZSTD
> + bool "ZSTD"
> +
> endchoice
>
> config MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS
> --- a/Makefile~init-add-support-for-zstd-compressed-modules
> +++ a/Makefile
> @@ -1066,8 +1066,8 @@ endif # INSTALL_MOD_STRIP
> export mod_strip_cmd
>
> # CONFIG_MODULE_COMPRESS, if defined, will cause module to be compressed
> -# after they are installed in agreement with CONFIG_MODULE_COMPRESS_GZIP
> -# or CONFIG_MODULE_COMPRESS_XZ.
> +# after they are installed in agreement with CONFIG_MODULE_COMPRESS_GZIP,
> +# CONFIG_MODULE_COMPRESS_XZ, or CONFIG_MODULE_COMPRESS_ZSTD.
>
> mod_compress_cmd = true
> ifdef CONFIG_MODULE_COMPRESS
> @@ -1077,6 +1077,9 @@ ifdef CONFIG_MODULE_COMPRESS
> ifdef CONFIG_MODULE_COMPRESS_XZ
> mod_compress_cmd = $(XZ) --lzma2=dict=2MiB -f
> endif # CONFIG_MODULE_COMPRESS_XZ
> + ifdef CONFIG_MODULE_COMPRESS_ZSTD
> + mod_compress_cmd = $(ZSTD) -T0 --rm -f -q
> + endif # CONFIG_MODULE_COMPRESS_ZSTD
> endif # CONFIG_MODULE_COMPRESS
> export mod_compress_cmd
>
> _
>
> Patches currently in -mm which might be from lucjan.lucjanov@gmail.com are
>
> init-add-support-for-zstd-compressed-modules.patch
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-08 3:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 4:53 + init-add-support-for-zstd-compressed-modules.patch added to -mm tree akpm
2021-04-08 3:10 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).