Netdev List
 help / color / mirror / Atom feed
From: Satish Kharat <satishkh@cisco.com>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.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 v4 1/2] enic: retain admin-channel DMA until queues stop
Date: Tue,  3 Nov 2026 04:27:31 -0800	[thread overview]
Message-ID: <20261103122731.3607002-1-satishkh@cisco.com> (raw)
In-Reply-To: <179364652343.3131.12378421260627827008@kernel.org>

Thanks for the review.

I agree that mbox_tx_poisoned does not represent an independent state in
this series. The field came from the follow-on SR-IOV mailbox-recovery
work, where a posted-send timeout must be distinguished while the admin
channel is still LIVE. In this two-patch fixes series, unresolved queue
ownership is already represented by admin_chan_state being QUARANTINED,
while mbox_send_disabled blocks new sends. V5 therefore removes
mbox_tx_poisoned. I will introduce that state with the follow-on recovery
patch that actually needs and consumes it.

I also agree that probe failure should make a final queue check after
ordinary teardown has had an opportunity to stop the queues. V5 runs
generic teardown and CMD_CLOSE before the final direct admin WQ/RQ
check in both probe unwind and removal. It releases the admin graph if
both queues have stopped and otherwise retains it.

I do not plan to treat an all-ones MMIO read or a recoverable PCI
channel-offline state as proof that DMA has stopped. Those observations
show that the queue registers are inaccessible, but do not establish
completion of previously issued DMA. V5 keeps the conservative
retention policy and documents it explicitly.

The failed-reset/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 independently with fault injection at the
enic_open() failure points followed by administrative close and device
removal.

I have made these changes in V5 and will post the revision shortly.

pw-bot: cr

  reply	other threads:[~2026-11-03 12:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-01 19:07 [PATCH net v4 0/2] enic: retain admin DMA resources and identify V2 VFs Satish Kharat
2026-11-01 19:07 ` [PATCH net v4 1/2] enic: retain admin-channel DMA until queues stop Satish Kharat
2026-11-02 19:08   ` netdev-bot+sashiko
2026-11-03 12:27     ` Satish Kharat [this message]
2026-11-01 19:07 ` [PATCH net v4 2/2] enic: require DEVCMD2 and set the V2 VF mailbox source Satish Kharat

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=20261103122731.3607002-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