crypto: qat - add reporting of errors from ERRSOU1 for QAT GEN4
authorShashank Gupta <shashank.gupta@intel.com>
Fri, 20 Oct 2023 10:32:47 +0000 (11:32 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Oct 2023 10:04:27 +0000 (18:04 +0800)
commit4926e89d19b0631d8f5f5f292c4caf0f0de08f4f
tree266cfd2556bfa3e6595f6ea98b2da2b8dad92a9b
parentdf8c184b77a9c6d52e6c7627bbcb902cdc4d2171
crypto: qat - add reporting of errors from ERRSOU1 for QAT GEN4

Add logic to detect and report uncorrectable errors reported through
the ERRSOU1 register in QAT GEN4 devices.
This also introduces the adf_dev_err_mask structure as part of
adf_hw_device_data which will allow to provide different error masks
per device generation.

Signed-off-by: Shashank Gupta <shashank.gupta@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Tero Kristo <tero.kristo@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/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
drivers/crypto/intel/qat/qat_common/adf_gen4_ras.c
drivers/crypto/intel/qat/qat_common/adf_gen4_ras.h