crypto: qat - enable legacy VFs
PATCH 1/1 crypto: qat - enable legacy VFs
We need to support legacy VFs as well as VFs running on different OSes. To do so the compatibility check need needs to be relaxed. This patch moves the logic responsible for VF to PF version and compatibility checking from adfsriov.c to adf_pf2vf_msg.c, where it belongs, and changes the logic enable legacy VFs.
--- drivers/crypto/qat/qat_common/adf_common_drv.h | 1 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c | 102 +++++++++++++++++++++ drivers/crypto/qat/qat_common/adf_pf2vf_msg.h | 2 drivers/crypto/qat/qat_common/adf_sriov.c | 119 +++--------------------- 4 files changed, 118 insertions(+), 106 deletions(-)
drivers/crypto/qat/qat_common/adf_common_drv.h +1 -0
@@ -111,6 +111,7 @@ void adf_disable_pf2vf_interrupts(struct adf_accel_dev *accel_dev);int adf_iov_putmsg (struct adf_accel_dev *accel_dev,u32 msg,u8 vf_nr);void adf_pf2vf_notify_restarting (struct adf_accel_dev *accel_dev);int adf_enable_vf2pf_comms (struct adf_accel_dev *accel_dev); +void adf_vf2pf_req_hndl (struct adf_accel_vf_info *vf_info);void adf_devmgr_update_class_index (struct adf_hw_device_data *hw_data);void adf_clean_vf_map (bool );
drivers/crypto/qat/qat_common/adf_pf2vf_msg.c +102 -0
108 lines not on this page · raw message
drivers/crypto/qat/qat_common/adf_pf2vf_msg.h +2 -0
@@ -113,6 +113,8 @@#define ADF_PF2VF_VERSION_RESP_VERS_SHIFT 6#define ADF_PF2VF_VERSION_RESP_RESULT_MASK 0x0000C000#define ADF_PF2VF_VERSION_RESP_RESULT_SHIFT 14 +#define ADF_PF2VF_MINORVERSION_SHIFT 6 +#define ADF_PF2VF_MAJORVERSION_SHIFT 10#define ADF_PF2VF_VF_COMPATIBLE 1#define ADF_PF2VF_VF_INCOMPATIBLE 2#define ADF_PF2VF_VF_COMPAT_UNKNOWN 3
drivers/crypto/qat/qat_common/adf_sriov.c +13 -106
138 lines not on this page · raw message
Quoted 7 lines · Tadeusz Struk
We need to support legacy VFs as well as VFs running on different OSes. To do so the compatibility check need needs to be relaxed. This patch moves the logic responsible for VF to PF version and compatibility checking from
adfsriov.ctoadf_pf2vf_msg.c, where it belongs, and changes the logic enable legacy VFs.Signed-off-by Tadeusz Struk <[email protected]>
Applied.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt