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 - add bank state save and restore for qat_420xx

Register the functions required to save and restore the state of a ring
bank on the qat_420xx device. Since this logic is shared across QAT
GEN4 devices, reuse the existing GEN4 implementation.

This functionality enables saving and restoring the state of a Virtual
Function (VF), which is required for supporting VM Live Migration.

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Ahsan Atta <ahsan.atta@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Giovanni Cabiddu and committed by
Herbert Xu
90ca8d35 e3d036fe

+3
+3
drivers/crypto/intel/qat/qat_420xx/adf_420xx_hw_data.c
··· 3 3 #include <linux/iopoll.h> 4 4 #include <adf_accel_devices.h> 5 5 #include <adf_admin.h> 6 + #include <adf_bank_state.h> 6 7 #include <adf_cfg.h> 7 8 #include <adf_cfg_services.h> 8 9 #include <adf_clock.h> ··· 460 459 hw_data->get_ring_to_svc_map = adf_gen4_get_ring_to_svc_map; 461 460 hw_data->disable_iov = adf_disable_sriov; 462 461 hw_data->ring_pair_reset = adf_gen4_ring_pair_reset; 462 + hw_data->bank_state_save = adf_bank_state_save; 463 + hw_data->bank_state_restore = adf_bank_state_restore; 463 464 hw_data->enable_pm = adf_gen4_enable_pm; 464 465 hw_data->handle_pm_interrupt = adf_gen4_handle_pm_interrupt; 465 466 hw_data->dev_config = adf_gen4_dev_config;