Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: qat - enable reporting of error counters for GEN6 devices

Enable the reporting of error counters through sysfs for QAT GEN6
devices and update the ABI documentation.

This enables the reporting of the following:
- errors_correctable - hardware correctable errors that allow the
system to recover without data loss.
- errors_nonfatal: errors that can be isolated to specific in-flight
requests.
- errors_fatal: errors that cannot be contained to a request,
requiring a Function Level Reset (FLR) upon occurrence.

Signed-off-by: Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Suman Kumar Chakraborty and committed by
Herbert Xu
662c62bb 7f3401d0

+6 -4
+4 -4
Documentation/ABI/testing/sysfs-driver-qat_ras
··· 4 4 Contact: qat-linux@intel.com 5 5 Description: (RO) Reports the number of correctable errors detected by the device. 6 6 7 - This attribute is only available for qat_4xxx devices. 7 + This attribute is only available for qat_4xxx and qat_6xxx devices. 8 8 9 9 What: /sys/bus/pci/devices/<BDF>/qat_ras/errors_nonfatal 10 10 Date: January 2024 ··· 12 12 Contact: qat-linux@intel.com 13 13 Description: (RO) Reports the number of non fatal errors detected by the device. 14 14 15 - This attribute is only available for qat_4xxx devices. 15 + This attribute is only available for qat_4xxx and qat_6xxx devices. 16 16 17 17 What: /sys/bus/pci/devices/<BDF>/qat_ras/errors_fatal 18 18 Date: January 2024 ··· 20 20 Contact: qat-linux@intel.com 21 21 Description: (RO) Reports the number of fatal errors detected by the device. 22 22 23 - This attribute is only available for qat_4xxx devices. 23 + This attribute is only available for qat_4xxx and qat_6xxx devices. 24 24 25 25 What: /sys/bus/pci/devices/<BDF>/qat_ras/reset_error_counters 26 26 Date: January 2024 ··· 38 38 # cat /sys/bus/pci/devices/<BDF>/qat_ras/errors_fatal 39 39 0 40 40 41 - This attribute is only available for qat_4xxx devices. 41 + This attribute is only available for qat_4xxx and qat_6xxx devices.
+2
drivers/crypto/intel/qat/qat_6xxx/adf_drv.c
··· 173 173 if (ret) 174 174 return dev_err_probe(dev, ret, "Failed to save pci state.\n"); 175 175 176 + accel_dev->ras_errors.enabled = true; 177 + 176 178 adf_dbgfs_init(accel_dev); 177 179 178 180 ret = devm_add_action_or_reset(dev, adf_dbgfs_cleanup, accel_dev);