Netdev List
 help / color / mirror / Atom feed
From: Satish Kharat <satishkh@cisco.com>
To: netdev@vger.kernel.org
Cc: netdev-bot+sashiko@kernel.org, sebaddel@cisco.com,
	aradhana@cisco.com, rfaucett@cisco.com, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com
Subject: Re: [PATCH net v6 0/2] enic: retain admin DMA resources and identify V2 VFs
Date: Mon,  9 Nov 2026 12:26:55 -0800	[thread overview]
Message-ID: <20261109202655.4140185-1-satishkh@cisco.com> (raw)
In-Reply-To: <20261107-b4-enic-dma-vf-index-net-generic-first-v1-20261010-v6-0-155d64f802e9@cisco.com>

Thanks for the review.

For patch 1, I am keeping the conservative surprise-removal behavior.
An all-ones MMIO read or PCI disconnect state establishes that the queue
register is no longer readable, but it does not provide the queue-stop
proof used by this patch for previously issued DMA. The driver therefore
releases the admin graph only after directly observing RUNNING == 0. If
surprise removal makes that observation impossible, the graph and PCI
reservation can remain retained until reboot. V7 will state this
limitation more clearly; the code is unchanged.

The reset-worker source comments in V6 already describe both outcomes:
resources are released only after both queues report stopped; otherwise
the channel is quarantined and the reset is abandoned.

The failed internal reopen followed by a repeated datapath stop is a
valid pre-existing lifecycle issue. It is separate from admin DMA
ownership, so I will address it in a separate datapath lifecycle fix
rather than add a partial fix here.

For patch 2, the code implements the deployed identity contract, but the
V6 wording incorrectly described it. Firmware vf_index and mailbox
src_vnic_id use 0xffff for the PF and zero-based values for VFs. Hardware
CQ sender metadata uses 0 for the PF and vf_index + 1 for a VF; receive
handling converts that value to the corresponding mailbox source ID. V7
will correct the cover letter and commit message.

The 0xffff PF mailbox source is intentional and matches the deployed
protocol; V7 will document the change from the previous zero-filled
field. V7 will also document that READ_ONCE() and dma_rmb() order the
common DEVCMD2 result path before device-written result fields are read.

V7 changes public text only. Its code and stable patch IDs are identical
to V6. I will post V7 shortly.

pw-bot: cr

      parent reply	other threads:[~2026-11-09 20:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-07 19:02 [PATCH net v6 0/2] enic: retain admin DMA resources and identify V2 VFs Satish Kharat
2026-11-07 19:02 ` [PATCH net v6 1/2] enic: retain admin-channel DMA until queues stop Satish Kharat
2026-11-08 20:00   ` netdev-bot+sashiko
2026-11-07 19:02 ` [PATCH net v6 2/2] enic: require DEVCMD2 and set the V2 VF mailbox source Satish Kharat
2026-11-08 20:00   ` netdev-bot+sashiko
2026-11-09 20:26 ` Satish Kharat [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=20261109202655.4140185-1-satishkh@cisco.com \
    --to=satishkh@cisco.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=aradhana@cisco.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rfaucett@cisco.com \
    --cc=sebaddel@cisco.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