i40e: Fix for failed to init adminq while VF reset
authorKaren Sornek <karen.sornek@intel.com>
Thu, 2 Dec 2021 11:52:01 +0000 (12:52 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 20 Jan 2022 18:25:40 +0000 (10:25 -0800)
commit0f344c8129a5337dae50e31b817dd50a60ff238c
tree540ef49b7b9ec3614becf03465bbd09268ef96b1
parent92947844b8beee988c0ce17082b705c2f75f0742
i40e: Fix for failed to init adminq while VF reset

Fix for failed to init adminq: -53 while VF is resetting via MAC
address changing procedure.
Added sync module to avoid reading deadbeef value in reinit adminq
during software reset.
Without this patch it is possible to trigger VF reset procedure
during reinit adminq. This resulted in an incorrect reading of
value from the AQP registers and generated the -53 error.

Fixes: 5c3c48ac6bf5 ("i40e: implement virtual device interface")
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
Signed-off-by: Karen Sornek <karen.sornek@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_register.h
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h