public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Vimlesh Kumar <vimleshk@marvell.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: sedara@marvell.com, srasheed@marvell.com, hgani@marvell.com,
	Veerasenareddy Burru <vburru@marvell.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Satananda Burla <sburla@marvell.com>,
	Abhijit Ayarekar <aayarekar@marvell.com>
Subject: Re: [PATCH RESEND net v1 1/2] octeon_ep: avoid compiler and IQ/OQ reordering
Date: Tue, 17 Feb 2026 10:56:43 +0100	[thread overview]
Message-ID: <4e07f6b8-5225-46e0-b3ac-d02495392835@redhat.com> (raw)
In-Reply-To: <20260212121634.360252-2-vimleshk@marvell.com>

On 2/12/26 1:16 PM, Vimlesh Kumar wrote:
> Utilize READ_ONCE and WRITE_ONCE APIs for IO queue Tx/Rx
> variable access to prevent compiler optimization and reordering.

You must include into the commit message a more detalied description of
what could possibly go wrong and way. Also why wmb/rmb are not enough?

AFAICS this is the only driver requiring such annotations to cooperate
with the H/W and/or the firmware.

> Additionally, ensure IO queue OUT/IN_CNT registers are flushed
> by performing a read-back after writing.
> 
> Relocate IQ/OQ IN/OUT_CNTS updates to occur before NAPI completion,
> and replace napi_complete with napi_complete_done.

This looks like a separate change, and again requires a more complete
explaination of what could possibly go wrong and why.

/P


  reply	other threads:[~2026-02-17  9:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-12 12:16 [PATCH RESEND net v1 0/2] avoid compiler and IQ/OQ reordering Vimlesh Kumar
2026-02-12 12:16 ` [PATCH RESEND net v1 1/2] octeon_ep: " Vimlesh Kumar
2026-02-17  9:56   ` Paolo Abeni [this message]
2026-02-20  9:05     ` [EXTERNAL] " Vimlesh Kumar
2026-02-12 12:16 ` [PATCH RESEND net v1 2/2] octeon_ep_vf: " Vimlesh Kumar

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=4e07f6b8-5225-46e0-b3ac-d02495392835@redhat.com \
    --to=pabeni@redhat.com \
    --cc=aayarekar@marvell.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hgani@marvell.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=sburla@marvell.com \
    --cc=sedara@marvell.com \
    --cc=srasheed@marvell.com \
    --cc=vburru@marvell.com \
    --cc=vimleshk@marvell.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