[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <22001288-1136-4929-a6dc-bddcd599f711@amd.com>
Date: Fri, 16 May 2025 14:06:24 -0700
From: "Nelson, Shannon" <shannon.nelson@....com>
To: Robert Malz <robert.malz@...onical.com>, netdev@...r.kernel.org,
intel-wired-lan@...ts.osuosl.org, anthony.l.nguyen@...el.com,
przemyslaw.kitszel@...el.com, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
sylwesterx.dziedziuch@...el.com, mateusz.palczewski@...el.com,
jacob.e.keller@...el.com
Subject: Re: [PATCH v2 2/2] i40e: retry VFLR handling if there is ongoing VF
reset
On 5/16/2025 2:47 AM, Robert Malz wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
>
>
> When a VFLR interrupt is received during a VF reset initiated from a
> different source, the VFLR may be not fully handled. This can
> leave the VF in an undefined state.
> To address this, set the I40E_VFLR_EVENT_PENDING bit again during VFLR
> handling if the reset is not yet complete. This ensures the driver
> will properly complete the VF reset in such scenarios.
>
> Fixes: 52424f974bc5 ("i40e: Fix VF hang when reset is triggered on another VF")
> Signed-off-by: Robert Malz <robert.malz@...onical.com>
Reviewed-by: Shannon Nelson <shannon.nelson@....com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
> index 2f1aa18bcfb8..6b13ac85016f 100644
> --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
> +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
> @@ -4328,7 +4328,10 @@ int i40e_vc_process_vflr_event(struct i40e_pf *pf)
> reg = rd32(hw, I40E_GLGEN_VFLRSTAT(reg_idx));
> if (reg & BIT(bit_idx))
> /* i40e_reset_vf will clear the bit in GLGEN_VFLRSTAT */
> - i40e_reset_vf(vf, true);
> + if (!i40e_reset_vf(vf, true)) {
> + /* At least one VF did not finish resetting, retry next time */
> + set_bit(__I40E_VFLR_EVENT_PENDING, pf->state);
> + }
> }
>
> return 0;
> --
> 2.34.1
>
>
Powered by blists - more mailing lists