Skip to content

add ras error detection and reporting for GEN4 devices

Shashank Gupta linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9crypto: qat - add infrastructure for error reportingdrivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c drivers/crypto/intel/qat/qat_common/Makefile drivers/crypto/intel/qat/qat_common/adf_accel_devices.h +4 more+71 -00 replies
2/9crypto: qat - add reporting of correctable errors for QAT GEN4drivers/crypto/intel/qat/qat_common/adf_gen4_ras.c drivers/crypto/intel/qat/qat_common/adf_gen4_ras.h+74 -10 replies
3/9crypto: qat - add reporting of errors from ERRSOU1 for QAT GEN4drivers/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/adf_accel_devices.h +2 more+493 -00 replies
4/9crypto: qat - add handling of errors from ERRSOU2 for QAT GEN4drivers/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/adf_accel_devices.h +2 more+1055 -00 replies
5/9crypto: qat - add handling of compression related errors for QAT GEN4drivers/crypto/intel/qat/qat_common/adf_gen4_ras.c drivers/crypto/intel/qat/qat_common/adf_gen4_ras.h+151 -10 replies
6/9crypto: qat - add adf_get_aram_base() helper functiondrivers/crypto/intel/qat/qat_common/adf_common_drv.h+10 -00 replies
7/9crypto: qat - add handling of errors from ERRSOU3 for QAT GEN4drivers/crypto/intel/qat/qat_common/adf_gen4_ras.c drivers/crypto/intel/qat/qat_common/adf_gen4_ras.h+474 -00 replies
8/9crypto: qat - add error countersDocumentation/ABI/testing/sysfs-driver-qat_ras drivers/crypto/intel/qat/qat_4xxx/adf_drv.c drivers/crypto/intel/qat/qat_common/Makefile +4 more+201 -00 replies
9/9crypto: qat - count QAT GEN4 errorsdrivers/crypto/intel/qat/qat_common/adf_gen4_ras.c+166 -160 replies

Reviews trailers per patch

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

PatchGiovanni CabidduTero Kristo
1/9R-b R-b
2/9R-b R-b
3/9R-b R-b
4/9R-b R-b
5/9R-b R-b
6/9R-b R-b
7/9R-b R-b
8/9R-b R-b
9/9R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] add ras error detection and reporting for GEN4 devices

This set introduces the required infrastructure to detect, report, and count errors in the QAT drivers and enables the reporting of errors in QAT GEN4 devices. In particular, it enables the reporting of correctable, nonfatal, and fatal errors.
In addition, exposes the number of occurrences of each type of error through sysfs.

The first patch adds the common infrastructures for error reporting for all generations of QAT. Patches from 2 to 5 and 7 enable the reporting of errors flagged through the register ERRSOUx for GEN4 devices. ERRSOUx error reporting for GEN4 devices.
Patch 6 adds a helper to retrieve the base address of the aram bar.
Patch 8 introduces the ras counter interface for counting QAT-specific errors, and exposes such counters through sysfs. Patch 9 adds logic to count correctable, nonfatal, and fatal errors for GEN4 devices.

Shashank Gupta (9):
crypto: qat - add infrastructure for error reporting
crypto: qat - add reporting of correctable errors for QAT GEN4
crypto: qat - add reporting of errors from ERRSOU1 for QAT GEN4
crypto: qat - add handling of errors from ERRSOU2 for QAT GEN4
crypto: qat - add handling of compression related errors for QAT GEN4
crypto: qat - add adf_get_aram_base() helper function
crypto: qat - add handling of errors from ERRSOU3 for QAT GEN4
crypto: qat - add error counters
crypto: qat - count QAT GEN4 errors

 .../ABI/testing/sysfs-driver-qat_ras          |   42 +
 .../intel/qat/qat_4xxx/adf_4xxx_hw_data.c     |   13 +
 .../intel/qat/qat_4xxx/adf_4xxx_hw_data.h     |   17 +
 drivers/crypto/intel/qat/qat_4xxx/adf_drv.c   |    1 +
 drivers/crypto/intel/qat/qat_common/Makefile  |    2 +
 .../intel/qat/qat_common/adf_accel_devices.h  |   34 +
 .../intel/qat/qat_common/adf_common_drv.h     |   10 +
 .../intel/qat/qat_common/adf_gen4_ras.c       | 1566 +++++++++++++++++
 .../intel/qat/qat_common/adf_gen4_ras.h       |  825 +++++++++
 .../crypto/intel/qat/qat_common/adf_init.c    |    9 +
 drivers/crypto/intel/qat/qat_common/adf_isr.c |   18 +
 .../qat/qat_common/adf_sysfs_ras_counters.c   |  112 ++
 .../qat/qat_common/adf_sysfs_ras_counters.h   |   28 +
 13 files changed, 2677 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-qat_ras
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_gen4_ras.c
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_gen4_ras.h
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_sysfs_ras_counters.c
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_sysfs_ras_counters.h
Signature · 1 line
2.41.0