Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Tadeusz Struk <tadeusz.struk@intel.com>
To: herbert@gondor.apana.org.au
Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, qat-linux@intel.com
Subject: [PATCH RFC 0/4] crypto: qat - Add userspace access to QAT services
Date: Thu, 06 Nov 2014 11:59:32 -0800	[thread overview]
Message-ID: <20141106195931.13328.90501.stgit@tstruk-mobl1> (raw)

Hi,
This series adds support for user space access to QAT services.
Intel (R) Quick Assist Technology provides acceleration for symmetric,
asymmetric cryptography and compression. Many of these algorithms like
RSA, DSA, Diffie–Hellman, Elliptic Curve are very computational expensive and
accelerating is highly desirable. This patch series implement a new
qat_sym and qat_asym PF_ALG interface that allows access acceleration HW from
user space thorough a QAT library available from 01.org website.
User space applications can use the QAT services through QAT API.
The QAT user space library creates job description requests, and sends
it through qat socket to QAT driver. The driver validates the request,
remaps user virtual memory (for symmetric ciphers) or copies the input
parameters (for public key crypto) and sends it to the acceleration hardware.
The data is then processed and the library is notified when it is ready
by calling select on the socket.

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
---

Tadeusz Struk (4):
      crytpo: qat - Fix 64 bytes requests
      crypto: qat - Add PKE firmware
      crypto: qat - Add userspace instances
      crypto: qat - Add new algif interface for userspace


 drivers/crypto/qat/Kconfig                         |    9 
 drivers/crypto/qat/qat_common/Makefile             |    3 
 drivers/crypto/qat/qat_common/adf_accel_devices.h  |   19 
 drivers/crypto/qat/qat_common/adf_accel_engine.c   |   42 +
 drivers/crypto/qat/qat_common/adf_cfg_strings.h    |    1 
 drivers/crypto/qat/qat_common/adf_common_drv.h     |   39 +
 drivers/crypto/qat/qat_common/adf_ctl_drv.c        |   13 
 .../qat/qat_common/adf_transport_access_macros.h   |    9 
 drivers/crypto/qat/qat_common/algif_qat.c          |  532 +++++++++++++
 drivers/crypto/qat/qat_common/algif_qat_asym.c     |  791 ++++++++++++++++++++
 drivers/crypto/qat/qat_common/icp_qat_fw_pke.h     |   99 +++
 drivers/crypto/qat/qat_common/qat_algs.c           |   22 -
 drivers/crypto/qat/qat_common/qat_bufs.h           |   65 ++
 drivers/crypto/qat/qat_common/qat_crypto.c         |  189 +++--
 drivers/crypto/qat/qat_common/qat_crypto_user.c    |  251 ++++++
 drivers/crypto/qat/qat_dh895xcc/adf_drv.c          |   86 --
 16 files changed, 1997 insertions(+), 173 deletions(-)
 create mode 100644 drivers/crypto/qat/qat_common/algif_qat.c
 create mode 100644 drivers/crypto/qat/qat_common/algif_qat_asym.c
 create mode 100644 drivers/crypto/qat/qat_common/icp_qat_fw_pke.h
 create mode 100644 drivers/crypto/qat/qat_common/qat_bufs.h
 create mode 100644 drivers/crypto/qat/qat_common/qat_crypto_user.c

-- 

             reply	other threads:[~2014-11-06 20:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06 19:59 Tadeusz Struk [this message]
2014-11-06 19:59 ` [PATCH RFC 1/4] crytpo: qat - Fix 64 bytes requests Tadeusz Struk
2014-11-06 19:59 ` [PATCH RFC 2/4] crypto: qat - Add PKE firmware Tadeusz Struk
2014-11-06 19:59 ` [PATCH RFC 3/4] crypto: qat - Add userspace instances Tadeusz Struk
2014-11-06 19:59 ` [PATCH RFC 4/4] crypto: qat - Add new algif interface for userspace Tadeusz Struk
2014-11-07  2:56   ` Herbert Xu
2014-11-07  3:43     ` Tadeusz Struk
2014-11-07  4:05       ` Herbert Xu
2014-11-07  5:24         ` Tadeusz Struk
2014-11-07  5:31           ` Herbert Xu
2014-11-07 18:53             ` Tadeusz Struk
2014-11-07 19:48             ` Tadeusz Struk
2014-11-14  1:19               ` Herbert Xu
2014-11-14  1:25                 ` Tadeusz Struk
2014-11-14  1:29                   ` Herbert Xu

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=20141106195931.13328.90501.stgit@tstruk-mobl1 \
    --to=tadeusz.struk@intel.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=qat-linux@intel.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