From: Simon Horman <horms@kernel.org>
To: Dimitri Daskalakis <dimitri.daskalakis1@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>,
"Alexander Duyck" <alexanderduyck@fb.com>,
"Jakub Kicinski" <kuba@kernel.org>,
kernel-team@meta.com, "Andrew Lunn" <andrew+netdev@lunn.ch>,
"Eric Dumazet" <edumazet@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Willem de Bruijn" <willemb@google.com>,
"Björn Töpel" <bjorn@kernel.org>,
"Bobby Eshleman" <bobbyeshleman@meta.com>,
"Mina Almasry" <almasrymina@google.com>,
"Dimitri Daskalakis" <daskald@meta.com>,
netdev@vger.kernel.org
Subject: Re: [PATCH net 4/4] eth: fbnic: wait for both TWQs of a Tx queue to go idle
Date: Tue, 1 Dec 2026 12:41:28 +0000 [thread overview]
Message-ID: <20261201124128.GA804035@horms.kernel.org> (raw)
In-Reply-To: <20261121033215.1020506-5-dimitri.daskalakis1@gmail.com>
On Fri, Nov 20, 2026 at 07:32:15PM -0800, Dimitri Daskalakis wrote:
> From: Dimitri Daskalakis <daskald@meta.com>
>
> TWQ_IDLE, TQS_IDLE and TDE_IDLE have a bit per Tx work queue. Bit 2q
> is for TWQ0, and bit 2q+1 is for TWQ1. fbnic_wait_queue_idle() only
> tests bit q, which belongs to queue q/2. Thus, the wait covers a TWQ
> of the wrong queue (except when q = 0).
>
> Test both of the queue's TWQ bits in those registers.
>
> This bug was found by AI and verified in QEMU.
>
> Forced TWQ1 of Tx queue 3 to never read idle in QEMU, with rx 2 tx 2
> (queue 3 is the XDP Tx queue of rxq 1's vector), and bound devmem to
> rxq 1:
> before: bind succeeds
> after: bind fails with ETIMEDOUT:
> wait for queue Tx3 idle failed 0x0800(0): ffffff7f (mask: 000000c0)
>
> Fixes: da43127a8edc ("eth: fbnic: support queue ops / zero-copy Rx")
> Signed-off-by: Dimitri Daskalakis <daskald@meta.com>
Reviewed-by: Simon Horman <horms@kernel.org>
prev parent reply other threads:[~2026-12-01 12:41 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
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 [this message]
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=20261201124128.GA804035@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@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.