Netdev List
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Dimitri Daskalakis <dimitri.daskalakis1@gmail.com>
Cc: netdev-bot+sashiko@kernel.org, davem@davemloft.net,
	alexanderduyck@fb.com, kuba@kernel.org, kernel-team@meta.com,
	andrew+netdev@lunn.ch, edumazet@kernel.org, pabeni@redhat.com,
	willemb@google.com, bjorn@kernel.org, bobbyeshleman@meta.com,
	almasrymina@google.com, daskald@meta.com, netdev@vger.kernel.org
Subject: Re: [PATCH net 1/4] eth: fbnic: restart queues in place when fbnic_queue_stop() fails
Date: Tue, 1 Dec 2026 12:38:46 +0000	[thread overview]
Message-ID: <20261201123846.GX804035@horms.kernel.org> (raw)
In-Reply-To: <8e5ec49c-2610-415e-bd92-c0be9727243c@gmail.com>

On Tue, Nov 24, 2026 at 09:42:09AM -0800, Dimitri Daskalakis wrote:
> On 11/24/26 4:33 AM, netdev-bot+sashiko@kernel.org wrote:

...

> > The commit message says the HW "resumes from where it stopped". However,
> > fbnic_csr.h only defines RESET and ENABLE for these CTL registers.
> > 
> > The injected tests cover "HW is idled, but waiting for queues to idle
> > fails" and "HW never stops (rings left enabled, and wait skipped)".
> > Neither covers a CQ that was disabled while a completion was actually in
> > flight.
> > 
> > Could this behavior be confirmed against the hardware documentation and
> > described in a comment? If that is not possible, other options would be
> > to disable the CQs only after the WQs/BDQs have gone idle, or to drop
> > the partial qt->cmpl.pkt state before resuming.
> > 
> > The later patches in this series ("net: add netif_disable_subqueue()",
> > "eth: fbnic: wait for in-flight xmit in fbnic_queue_stop()" and "eth:
> > fbnic: wait for both TWQs of a Tx queue to go idle") do not seem to
> > change fbnic_nv_reenable() or the disable ordering.
> > 
> 
> The device keeps its ring state when we disable the ring. Only a reset
> clears the device state. The device will finish inflight completions,
> and when the driver restarts the queue we fire the interrupt which
> schedules the napi, so Rx/Tx does not get stuck waiting for a
> new completion.
> 
> If for some reason the device truncates an Rx packet, then it will report
> an error via a metadata descriptor. The driver will purge the pkt data
> accordingly and move on.
> 
> I don't think it's worth a re-spin to document this behavior.

Reviewed-by: Simon Horman <horms@kernel.org>


  reply	other threads:[~2026-12-01 12:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21  3:32 [PATCH net 0/4] eth: fbnic: queue stop fixes Dimitri Daskalakis
2026-11-21  3:32 ` [PATCH net 1/4] eth: fbnic: restart queues in place when fbnic_queue_stop() fails Dimitri Daskalakis
2026-11-24 12:33   ` netdev-bot+sashiko
2026-11-24 17:42     ` Dimitri Daskalakis
2026-12-01 12:38       ` Simon Horman [this message]
2026-11-21  3:32 ` [PATCH net 2/4] net: add netif_disable_subqueue() Dimitri Daskalakis
2026-11-24 12:33   ` netdev-bot+sashiko
2026-11-24 17:43     ` Dimitri Daskalakis
2026-12-01 12:40       ` Simon Horman
2026-11-21  3:32 ` [PATCH net 3/4] eth: fbnic: wait for in-flight xmit in fbnic_queue_stop() Dimitri Daskalakis
2026-12-01 12:41   ` Simon Horman
2026-11-21  3:32 ` [PATCH net 4/4] eth: fbnic: wait for both TWQs of a Tx queue to go idle Dimitri Daskalakis
2026-12-01 12:41   ` Simon Horman

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=20261201123846.GX804035@horms.kernel.org \
    --to=horms@kernel.org \
    --cc=alexanderduyck@fb.com \
    --cc=almasrymina@google.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=bjorn@kernel.org \
    --cc=bobbyeshleman@meta.com \
    --cc=daskald@meta.com \
    --cc=davem@davemloft.net \
    --cc=dimitri.daskalakis1@gmail.com \
    --cc=edumazet@kernel.org \
    --cc=kernel-team@meta.com \
    --cc=kuba@kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=willemb@google.com \
    /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