mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
crypto: qat - add next neighbor to chip_info
Introduce the next neighbor (NN) capability in chip_info as NN registers are not supported in certain SKUs of QAT. Signed-off-by: Jack Xu <jack.xu@intel.com> Co-developed-by: Wojciech Ziemba <wojciech.ziemba@intel.com> Signed-off-by: Wojciech Ziemba <wojciech.ziemba@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -884,11 +884,13 @@ static int qat_hal_set_modes(struct icp_qat_fw_loader_handle *handle,
|
||||
pr_err("QAT: qat_hal_set_ae_ctx_mode error\n");
|
||||
return ret;
|
||||
}
|
||||
mode = ICP_QAT_NN_MODE(uof_image->ae_mode);
|
||||
ret = qat_hal_set_ae_nn_mode(handle, ae, mode);
|
||||
if (ret) {
|
||||
pr_err("QAT: qat_hal_set_ae_nn_mode error\n");
|
||||
return ret;
|
||||
if (handle->chip_info->nn) {
|
||||
mode = ICP_QAT_NN_MODE(uof_image->ae_mode);
|
||||
ret = qat_hal_set_ae_nn_mode(handle, ae, mode);
|
||||
if (ret) {
|
||||
pr_err("QAT: qat_hal_set_ae_nn_mode error\n");
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
mode = ICP_QAT_LOC_MEM0_MODE(uof_image->ae_mode);
|
||||
ret = qat_hal_set_ae_lm_mode(handle, ae, ICP_LMEM0, mode);
|
||||
|
||||
Reference in New Issue
Block a user