From: Bruce Richardson <bruce.richardson@intel.com>
To: Ciara Loftus <ciara.loftus@intel.com>
Cc: <dev@dpdk.org>, <stable@dpdk.org>,
Declan Doherty <declan.doherty@intel.com>
Subject: Re: [PATCH v4 3/4] net/iavf: fix watchdog clearing reset state during recovery
Date: Tue, 10 Nov 2026 10:47:47 +0000 [thread overview]
Message-ID: <avL2U5FwW1bHDiyo@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <20261106094014.28784-4-ciara.loftus@intel.com>
On Fri, Nov 06, 2026 at 09:40:11AM +0000, Ciara Loftus wrote:
> Since the watchdog is kept armed across a PF reset, it can clear the
> `vf_reset` flag while the reset event is still queued or being handled,
> as VFGEN_RSTAT toggles while the PF resets the VF. iavf_dev_close() then
> skips re-enabling PCI bus mastering, which the VF reset cleared, so
> VIRTCHNL_OP_VERSION never reaches the PF, iavf_dev_init() fails and the
> port is left returning -EIO. Each toggle also posts a further reset
> event, causing redundant recovery cycles.
>
> Count reset events from before `vf_reset` is set until they have been
> handled, and do not let the watchdog clear the flag while any are
> outstanding. Also make the `vf_reset` flag atomic, as it is accessed from
> multiple places: the watchdog alarm, the interrupt thread and the virtchnl
> polling path.
>
> Fixes: a0e296420a70 ("net/iavf: keep watchdog armed for the whole reset window")
> Cc: stable@dpdk.org
>
> Suggested-by: Declan Doherty <declan.doherty@intel.com>
> Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
> ---
> v4:
> * Remove overly defensive check after reset callback
> * Added a log on event post failure
> ---
> drivers/net/intel/iavf/iavf.h | 6 +-
> drivers/net/intel/iavf/iavf_ethdev.c | 32 ++++----
> drivers/net/intel/iavf/iavf_vchnl.c | 117 +++++++++++++++++----------
> 3 files changed, 94 insertions(+), 61 deletions(-)
>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
next prev parent reply other threads:[~2026-11-10 10:48 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 9:55 [PATCH v2 0/3] iavf reset path fixes Ciara Loftus
2026-11-04 9:55 ` [PATCH v2 1/3] net/iavf: fix crash in Tx drain on PF reset Ciara Loftus
2026-11-04 17:51 ` Bruce Richardson
2026-11-04 9:55 ` [PATCH v2 2/3] net/iavf: fix event handler leak on init failure Ciara Loftus
2026-11-04 17:52 ` Bruce Richardson
2026-11-04 9:55 ` [PATCH v2 3/3] net/iavf: fix watchdog clearing reset state during recovery Ciara Loftus
2026-11-04 18:00 ` Bruce Richardson
2026-11-05 12:32 ` [PATCH v3 0/4] iavf reset path fixes Ciara Loftus
2026-11-05 12:32 ` [PATCH v3 1/4] net/iavf: fix crash in Tx drain on PF reset Ciara Loftus
2026-11-05 12:32 ` [PATCH v3 2/4] net/iavf: fix event handler leak on init failure Ciara Loftus
2026-11-05 12:32 ` [PATCH v3 3/4] net/iavf: fix watchdog clearing reset state during recovery Ciara Loftus
2026-11-05 12:32 ` [PATCH v3 4/4] net/iavf: fix watchdog enable racing disable Ciara Loftus
2026-11-06 9:40 ` [PATCH v4 0/4] iavf reset path fixes Ciara Loftus
2026-11-06 9:40 ` [PATCH v4 1/4] net/iavf: fix crash in Tx drain on PF reset Ciara Loftus
2026-11-06 9:40 ` [PATCH v4 2/4] net/iavf: fix event handler leak on init failure Ciara Loftus
2026-11-06 9:40 ` [PATCH v4 3/4] net/iavf: fix watchdog clearing reset state during recovery Ciara Loftus
2026-11-10 10:47 ` Bruce Richardson [this message]
2026-11-06 9:40 ` [PATCH v4 4/4] net/iavf: fix watchdog enable racing disable Ciara Loftus
2026-11-10 10:48 ` Bruce Richardson
2026-11-10 10:51 ` [PATCH v4 0/4] iavf reset path fixes Bruce Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=avL2U5FwW1bHDiyo@bricha3-mobl1.ger.corp.intel.com \
--to=bruce.richardson@intel.com \
--cc=ciara.loftus@intel.com \
--cc=declan.doherty@intel.com \
--cc=dev@dpdk.org \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox