From: Paolo Abeni <pabeni@redhat.com>
To: Tony Nguyen <anthony.l.nguyen@intel.com>,
davem@davemloft.net, kuba@kernel.org, edumazet@google.com,
andrew+netdev@lunn.ch, netdev@vger.kernel.org
Cc: Aaron Ma <aaron.ma@canonical.com>,
jbrandeb@kernel.org, stable@vger.kernel.org,
Kohei Enju <kohei@enjuk.jp>,
Aleksandr Loktionov <aleksandr.loktionov@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Alexander Nowlin <alexander.nowlin@intel.com>
Subject: Re: [PATCH net 1/4] ice: wait for reset completion in ice_resume()
Date: Tue, 7 Jul 2026 10:28:12 +0200 [thread overview]
Message-ID: <0496c117-0731-4de4-9f5d-7fdacf34bd71@redhat.com> (raw)
In-Reply-To: <20260630214404.930923-2-anthony.l.nguyen@intel.com>
On 6/30/26 11:43 PM, Tony Nguyen wrote:
> From: Aaron Ma <aaron.ma@canonical.com>
>
> ice_resume() schedules an asynchronous PF reset and returns
> immediately. The reset runs later in ice_service_task(). If
> userspace tries to bring up the net device before the reset
> finishes, ice_open() fails with -EBUSY:
>
> ice_resume()
> ice_schedule_reset() # sets ICE_PFR_REQ, returns
> ...
> ice_open()
> ice_is_reset_in_progress() # ICE_PFR_REQ still set, -EBUSY
> ...
> ice_service_task()
> ice_do_reset()
> ice_rebuild() # clears ICE_PFR_REQ, too late
>
> Reproduced on E800 series NICs during suspend/resume with irdma
> enabled, where the aux device probe widens the race window.
>
> ice 0000:81:00.0: can't open net device while reset is in progress
>
> Add a best-effort wait (10s timeout, matching ice_devlink_info_get())
> for the reset to complete before returning from ice_resume(). In
> practice the reset completes in ~300ms.
Would not be better to (eventually) wait in ice_open()? Why? AFAICS that
would be also more consistent with i.e. the current wait in
ice_devlink_info_get().
Otherwise why don't consolidate all the wait at resume time and remove
the other one in ice_devlink_info_get()?
/P
next prev parent reply other threads:[~2026-07-07 8:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 21:43 [PATCH net 0/4][pull request] Intel Wired LAN Driver Updates 2026-06-30 (ice, idpf, igbvf) Tony Nguyen
2026-06-30 21:43 ` [PATCH net 1/4] ice: wait for reset completion in ice_resume() Tony Nguyen
2026-07-07 8:28 ` Paolo Abeni [this message]
2026-07-07 9:35 ` Aaron Ma
2026-06-30 21:44 ` [PATCH net 2/4] ice: fix VF interrupts cleanup Tony Nguyen
2026-06-30 21:44 ` [PATCH net 3/4] idpf: handle NULL adev in idpf_idc_vdev_mtu_event Tony Nguyen
2026-07-07 8:31 ` Paolo Abeni
2026-06-30 21:44 ` [PATCH net 4/4] igbvf: Fix leak in TX DMA error cleanup Tony Nguyen
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=0496c117-0731-4de4-9f5d-7fdacf34bd71@redhat.com \
--to=pabeni@redhat.com \
--cc=aaron.ma@canonical.com \
--cc=aleksandr.loktionov@intel.com \
--cc=alexander.nowlin@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jbrandeb@kernel.org \
--cc=kohei@enjuk.jp \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=przemyslaw.kitszel@intel.com \
--cc=stable@vger.kernel.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