1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/crypto/intel/qat
Adam Guerin fab9516f02 crypto: qat - fix crypto capability detection for 4xxx
When extending the capability detection logic for 4xxx devices the
SMx algorithms were accidentally missed.
Enable these SMx capabilities by default for QAT GEN4 devices.

Check for device variants where the SMx algorithms are explicitly
disabled by the GEN4 hardware. This is indicated in fusectl1
register.
Mask out SM3 and SM4 based on a bit specific to those algorithms.
Mask out SM2 if the PKE slice is not present.

Fixes: 4b44d28c71 ("crypto: qat - extend crypto capability detection for 4xxx")
Signed-off-by: Adam Guerin <adam.guerin@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Fiona Trahe <fiona.trahe@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-08-25 18:46:55 +08:00
..
qat_4xxx crypto: qat - fix crypto capability detection for 4xxx 2023-08-25 18:46:55 +08:00
qat_c3xxx crypto: qat - add heartbeat counters check 2023-07-20 22:16:23 +12:00
qat_c3xxxvf crypto: qat - move dbgfs init to separate file 2023-06-02 18:21:32 +08:00
qat_c62x crypto: qat - add heartbeat counters check 2023-07-20 22:16:23 +12:00
qat_c62xvf crypto: qat - move dbgfs init to separate file 2023-06-02 18:21:32 +08:00
qat_common crypto: qat - fix crypto capability detection for 4xxx 2023-08-25 18:46:55 +08:00
qat_dh895xcc crypto: qat - add heartbeat counters check 2023-07-20 22:16:23 +12:00
qat_dh895xccvf crypto: qat - move dbgfs init to separate file 2023-06-02 18:21:32 +08:00
Kconfig
Makefile