|
@@ -3910,8 +3910,10 @@ enum i40iw_status_code i40iw_config_fpm_values(struct i40iw_sc_dev *dev, u32 qp_
|
|
hmc_info->hmc_obj[I40IW_HMC_IW_APBVT_ENTRY].cnt = 1;
|
|
hmc_info->hmc_obj[I40IW_HMC_IW_APBVT_ENTRY].cnt = 1;
|
|
hmc_info->hmc_obj[I40IW_HMC_IW_MR].cnt = mrwanted;
|
|
hmc_info->hmc_obj[I40IW_HMC_IW_MR].cnt = mrwanted;
|
|
|
|
|
|
- hmc_info->hmc_obj[I40IW_HMC_IW_XF].cnt = I40IW_MAX_WQ_ENTRIES * qpwanted;
|
|
|
|
- hmc_info->hmc_obj[I40IW_HMC_IW_Q1].cnt = 4 * I40IW_MAX_IRD_SIZE * qpwanted;
|
|
|
|
|
|
+ hmc_info->hmc_obj[I40IW_HMC_IW_XF].cnt =
|
|
|
|
+ roundup_pow_of_two(I40IW_MAX_WQ_ENTRIES * qpwanted);
|
|
|
|
+ hmc_info->hmc_obj[I40IW_HMC_IW_Q1].cnt =
|
|
|
|
+ roundup_pow_of_two(2 * I40IW_MAX_IRD_SIZE * qpwanted);
|
|
hmc_info->hmc_obj[I40IW_HMC_IW_XFFL].cnt =
|
|
hmc_info->hmc_obj[I40IW_HMC_IW_XFFL].cnt =
|
|
hmc_info->hmc_obj[I40IW_HMC_IW_XF].cnt / hmc_fpm_misc->xf_block_size;
|
|
hmc_info->hmc_obj[I40IW_HMC_IW_XF].cnt / hmc_fpm_misc->xf_block_size;
|
|
hmc_info->hmc_obj[I40IW_HMC_IW_Q1FL].cnt =
|
|
hmc_info->hmc_obj[I40IW_HMC_IW_Q1FL].cnt =
|