mbox series

[F,0/7] Compression improvements in Linux kernel (LP: 1830208)

Message ID 20200218131259.79018-1-frank.heimes@canonical.com
Headers show
Series Compression improvements in Linux kernel (LP: 1830208) | expand

Message

Frank Heimes Feb. 18, 2020, 1:12 p.m. UTC
Buglink: https://bugs.launchpad.net/bugs/1830208

The following patches add several improvements for s390x hardware compression via zlib.

Frank Heimes (1):
  Ubuntu: [Config] Introducing s390x specific kernel config option
    CONFIG_ZLIB_DFLTCC

Mikhail Zaslonko (6):
  lib/zlib: add s390 hardware support for kernel zlib_deflate
  s390/boot: rename HEAP_SIZE due to name collision
  lib/zlib: add s390 hardware support for kernel zlib_inflate
  s390/boot: add dfltcc= kernel command line parameter
  lib/zlib: add zlib_deflate_dfltcc_enabled() function
  btrfs: use larger zlib buffer for s390 hardware compression

 .../admin-guide/kernel-parameters.txt         |  12 +
 arch/s390/boot/compressed/decompressor.c      |   8 +-
 arch/s390/boot/ipl_parm.c                     |  14 +
 arch/s390/include/asm/setup.h                 |   7 +
 arch/s390/kernel/setup.c                      |   2 +
 debian.master/config/annotations              |   3 +
 debian.master/config/config.common.ubuntu     |   1 +
 .../config/s390x/config.common.s390x          |   1 +
 fs/btrfs/compression.c                        |   2 +-
 fs/btrfs/zlib.c                               | 135 ++++++---
 include/linux/zlib.h                          |   6 +
 lib/Kconfig                                   |   7 +
 lib/Makefile                                  |   1 +
 lib/decompress_inflate.c                      |  13 +
 lib/zlib_deflate/deflate.c                    |  85 +++---
 lib/zlib_deflate/deflate_syms.c               |   1 +
 lib/zlib_deflate/deftree.c                    |  54 ----
 lib/zlib_deflate/defutil.h                    | 134 ++++++++-
 lib/zlib_dfltcc/Makefile                      |  11 +
 lib/zlib_dfltcc/dfltcc.c                      |  55 ++++
 lib/zlib_dfltcc/dfltcc.h                      | 155 ++++++++++
 lib/zlib_dfltcc/dfltcc_deflate.c              | 279 ++++++++++++++++++
 lib/zlib_dfltcc/dfltcc_inflate.c              | 149 ++++++++++
 lib/zlib_dfltcc/dfltcc_syms.c                 |  17 ++
 lib/zlib_dfltcc/dfltcc_util.h                 | 103 +++++++
 lib/zlib_inflate/inflate.c                    |  32 +-
 lib/zlib_inflate/inflate.h                    |   8 +
 lib/zlib_inflate/infutil.h                    |  18 +-
 28 files changed, 1161 insertions(+), 152 deletions(-)
 create mode 100644 lib/zlib_dfltcc/Makefile
 create mode 100644 lib/zlib_dfltcc/dfltcc.c
 create mode 100644 lib/zlib_dfltcc/dfltcc.h
 create mode 100644 lib/zlib_dfltcc/dfltcc_deflate.c
 create mode 100644 lib/zlib_dfltcc/dfltcc_inflate.c
 create mode 100644 lib/zlib_dfltcc/dfltcc_syms.c
 create mode 100644 lib/zlib_dfltcc/dfltcc_util.h

Comments

