RFC crypto: qat - Add userspace access to QAT services
Get series with b4
b4 am 20141106195931.13328.90501.stgit@tstruk-mobl1Versions newest first
- v1 RFC Latest4 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | crytpo: qat - Fix 64 bytes requestsdrivers/ | +6 | 0 replies | |
| 2/4 | crypto: qat - Add PKE firmwaredrivers/ drivers/ drivers/ +1 more | +144 | 0 replies | |
| 3/4 | crypto: qat - Add userspace instancesdrivers/ drivers/ drivers/ +3 more | +417 | 0 replies | |
| 4/4 | crypto: qat - Add new algif interface for userspacedrivers/ drivers/ drivers/ +5 more | +1432 | 10 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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