[Intel-wired-lan] [PATCH net v1] i40e: Fix VF failed to init adminq: -53

Jankowski, Konrad0 konrad0.jankowski at intel.com
Fri Nov 26 14:10:17 UTC 2021



> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Mateusz Palczewski
> Sent: środa, 27 października 2021 14:05
> To: intel-wired-lan at lists.osuosl.org
> Cc: Palczewski, Mateusz <mateusz.palczewski at intel.com>; Zulinski,
> NorbertX <norbertx.zulinski at intel.com>
> Subject: [Intel-wired-lan] [PATCH net v1] i40e: Fix VF failed to init adminq: -53
> 
> From: Norbert Zulinski <norbertx.zulinski at intel.com>
> 
> Fix the problem with init adminq in VF reset handler.
> When the PF finished reinitialize VF resource set VFR_VFACTIVE bit in VF
> Reset Status register. It is sign for VF driver among others to shut down and
> reinitialize the admin queue. VF handle reset procedure is sampling this
> register to check every 10ms. PF driver give up to 20ms to VF reset
> procedure. For a single VF reset it is enoungh time to do it but in case request
> VF reset twice, the first VF reset can be not completely finished when PF
> requests it one more time.
> Fixed by adding additional time for VF to finish reset procedure before
> sending next VF reset request by PF.
> 
> Fixes: 5c3c48ac6bf5 ("i40e: implement virtual device interface")
> Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek at intel.com>
> Signed-off-by: Norbert Zulinski <norbertx.zulinski at intel.com>
> Signed-off-by: Mateusz Palczewski <mateusz.palczewski at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 4 ++++
> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h | 2 ++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
> b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
> index 5a488ce..ec0e52c 100644
> --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
> +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

Tested-by: Konrad Jankowski <konrad0.jankowski at intel.com>


More information about the Intel-wired-lan mailing list