From: Larysa Zaremba <larysa.zaremba@intel.com>
To: Tony Nguyen <anthony.l.nguyen@intel.com>
Cc: <davem@davemloft.net>, <kuba@kernel.org>, <pabeni@redhat.com>,
<edumazet@google.com>, <andrew+netdev@lunn.ch>,
<netdev@vger.kernel.org>, <przemyslaw.kitszel@intel.com>,
<aleksander.lobakin@intel.com>, <sridhar.samudrala@intel.com>,
<anjali.singhai@intel.com>, <michal.swiatkowski@linux.intel.com>,
<maciej.fijalkowski@intel.com>, <emil.s.tantilov@intel.com>,
<madhu.chittim@intel.com>, <joshua.a.hay@intel.com>,
<jacob.e.keller@intel.com>, <jayaprakash.shanmugam@intel.com>,
<jiri@resnulli.us>, <horms@kernel.org>, <corbet@lwn.net>,
<richardcochran@gmail.com>, <linux-doc@vger.kernel.org>,
Aleksandr Loktionov <aleksandr.loktionov@intel.com>,
Bharath R <Bharath.r@intel.com>
Subject: Re: [PATCH net-next v4 13/15] ixd: add reset checks and initialize the mailbox
Date: Mon, 13 Jul 2026 15:34:59 +0200 [thread overview]
Message-ID: <alTpgyxqacbNHYFD@soc-5CG4396X81.clients.intel.com> (raw)
In-Reply-To: <20260710215313.1475803-14-anthony.l.nguyen@intel.com>
Below is an answer to concerns from Sashiko:
> --- Patch [13]: [PATCH net-next v4 13/15] ixd: add reset checks and initialize the mailbox ---
> commit 7fa1c35636d0bae10b336e706045a6dfd122058d
> Author: Larysa Zaremba <larysa.zaremba@intel.com>
> ixd: add reset checks and initialize the mailbox
> This commit adds hardware reset triggering and mailbox initialization
> for the ixd driver, including a delayed work task to verify the reset
> completion during probe.
> [ ... ]
> > diff --git a/drivers/net/ethernet/intel/ixd/ixd_main.c b/drivers/net/ethernet/intel/ixd/ixd_main.c
> > index 75ee53152e614..35d0ff5c8d983 100644
> > --- a/drivers/net/ethernet/intel/ixd/ixd_main.c
> > +++ b/drivers/net/ethernet/intel/ixd/ixd_main.c
> [ ... ]
> > @@ -16,7 +17,15 @@ static void ixd_remove(struct pci_dev *pdev)
> > {
> > struct ixd_adapter *adapter = pci_get_drvdata(pdev);
> >
> > - libie_pci_unmap_all_mmio_regions(&adapter->hw);
> > + /* Do not mix removal with (re)initialization */
> > + cancel_delayed_work_sync(&adapter->init_task.init_work);
> > + /* Leave the device clean on exit */
> > + if (adapter->xnm)
> > + libie_ctlq_xn_shutdown(adapter->xnm);
> > + ixd_trigger_reset(adapter);
> > + ixd_deinit_dflt_mbx(adapter);
> Could this cause memory corruption or IOMMU faults?
> In ixd_remove(), ixd_trigger_reset() issues a reset but does not wait
> for it to complete. Immediately after, ixd_deinit_dflt_mbx() is called,
> which unmaps and frees the DMA rings.
> If the hardware is still actively bus mastering before the reset fully
> takes effect, could it perform DMA into memory that has already been
> unmapped? Does this path need to wait for the reset to complete using
> ixd_check_reset_complete() before freeing the mailbox resources?
>
No, ixd_check_reset_complete() is not needed here, triggering is enough
>
> > +
> > + libie_pci_unmap_all_mmio_regions(&adapter->cp_ctx.mmio_info);
> > }
>
next prev parent reply other threads:[~2026-07-13 13:35 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-10 21:52 [PATCH net-next v4 00/15][pull request] Introduce iXD driver Tony Nguyen
2026-07-10 21:52 ` [PATCH net-next v4 01/15] virtchnl: move virtchnl and virtchnl2 headers to 'include/linux/net/intel' Tony Nguyen
2026-07-10 21:52 ` [PATCH net-next v4 02/15] libie: add PCI device initialization helpers to libie Tony Nguyen
2026-07-13 14:55 ` Larysa Zaremba
2026-07-10 21:53 ` [PATCH net-next v4 03/15] libeth: allow to create fill queues without NAPI Tony Nguyen
2026-07-10 21:53 ` [PATCH net-next v4 04/15] libie: add control queue support Tony Nguyen
2026-07-13 17:10 ` Larysa Zaremba
2026-07-10 21:53 ` [PATCH net-next v4 05/15] libie: add bookkeeping support for control queue messages Tony Nguyen
2026-07-13 17:42 ` Larysa Zaremba
2026-07-10 21:53 ` [PATCH net-next v4 06/15] idpf: remove 'vport_params_reqd' field Tony Nguyen
2026-07-10 21:53 ` [PATCH net-next v4 07/15] idpf: remove unused code for getting RSS info from device Tony Nguyen
2026-07-10 21:53 ` [PATCH net-next v4 08/15] idpf: refactor idpf to use libie_pci APIs Tony Nguyen
2026-07-13 17:46 ` Larysa Zaremba
2026-07-10 21:53 ` [PATCH net-next v4 09/15] idpf: refactor idpf to use libie control queues Tony Nguyen
2026-07-13 17:55 ` Larysa Zaremba
2026-07-10 21:53 ` [PATCH net-next v4 10/15] idpf: make mbx_task queueing and cancelling more consistent Tony Nguyen
2026-07-10 21:53 ` [PATCH net-next v4 11/15] idpf: print a debug message and bail in case of non-event ctlq message Tony Nguyen
2026-07-10 21:53 ` [PATCH net-next v4 12/15] ixd: add basic driver framework for Intel(R) Control Plane Function Tony Nguyen
2026-07-10 21:53 ` [PATCH net-next v4 13/15] ixd: add reset checks and initialize the mailbox Tony Nguyen
2026-07-13 13:34 ` Larysa Zaremba [this message]
2026-07-10 21:53 ` [PATCH net-next v4 14/15] ixd: add the core initialization Tony Nguyen
2026-07-13 18:13 ` Larysa Zaremba
2026-07-10 21:53 ` [PATCH net-next v4 15/15] ixd: add devlink support Tony Nguyen
2026-07-13 13:29 ` Larysa Zaremba
2026-07-13 18:29 ` [PATCH net-next v4 00/15][pull request] Introduce iXD driver Larysa Zaremba
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=alTpgyxqacbNHYFD@soc-5CG4396X81.clients.intel.com \
--to=larysa.zaremba@intel.com \
--cc=Bharath.r@intel.com \
--cc=aleksander.lobakin@intel.com \
--cc=aleksandr.loktionov@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=anjali.singhai@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=emil.s.tantilov@intel.com \
--cc=horms@kernel.org \
--cc=jacob.e.keller@intel.com \
--cc=jayaprakash.shanmugam@intel.com \
--cc=jiri@resnulli.us \
--cc=joshua.a.hay@intel.com \
--cc=kuba@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=maciej.fijalkowski@intel.com \
--cc=madhu.chittim@intel.com \
--cc=michal.swiatkowski@linux.intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=richardcochran@gmail.com \
--cc=sridhar.samudrala@intel.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