Stefan Bader Feb. 28, 2020, 3:47 p.m. UTC | #1
On 18.02.20 14:12, frank.heimes@canonical.com wrote:
> Buglink: https://bugs.launchpad.net/bugs/1830208
> 
> The following patches add several improvements for s390x hardware compression via zlib.
> 
> Frank Heimes (1):
>   Ubuntu: [Config] Introducing s390x specific kernel config option
>     CONFIG_ZLIB_DFLTCC
> 
> Mikhail Zaslonko (6):
>   lib/zlib: add s390 hardware support for kernel zlib_deflate
>   s390/boot: rename HEAP_SIZE due to name collision
>   lib/zlib: add s390 hardware support for kernel zlib_inflate
>   s390/boot: add dfltcc= kernel command line parameter
>   lib/zlib: add zlib_deflate_dfltcc_enabled() function
>   btrfs: use larger zlib buffer for s390 hardware compression
> 
>  .../admin-guide/kernel-parameters.txt         |  12 +
>  arch/s390/boot/compressed/decompressor.c      |   8 +-
>  arch/s390/boot/ipl_parm.c                     |  14 +
>  arch/s390/include/asm/setup.h                 |   7 +
>  arch/s390/kernel/setup.c                      |   2 +
>  debian.master/config/annotations              |   3 +
>  debian.master/config/config.common.ubuntu     |   1 +
>  .../config/s390x/config.common.s390x          |   1 +
>  fs/btrfs/compression.c                        |   2 +-
>  fs/btrfs/zlib.c                               | 135 ++++++---
>  include/linux/zlib.h                          |   6 +
>  lib/Kconfig                                   |   7 +
>  lib/Makefile                                  |   1 +
>  lib/decompress_inflate.c                      |  13 +
>  lib/zlib_deflate/deflate.c                    |  85 +++---
>  lib/zlib_deflate/deflate_syms.c               |   1 +
>  lib/zlib_deflate/deftree.c                    |  54 ----
>  lib/zlib_deflate/defutil.h                    | 134 ++++++++-
>  lib/zlib_dfltcc/Makefile                      |  11 +
>  lib/zlib_dfltcc/dfltcc.c                      |  55 ++++
>  lib/zlib_dfltcc/dfltcc.h                      | 155 ++++++++++
>  lib/zlib_dfltcc/dfltcc_deflate.c              | 279 ++++++++++++++++++
>  lib/zlib_dfltcc/dfltcc_inflate.c              | 149 ++++++++++
>  lib/zlib_dfltcc/dfltcc_syms.c                 |  17 ++
>  lib/zlib_dfltcc/dfltcc_util.h                 | 103 +++++++
>  lib/zlib_inflate/inflate.c                    |  32 +-
>  lib/zlib_inflate/inflate.h                    |   8 +
>  lib/zlib_inflate/infutil.h                    |  18 +-
>  28 files changed, 1161 insertions(+), 152 deletions(-)
>  create mode 100644 lib/zlib_dfltcc/Makefile
>  create mode 100644 lib/zlib_dfltcc/dfltcc.c
>  create mode 100644 lib/zlib_dfltcc/dfltcc.h
>  create mode 100644 lib/zlib_dfltcc/dfltcc_deflate.c
>  create mode 100644 lib/zlib_dfltcc/dfltcc_inflate.c
>  create mode 100644 lib/zlib_dfltcc/dfltcc_syms.c
>  create mode 100644 lib/zlib_dfltcc/dfltcc_util.h
> 
Except two patches (1 and 6, comments in seperate email) it seemed isolated enough.

Acked-by: Stefan Bader <stefan.bader@canonical.com>
Seth Forshee March 7, 2020, 2:46 p.m. UTC | #2
On Tue, Feb 18, 2020 at 02:12:52PM +0100, frank.heimes@canonical.com wrote:
> Buglink: https://bugs.launchpad.net/bugs/1830208
> 
> The following patches add several improvements for s390x hardware compression via zlib.
> 
> Frank Heimes (1):
>   Ubuntu: [Config] Introducing s390x specific kernel config option
>     CONFIG_ZLIB_DFLTCC
> 
> Mikhail Zaslonko (6):
>   lib/zlib: add s390 hardware support for kernel zlib_deflate
>   s390/boot: rename HEAP_SIZE due to name collision
>   lib/zlib: add s390 hardware support for kernel zlib_inflate
>   s390/boot: add dfltcc= kernel command line parameter
>   lib/zlib: add zlib_deflate_dfltcc_enabled() function
>   btrfs: use larger zlib buffer for s390 hardware compression

Please make sure you run updateconfigs after making config changes. The
last patch had CONFIG_ZLIB_DFLTCC in both the s390x and common config
files, which should never be the case.

Applied to focal/master-next with the configs fixed. Also applied the
annotation to unstable/master-next. Thanks!