Skip to content

crypto: qat - add rate limiting feature to qat_4xxx

Damian Muszynski linux-crypto 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 1 replyIn review
  2. v111 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Removed unnecessary check
- Simplified a few error paths
- Reduced a few local variables
- Fixed repeated error message
- Moved mutex lock above sla_id existence check.
- Added Reviewed-by tag from Tero Kristo received from an internal review of the set.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11crypto: qat - refactor fw config related functionsdrivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c+28 -410 replies
2/11crypto: qat - use masks for AE groupsdrivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c+25 -210 replies
3/11crypto: qat - fix ring to service map for QAT GEN4drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c drivers/crypto/intel/qat/qat_common/adf_accel_devices.h drivers/crypto/intel/qat/qat_common/adf_init.c+58 -00 replies
4/11crypto: qat - move admin apidrivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c drivers/crypto/intel/qat/qat_c3xxx/adf_c3xxx_hw_data.c drivers/crypto/intel/qat/qat_c62x/adf_c62x_hw_data.c +12 more+32 -100 replies
5/11units: Add BYTES_PER_*BITinclude/linux/units.h+4 -00 replies
6/11crypto: qat - add bits.h to icp_qat_hw.hdrivers/crypto/intel/qat/qat_common/icp_qat_hw.h+2 -00 replies
7/11crypto: qat - add retrieval of fw capabilitiesdrivers/crypto/intel/qat/qat_common/adf_accel_devices.h drivers/crypto/intel/qat/qat_common/adf_admin.c drivers/crypto/intel/qat/qat_common/icp_qat_fw_init_admin.h+27 -00 replies
8/11crypto: qat - add rate limiting feature to qat_4xxxdrivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.h drivers/crypto/intel/qat/qat_common/Makefile +10 more+1590 -10 replies
9/11crypto: qat - add rate limiting sysfs interfaceDocumentation/ABI/testing/sysfs-driver-qat_rl drivers/crypto/intel/qat/qat_common/Makefile drivers/crypto/intel/qat/qat_common/adf_rl.c +3 more+707 -00 replies
10/11crypto: qat - add rp2svc sysfs attributeDocumentation/ABI/testing/sysfs-driver-qat drivers/crypto/intel/qat/qat_common/adf_accel_devices.h drivers/crypto/intel/qat/qat_common/adf_sysfs.c+104 -00 replies
11/11crypto: qat - add num_rps sysfs attributeDocumentation/ABI/testing/sysfs-driver-qat drivers/crypto/intel/qat/qat_common/adf_sysfs.c+28 -00 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchDamian MuszynskiTero KristoGiovanni Cabiddu
1/11R-b R-b
2/11R-b R-b
3/11R-b R-b
4/11R-b R-b
5/11R-b R-b
6/11R-b R-b
7/11R-b R-b
8/11R-b R-b
9/11R-b R-b R-b
10/11R-b R-b R-b
11/11R-b R-b R-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 v2 thread

Cover letter [PATCH v2 00/11] crypto: qat - add rate limiting feature to qat_4xxx

This set enables hardware rate limiting capabilities on QAT 4xxx accelerators. Rate Limiting allows to control the rate of the requests that can be submitted to a ring pair (RP). This allows sharing a QAT device among multiple users while ensuring guaranteed throughput.

The driver provides a mechanism that allows users to set policies, through a sysfs interface, that are then programmed to the device. The device is then enforcing the policies.

The first six commits are refactoring and additions in preparation for
the feature.
Patch #6 introduces a mechanism for retrieving firmware feature
capabilities.
Patch #8 implements the core of the rate limiting feature by providing
mechanisms to set rate limiting policies (aka SLAs).
The final three commits add the required sysfs interface that allow
users to configure SLAs.

Changes since v1:
- Removed unnecessary check
- Simplified a few error paths
- Reduced a few local variables
- Fixed repeated error message
- Moved mutex lock above sla_id existence check.
- Added Reviewed-by tag from Tero Kristo received from an internal review of the set.

Ciunas Bennett (3):
crypto: qat - add rate limiting sysfs interface
crypto: qat - add rp2svc sysfs attribute
crypto: qat - add num_rps sysfs attribute

Damian Muszynski (4):
units: Add BYTES_PER_*BIT
crypto: qat - add bits.h to icp_qat_hw.h
crypto: qat - add retrieval of fw capabilities
crypto: qat - add rate limiting feature to qat_4xxx

Giovanni Cabiddu (4):
crypto: qat - refactor fw config related functions
crypto: qat - use masks for AE groups
crypto: qat - fix ring to service map for QAT GEN4
crypto: qat - move admin api

 Documentation/ABI/testing/sysfs-driver-qat    |   46 +
 Documentation/ABI/testing/sysfs-driver-qat_rl |  227 ++++
 .../intel/qat/qat_4xxx/adf_4xxx_hw_data.c     |  190 ++-
 .../intel/qat/qat_4xxx/adf_4xxx_hw_data.h     |   13 +-
 .../intel/qat/qat_c3xxx/adf_c3xxx_hw_data.c   |    1 +
 .../intel/qat/qat_c62x/adf_c62x_hw_data.c     |    1 +
 drivers/crypto/intel/qat/qat_common/Makefile  |    3 +
 .../intel/qat/qat_common/adf_accel_devices.h  |   11 +
 .../crypto/intel/qat/qat_common/adf_admin.c   |   71 +
 .../crypto/intel/qat/qat_common/adf_admin.h   |   27 +
 .../crypto/intel/qat/qat_common/adf_clock.c   |    1 +
 .../intel/qat/qat_common/adf_cnv_dbgfs.c      |    1 +
 .../intel/qat/qat_common/adf_common_drv.h     |   10 -
 .../intel/qat/qat_common/adf_fw_counters.c    |    1 +
 .../intel/qat/qat_common/adf_gen4_hw_data.h   |    7 +
 .../crypto/intel/qat/qat_common/adf_gen4_pm.c |    1 +
 .../qat/qat_common/adf_gen4_pm_debugfs.c      |    1 +
 .../intel/qat/qat_common/adf_gen4_timer.c     |    1 +
 .../intel/qat/qat_common/adf_heartbeat.c      |    1 +
 .../qat/qat_common/adf_heartbeat_dbgfs.c      |    1 +
 .../crypto/intel/qat/qat_common/adf_init.c    |   13 +
 drivers/crypto/intel/qat/qat_common/adf_rl.c  | 1169 +++++++++++++++++
 drivers/crypto/intel/qat/qat_common/adf_rl.h  |  176 +++
 .../intel/qat/qat_common/adf_rl_admin.c       |   97 ++
 .../intel/qat/qat_common/adf_rl_admin.h       |   18 +
 .../crypto/intel/qat/qat_common/adf_sysfs.c   |   80 ++
 .../intel/qat/qat_common/adf_sysfs_rl.c       |  451 +++++++
 .../intel/qat/qat_common/adf_sysfs_rl.h       |   11 +
 .../qat/qat_common/icp_qat_fw_init_admin.h    |   41 +
 .../crypto/intel/qat/qat_common/icp_qat_hw.h  |    2 +
 .../qat/qat_dh895xcc/adf_dh895xcc_hw_data.c   |    1 +
 include/linux/units.h                         |    4 +
 32 files changed, 2605 insertions(+), 73 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-qat_rl
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_admin.h
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_rl.c
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_rl.h
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_rl_admin.c
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_rl_admin.h
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_sysfs_rl.c
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_sysfs_rl.h

base-commit: 1bb03421eab67940b6509fe0869ff43df5fbe3e6

Signature · 1 line
2.34.1