Skip to content

crypto: acomp - Add virtual address and folio support

Herbert Xu linux-crypto linux-mtd linux-pm netdev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest14 patches 9 repliesIn review
  2. v413 patches 14 repliesSuperseded
  3. v38 patches 14 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v27 patches8 repliesSuperseded
v17 patches36 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14xfrm: ipcomp: Call pskb_may_pull in ipcomp_inputnet/xfrm/xfrm_ipcomp.c+3 -00 replies
2/14crypto: scomp - Remove support for some non-trivial SG listscrypto/acompress.c crypto/scompress.c include/crypto/acompress.h +1 more+76 -710 replies
3/14crypto: iaa - Remove dst_null supportdrivers/crypto/intel/iaa/iaa_crypto_main.c+6 -1300 replies
4/14crypto: qat - Remove dst_null supportdrivers/crypto/intel/qat/qat_common/qat_bl.c drivers/crypto/intel/qat/qat_common/qat_bl.h drivers/crypto/intel/qat/qat_common/qat_comp_algs.c +1 more+1 -2590 replies
5/14crypto: acomp - Remove dst_freeinclude/crypto/internal/acompress.h+0 -20 replies
6/14crypto: scomp - Add chaining and virtual address supportcrypto/scompress.c+65 -310 replies
7/14crypto: acomp - Add ACOMP_REQUEST_ALLOC and acomp_request_alloc_extracrypto/acompress.c include/crypto/acompress.h include/crypto/internal/acompress.h +1 more+117 -80 replies
8/14crypto: iaa - Use acomp stack fallbackdrivers/crypto/intel/iaa/iaa_crypto_main.c+6 -220 replies
9/14crypto: acomp - Add async nondma fallbackcrypto/acompress.c+41 -280 replies
10/14crypto: acomp - Add support for folioscrypto/acompress.c crypto/scompress.c include/crypto/acompress.h +1 more+182 -331 reply
11/14xfrm: ipcomp: Use crypto_acomp interfaceinclude/net/ipcomp.h net/xfrm/xfrm_algo.c net/xfrm/xfrm_ipcomp.c+236 -2614 replies
12/14PM: hibernate: Use crypto_acomp interfacekernel/power/hibernate.c kernel/power/swap.c+42 -210 replies
13/14ubifs: Use crypto_acomp interfacefs/ubifs/compress.c fs/ubifs/journal.c fs/ubifs/ubifs.h+67 -561 reply
14/14ubifs: Pass folios to acompfs/ubifs/compress.c fs/ubifs/file.c fs/ubifs/journal.c +1 more+145 -553 replies

Reviews trailers per patch

3 of 14 patches have a Reviewed-by or Acked-by.

PatchSteffen KlassertRafael J. WysockiZhihao Cheng
1/14A-b
2/14
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14A-b
13/14T-b R-b
14/14T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [v5 PATCH 00/14] crypto: acomp - Add virtual address and folio support

v5 removes the incompressible warnings in ubifs, removes more dead code from qat, and replaces crypto_has_comp with crypto_has_acomp in hibernate and ipcomp.

This patch series adds virtual address and folio support to acomp. This finally brings it to feature parity with the legacy crypto_comp, which enables us to convert the existing users to acomp.

The three users are converted according to their characteristics:
ubifs uses folio+linear, hibernate uses linear only while ipcomp uses SG only.

Only ipcomp is fully asynchronous, ubifs supports asynchronous but will wait on it and hibernate is synchronous only.

Herbert Xu (14):
xfrm: ipcomp: Call pskb_may_pull in ipcomp_input
crypto: scomp - Remove support for some non-trivial SG lists
crypto: iaa - Remove dst_null support
crypto: qat - Remove dst_null support
crypto: acomp - Remove dst_free
crypto: scomp - Add chaining and virtual address support
crypto: acomp - Add ACOMP_REQUEST_ALLOC and acomp_request_alloc_extra
crypto: iaa - Use acomp stack fallback
crypto: acomp - Add async nondma fallback
crypto: acomp - Add support for folios
xfrm: ipcomp: Use crypto_acomp interface
PM: hibernate: Use crypto_acomp interface
ubifs: Use crypto_acomp interface
ubifs: Pass folios to acomp

 crypto/acompress.c                            | 148 ++++--
 crypto/scompress.c                            | 189 ++++---
 drivers/crypto/intel/iaa/iaa_crypto_main.c    | 164 +-----
 drivers/crypto/intel/qat/qat_common/qat_bl.c  | 159 ------
 drivers/crypto/intel/qat/qat_common/qat_bl.h  |   6 -
 .../intel/qat/qat_common/qat_comp_algs.c      |  85 +---
 .../intel/qat/qat_common/qat_comp_req.h       |  10 -
 fs/ubifs/compress.c                           | 208 ++++++--
 fs/ubifs/file.c                               |  74 +--
 fs/ubifs/journal.c                            |  11 +-
 fs/ubifs/ubifs.h                              |  26 +-
 include/crypto/acompress.h                    | 184 ++++++-
 include/crypto/internal/acompress.h           |  26 +-
 include/crypto/internal/scompress.h           |   2 -
 include/linux/crypto.h                        |   1 +
 include/net/ipcomp.h                          |  13 +-
 kernel/power/hibernate.c                      |   5 +-
 kernel/power/swap.c                           |  58 ++-
 net/xfrm/xfrm_algo.c                          |   7 +-
 net/xfrm/xfrm_ipcomp.c                        | 478 +++++++++---------
 20 files changed, 932 insertions(+), 922 deletions(-)
Signature · 1 line
2.39.5