Skip to content

RFC crypto: qat - Add userspace access to QAT services

Tadeusz Struk linux-crypto 1 version In review

Get series with b4
b4 am 20141106195931.13328.90501.stgit@tstruk-mobl1

Versions newest first

  1. v1 RFC Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4crytpo: qat - Fix 64 bytes requestsdrivers/crypto/qat/qat_common/adf_transport_access_macros.h+6 -30 replies
2/4crypto: qat - Add PKE firmwaredrivers/crypto/qat/qat_common/adf_accel_devices.h drivers/crypto/qat/qat_common/adf_accel_engine.c drivers/crypto/qat/qat_common/adf_ctl_drv.c +1 more+144 -40 replies
3/4crypto: qat - Add userspace instancesdrivers/crypto/qat/qat_common/adf_accel_devices.h drivers/crypto/qat/qat_common/adf_cfg_strings.h drivers/crypto/qat/qat_common/adf_common_drv.h +3 more+417 -1460 replies
4/4crypto: qat - Add new algif interface for userspacedrivers/crypto/qat/Kconfig drivers/crypto/qat/qat_common/Makefile drivers/crypto/qat/qat_common/adf_common_drv.h +5 more+1432 -2010 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/4] crypto: qat - Add userspace access to QAT services

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.

---

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