On Mon, Aug 14, 2023 at 04:52:30PM +0100, Adam Guerin wrote: > 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: 4b44d28c715d ("crypto: qat - extend crypto capability detection for 4xxx") > Signed-off-by: Adam Guerin <adam.guerin@xxxxxxxxx> > Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@xxxxxxxxx> > Reviewed-by: Fiona Trahe <fiona.trahe@xxxxxxxxx> > --- > drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c | 9 +++++++++ > drivers/crypto/intel/qat/qat_common/icp_qat_hw.h | 5 ++++- > 2 files changed, 13 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt