The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Re: [Intel-wired-lan] [PATCH v4] ice: wait for reset completion in ice_resume()
       [not found] <20260429034849.1686650-1-aaron.ma@canonical.com>
@ 2026-05-06 22:43 ` Jacob Keller
  0 siblings, 0 replies; only message in thread
From: Jacob Keller @ 2026-05-06 22:43 UTC (permalink / raw)
  To: Aaron Ma, Tony Nguyen, Przemek Kitszel, Andrew Lunn,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	netdev, linux-kernel
  Cc: Akeem G Abodunrin, Jesse Brandeburg, intel-wired-lan,
	aleksandr.loktionov, kohei, Paul Menzel

On 4/28/2026 8:48 PM, Aaron Ma via Intel-wired-lan wrote:
> 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.
> 
> Fixes: 769c500dcc1e ("ice: Add advanced power mgmt for WoL")
> Cc: stable@vger.kernel.org
> Reviewed-by: Kohei Enju <kohei@enjuk.jp>
> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> Signed-off-by: Aaron Ma <aaron.ma@canonical.com>

This doesn't specify a tree target, but given the cc to stable and the
fixes tag, I think this belongs on net, so I'll queue it for the iwl-net
dev-queue.

Thanks,
Jake

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-06 22:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20260429034849.1686650-1-aaron.ma@canonical.com>
2026-05-06 22:43 ` [Intel-wired-lan] [PATCH v4] ice: wait for reset completion in ice_resume() Jacob Keller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox