crypto: qat - add fw_counters debugfs file
authorLucas Segarra Fernandez <lucas.segarra.fernandez@intel.com>
Fri, 30 Jun 2023 15:32:07 +0000 (17:32 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 20 Jul 2023 10:15:30 +0000 (22:15 +1200)
commit865b50fe6ea85b41354967df03c317eb1627cc13
tree8eb79bd5464cba681357ba808604f118981234ba
parent20508b751b4bef2cda999fe0268071b0fc335ac7
crypto: qat - add fw_counters debugfs file

Expose FW counters statistics by providing the "fw_counters" file
under debugfs. Currently the statistics include the number of
requests sent to the FW and the number of responses received
from the FW for each Acceleration Engine, for all the QAT product
line.

This patch is based on earlier work done by Marco Chiappero.

Co-developed-by: Adam Guerin <adam.guerin@intel.com>
Signed-off-by: Adam Guerin <adam.guerin@intel.com>
Signed-off-by: Lucas Segarra Fernandez <lucas.segarra.fernandez@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Documentation/ABI/testing/debugfs-driver-qat [new file with mode: 0644]
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_common_drv.h
drivers/crypto/intel/qat/qat_common/adf_dbgfs.c
drivers/crypto/intel/qat/qat_common/adf_fw_counters.c [new file with mode: 0644]
drivers/crypto/intel/qat/qat_common/adf_fw_counters.h [new file with mode: 0644]