mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mahipal Challa <mahipalreddy2006@gmail.com>
To: herbert@gondor.apana.org.au
Cc: davem@davemloft.net, linux-crypto@vger.kernel.org,
	linux-kernel@vger.kernel.org, Jan.Glauber@cavium.com,
	Vishnu.Nair@cavium.com, pathreya@cavium.com,
	Mahipal.Challa@cavium.com
Subject: [RFC PATCH v2 0/3] Cavium ThunderX ZIP driver
Date: Wed, 15 Feb 2017 10:45:07 +0530	[thread overview]
Message-ID: <1487135710-9692-1-git-send-email-Mahipal.Challa@cavium.com> (raw)

Hi Herbert,

This series adds support for hardware accelerated compression & decompression
as found on ThunderX (arm64) SOCs.

As per your suggestion, we've switched to the new crypto acomp/scomp interface.

To test the ZIP driver, we modified the kernel's ZSWAP to use acomp API's.

Performance numbers from ZSWAP look promising.
The "average time" for compressing a 4KB page:

Compression Software    : 278 usec
Compression HW deflate  :  17 usec
Compression HW LZS      :  11 usec

Decompression Software  : 20 usec
Decompression HW deflate:  8 usec
Decompression HW LZS    :  6 usec

Addressed the review comments from the RFC v1.
 - Added acomp/scomp crypto interface support.
 - Improved the error handling.
 - ZIP command completion codes are renamed suitably.
 - Removed some un-used code.
 - raw_smp_processor_id() replaced with smp_processor_id().
 - Some more miscellaneous changes. 

Patches are on top of "kernel/git/herbert/crypto-2.6.git" repository

Please provide your feedback.

Regards,
Mahipal 
------------

Mahipal Challa (3):
  crypto: zip - Add ThunderX ZIP driver core
  crypto: zip - Wire-up Compression / decompression HW offload
  crypto: zip - Add Compression/Decompression statistics

 drivers/crypto/Kconfig                  |    7 +
 drivers/crypto/Makefile                 |    1 +
 drivers/crypto/cavium/Makefile          |    4 +
 drivers/crypto/cavium/zip/Makefile      |   11 +
 drivers/crypto/cavium/zip/common.h      |  202 +++++
 drivers/crypto/cavium/zip/zip_crypto.c  |  314 +++++++
 drivers/crypto/cavium/zip/zip_crypto.h  |   79 ++
 drivers/crypto/cavium/zip/zip_deflate.c |  200 +++++
 drivers/crypto/cavium/zip/zip_deflate.h |   62 ++
 drivers/crypto/cavium/zip/zip_device.c  |  202 +++++
 drivers/crypto/cavium/zip/zip_device.h  |  108 +++
 drivers/crypto/cavium/zip/zip_inflate.c |  223 +++++
 drivers/crypto/cavium/zip/zip_inflate.h |   62 ++
 drivers/crypto/cavium/zip/zip_main.c    |  729 +++++++++++++++++
 drivers/crypto/cavium/zip/zip_main.h    |  121 +++
 drivers/crypto/cavium/zip/zip_mem.c     |  114 +++
 drivers/crypto/cavium/zip/zip_mem.h     |   78 ++
 drivers/crypto/cavium/zip/zip_regs.h    | 1347 +++++++++++++++++++++++++++++++
 18 files changed, 3864 insertions(+)
 create mode 100644 drivers/crypto/cavium/Makefile
 create mode 100644 drivers/crypto/cavium/zip/Makefile
 create mode 100644 drivers/crypto/cavium/zip/common.h
 create mode 100644 drivers/crypto/cavium/zip/zip_crypto.c
 create mode 100644 drivers/crypto/cavium/zip/zip_crypto.h
 create mode 100644 drivers/crypto/cavium/zip/zip_deflate.c
 create mode 100644 drivers/crypto/cavium/zip/zip_deflate.h
 create mode 100644 drivers/crypto/cavium/zip/zip_device.c
 create mode 100644 drivers/crypto/cavium/zip/zip_device.h
 create mode 100644 drivers/crypto/cavium/zip/zip_inflate.c
 create mode 100644 drivers/crypto/cavium/zip/zip_inflate.h
 create mode 100644 drivers/crypto/cavium/zip/zip_main.c
 create mode 100644 drivers/crypto/cavium/zip/zip_main.h
 create mode 100644 drivers/crypto/cavium/zip/zip_mem.c
 create mode 100644 drivers/crypto/cavium/zip/zip_mem.h
 create mode 100644 drivers/crypto/cavium/zip/zip_regs.h

-- 
1.8.3.1

             reply	other threads:[~2017-02-15  5:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-15  5:15 Mahipal Challa [this message]
2017-02-15  5:15 ` [RFC PATCH v2 1/3] crypto: zip - Add ThunderX ZIP driver core Mahipal Challa
2017-02-15  5:15 ` [RFC PATCH v2 2/3] crypto: zip - Wire-up Compression / decompression HW offload Mahipal Challa
2017-02-15  5:15 ` [RFC PATCH v2 3/3] crypto: zip - Add Compression/Decompression statistics Mahipal Challa
2017-03-09 10:46 ` [RFC PATCH v2 0/3] Cavium ThunderX ZIP driver Herbert Xu
2017-03-09 18:25   ` Mahipal Reddy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1487135710-9692-1-git-send-email-Mahipal.Challa@cavium.com \
    --to=mahipalreddy2006@gmail.com \
    --cc=Jan.Glauber@cavium.com \
    --cc=Mahipal.Challa@cavium.com \
    --cc=Vishnu.Nair@cavium.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pathreya@cavium.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®