crypto: qat - add cnv_errors debugfs file
authorLucas Segarra Fernandez <lucas.segarra.fernandez@intel.com>
Wed, 4 Oct 2023 10:36:42 +0000 (12:36 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 Oct 2023 10:31:07 +0000 (18:31 +0800)
commitd807f0240c713bdd7c81a7e212f2feb0b5cd6725
tree1b0759205e86e35429aeb2936e13fa9d9236fc6b
parente079231676e05d6c88fba4585db1ac399a790b63
crypto: qat - add cnv_errors debugfs file

The Compress and Verify (CnV) feature check and ensures data integrity
in the compression operation. The implementation of CnV keeps a record
of the CnV errors that have occurred since the driver was loaded.

Expose CnV error stats by providing the "cnv_errors" file under
debugfs. This includes the number of errors detected up to now and
the type of the last error. The error count is provided on a per
Acceleration Engine basis and it is reset every time the driver is loaded.

Signed-off-by: Lucas Segarra Fernandez <lucas.segarra.fernandez@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Documentation/ABI/testing/debugfs-driver-qat
drivers/crypto/intel/qat/qat_common/Makefile
drivers/crypto/intel/qat/qat_common/adf_accel_devices.h
drivers/crypto/intel/qat/qat_common/adf_admin.c
drivers/crypto/intel/qat/qat_common/adf_cnv_dbgfs.c [new file with mode: 0644]
drivers/crypto/intel/qat/qat_common/adf_cnv_dbgfs.h [new file with mode: 0644]
drivers/crypto/intel/qat/qat_common/adf_common_drv.h
drivers/crypto/intel/qat/qat_common/adf_dbgfs.c
drivers/crypto/intel/qat/qat_common/icp_qat_fw_init_admin.h