2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/crypto/intel/qat/qat_common
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
..
adf_accel_devices.h crypto: qat - add heartbeat counters check 2023-07-20 22:16:23 +12:00
adf_accel_engine.c crypto: qat - make fw images name constant 2023-06-16 20:30:35 +08:00
adf_admin.c crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
adf_aer.c
adf_cfg_common.h
adf_cfg_strings.h crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
adf_cfg_user.h
adf_cfg.c
adf_cfg.h
adf_clock.c crypto: qat - add measure clock frequency 2023-07-20 22:16:11 +12:00
adf_clock.h crypto: qat - add measure clock frequency 2023-07-20 22:16:11 +12:00
adf_common_drv.h crypto: qat - Remove unused function declarations 2023-08-18 17:01:09 +08:00
adf_ctl_drv.c
adf_dbgfs.c crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
adf_dbgfs.h crypto: qat - add missing function declaration in adf_dbgfs.h 2023-06-06 12:13:19 +08:00
adf_dev_mgr.c
adf_fw_counters.c crypto: qat - add fw_counters debugfs file 2023-07-20 22:15:30 +12:00
adf_fw_counters.h crypto: qat - add fw_counters debugfs file 2023-07-20 22:15:30 +12:00
adf_gen2_config.c crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
adf_gen2_config.h
adf_gen2_dc.c
adf_gen2_dc.h
adf_gen2_hw_data.c
adf_gen2_hw_data.h crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
adf_gen2_pfvf.c
adf_gen2_pfvf.h
adf_gen4_dc.c
adf_gen4_dc.h
adf_gen4_hw_data.c
adf_gen4_hw_data.h crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
adf_gen4_pfvf.c
adf_gen4_pfvf.h
adf_gen4_pm.c crypto: qat - expose pm_idle_enabled through sysfs 2023-06-16 20:30:57 +08:00
adf_gen4_pm.h crypto: qat - change value of default idle filter 2023-07-14 18:23:14 +10:00
adf_gen4_timer.c crypto: qat - add internal timer for qat 4xxx 2023-07-20 22:16:01 +12:00
adf_gen4_timer.h crypto: qat - add internal timer for qat 4xxx 2023-07-20 22:16:01 +12:00
adf_heartbeat_dbgfs.c crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
adf_heartbeat_dbgfs.h crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
adf_heartbeat.c crypto: qat - add heartbeat counters check 2023-07-20 22:16:23 +12:00
adf_heartbeat.h crypto: qat - add heartbeat counters check 2023-07-20 22:16:23 +12:00
adf_hw_arbiter.c
adf_init.c crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
adf_isr.c crypto: qat - add internal timer for qat 4xxx 2023-07-20 22:16:01 +12:00
adf_pfvf_msg.h
adf_pfvf_pf_msg.c
adf_pfvf_pf_msg.h
adf_pfvf_pf_proto.c
adf_pfvf_pf_proto.h
adf_pfvf_utils.c
adf_pfvf_utils.h
adf_pfvf_vf_msg.c
adf_pfvf_vf_msg.h
adf_pfvf_vf_proto.c
adf_pfvf_vf_proto.h
adf_sriov.c
adf_sysfs.c crypto: qat - expose pm_idle_enabled through sysfs 2023-06-16 20:30:57 +08:00
adf_transport_access_macros.h
adf_transport_debug.c
adf_transport_internal.h
adf_transport.c
adf_transport.h
adf_vf_isr.c
icp_qat_fw_comp.h
icp_qat_fw_init_admin.h crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
icp_qat_fw_la.h
icp_qat_fw_loader_handle.h
icp_qat_fw_pke.h
icp_qat_fw.h
icp_qat_hal.h
icp_qat_hw_20_comp_defs.h
icp_qat_hw_20_comp.h
icp_qat_hw.h crypto: qat - fix crypto capability detection for 4xxx 2023-08-25 18:46:55 +08:00
icp_qat_uclo.h
Makefile crypto: qat - add heartbeat feature 2023-07-20 22:16:23 +12:00
qat_algs_send.c
qat_algs_send.h
qat_algs.c crypto: qat - move returns to default case 2023-06-16 20:30:35 +08:00
qat_asym_algs.c crypto: qat - unmap buffers before free for RSA 2023-06-16 20:30:35 +08:00
qat_bl.c
qat_bl.h
qat_comp_algs.c
qat_comp_req.h
qat_compression.c crypto: qat - use kfree_sensitive instead of memset/kfree() 2023-08-11 19:19:27 +08:00
qat_compression.h
qat_crypto.c
qat_crypto.h
qat_hal.c
qat_uclo.c crypto: qat - replace the if statement with min() 2023-07-20 22:16:23 +12:00