DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: David Marchand <david.marchand@redhat.com>
Cc: dev@dpdk.org, thomas@monjalon.net, bruce.richardson@intel.com,
	Parav Pandit <parav@nvidia.com>, Xueming Li <xuemingl@nvidia.com>,
	Nipun Gupta <nipun.gupta@amd.com>,
	Nikhil Agarwal <nikhil.agarwal@amd.com>,
	Hemant Agrawal <hemant.agrawal@nxp.com>,
	Sachin Saxena <sachin.saxena@nxp.com>,
	Rosen Xu <rosen.xu@altera.com>, Chenbo Xia <chenbox@nvidia.com>,
	Tomasz Duszynski <tduszynski@marvell.com>,
	Chengwen Feng <fengchengwen@huawei.com>,
	Long Li <longli@microsoft.com>, Wei Hu <weh@microsoft.com>,
	Kevin Laatz <kevin.laatz@intel.com>
Subject: Re: [PATCH v3 14/25] bus: refactor device probe
Date: Tue, 26 May 2026 14:38:12 -0700	[thread overview]
Message-ID: <20260526143812.2bd42ad1@phoenix.local> (raw)
In-Reply-To: <20260526085257.3148516-1-david.marchand@redhat.com>

On Tue, 26 May 2026 10:52:44 +0200
David Marchand <david.marchand@redhat.com> wrote:

> Introduce a new rte_bus_probe_device_t operation with signature
> (struct rte_driver *drv, struct rte_device *dev).
> 
> Replace the existing .plug field in the struct rte_bus with .probe_device.
> 
> Update all in-tree buses to use .probe_device instead of .plug.
> Each bus probe() function now calls rte_bus_find_driver() (which uses the
> match operation added in previous commit) and passes the found driver
> to bus.probe_device(driver, device).
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Acked-by: Stephen Hemminger <stephen@networkplumber.org>

FYI - deep dive (more than normal) AI review had these minor
findings. I would ignore it.

That leaves the following items from the full series review:

    Patch 13 style nit: dsa_match in drivers/dma/idxd/idxd_bus.c has return type and brace on the same line, inconsistent with surrounding functions in the file. Info-level.
    Patch 16 (NXP scan init): fslmc process_once = 1 is moved from immediately after the early-return check to the end of the function. If any of the new in-scan init steps fails the function returns 0 early and process_once stays 0, allowing re-scan on the next call. In current EAL flows scan() is called exactly once so this is unreachable. Worth fixing for defensive consistency; not blocking.

  parent reply	other threads:[~2026-05-26 21:38 UTC|newest]

Thread overview: 135+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-29 11:44 [PATCH 00/23] Consolidate bus driver infrastructure David Marchand
2026-04-29 11:44 ` [PATCH 01/23] bus/ifpga: remove unused AFU lookup helper David Marchand
2026-04-29 11:44 ` [PATCH 02/23] crypto/octeontx: remove check on driver in remove David Marchand
2026-04-29 11:59   ` [EXTERNAL] " Anoob Joseph
2026-04-29 11:44 ` [PATCH 03/23] bus: remove device and driver checks in DMA map/unmap David Marchand
2026-04-29 11:44 ` [PATCH 04/23] drivers/bus: remove device and driver checks in unplug David Marchand
2026-04-29 11:44 ` [PATCH 05/23] drivers/bus: remove device and driver checks in plug David Marchand
2026-04-29 11:44 ` [PATCH 06/23] bus: add bus conversion macros David Marchand
2026-04-29 11:44 ` [PATCH 07/23] bus: factorize driver list David Marchand
2026-04-29 11:44 ` [PATCH 08/23] bus: factorize device list David Marchand
2026-04-29 11:44 ` [PATCH 09/23] bus: consolidate device lookup David Marchand
2026-04-29 11:44 ` [PATCH 10/23] bus: consolidate device iteration David Marchand
2026-04-29 11:44 ` [PATCH 11/23] bus: factorize driver lookup David Marchand
2026-04-29 11:44 ` [PATCH 12/23] bus: refactor device probe David Marchand
2026-04-29 11:44 ` [PATCH 13/23] bus: support multiple probe David Marchand
2026-04-29 11:44 ` [PATCH 14/23] drivers/bus: initialize NXP bus specifics in scan David Marchand
2026-04-29 11:44 ` [PATCH 15/23] bus: implement probe in EAL David Marchand
2026-04-29 11:44 ` [PATCH 16/23] bus: factorize driver reference David Marchand
2026-04-29 11:44 ` [PATCH 17/23] drivers: rely on generic driver David Marchand
2026-04-29 11:44 ` [PATCH 18/23] drivers/bus: remove bus-specific driver references David Marchand
2026-04-29 11:44 ` [PATCH 19/23] dma/idxd: remove specific bus type David Marchand
2026-04-29 11:44 ` [PATCH 20/23] drivers/bus: separate specific bus metadata for NXP drivers David Marchand
2026-04-29 11:44 ` [PATCH 21/23] drivers/bus: remove specific bus types David Marchand
2026-04-29 11:44 ` [PATCH 22/23] eventdev: rename dev field to device David Marchand
2026-04-29 11:44 ` [PATCH 23/23] bus: add class device conversion macro David Marchand
2026-05-06 15:51 ` [PATCH v2 00/23] Consolidate bus driver infrastructure David Marchand
2026-05-06 15:51   ` [PATCH v2 01/23] bus/ifpga: remove unused AFU lookup helper David Marchand
2026-05-06 15:51   ` [PATCH v2 02/23] crypto/octeontx: remove check on driver in remove David Marchand
2026-05-06 15:51   ` [PATCH v2 03/23] bus: remove device and driver checks in DMA map/unmap David Marchand
2026-05-06 15:51   ` [PATCH v2 04/23] drivers/bus: remove device and driver checks in unplug David Marchand
2026-05-06 15:51   ` [PATCH v2 05/23] drivers/bus: remove device and driver checks in plug David Marchand
2026-05-06 15:51   ` [PATCH v2 06/23] bus: add bus conversion macros David Marchand
2026-05-06 15:51   ` [PATCH v2 07/23] bus: factorize driver list David Marchand
2026-05-06 15:51   ` [PATCH v2 08/23] bus: factorize device list David Marchand
2026-05-06 15:51   ` [PATCH v2 09/23] bus: consolidate device lookup David Marchand
2026-05-06 15:51   ` [PATCH v2 10/23] bus: consolidate device iteration David Marchand
2026-05-06 15:51   ` [PATCH v2 11/23] bus: factorize driver lookup David Marchand
2026-05-06 15:51   ` [PATCH v2 12/23] bus: refactor device probe David Marchand
2026-05-06 15:51   ` [PATCH v2 13/23] bus: support multiple probe David Marchand
2026-05-06 15:51   ` [PATCH v2 14/23] drivers/bus: initialize NXP bus specifics in scan David Marchand
2026-05-06 15:51   ` [PATCH v2 15/23] bus: implement probe in EAL David Marchand
2026-05-06 15:51   ` [PATCH v2 16/23] bus: factorize driver reference David Marchand
2026-05-06 15:51   ` [PATCH v2 17/23] drivers: rely on generic driver David Marchand
2026-05-06 15:51   ` [PATCH v2 18/23] drivers/bus: remove bus-specific driver references David Marchand
2026-05-06 15:51   ` [PATCH v2 19/23] dma/idxd: remove specific bus type David Marchand
2026-05-20 17:20     ` Bruce Richardson
2026-05-21  7:46       ` David Marchand
2026-05-06 15:51   ` [PATCH v2 20/23] drivers/bus: separate specific bus metadata for NXP drivers David Marchand
2026-05-06 15:51   ` [PATCH v2 21/23] drivers/bus: remove specific bus types David Marchand
2026-05-06 15:51   ` [PATCH v2 22/23] eventdev: rename dev field to device David Marchand
2026-05-06 15:51   ` [PATCH v2 23/23] bus: add class device conversion macro David Marchand
2026-05-21  8:13   ` [PATCH v2 00/23] Consolidate bus driver infrastructure Bruce Richardson
2026-05-26  8:41 ` [PATCH v3 00/25] " David Marchand
2026-05-26  8:41   ` [PATCH v3 01/25] bus/ifpga: remove unused AFU lookup helper David Marchand
2026-05-26  8:41   ` [PATCH v3 02/25] bus/uacce: set API version during scan David Marchand
2026-05-26  8:41   ` [PATCH v3 03/25] crypto/octeontx: remove check on driver in remove David Marchand
2026-05-26  8:41   ` [PATCH v3 04/25] dma/idxd: clear device at scan David Marchand
2026-05-26  9:41     ` Bruce Richardson
2026-05-26  9:42     ` Bruce Richardson
2026-05-26  9:48       ` David Marchand
2026-05-26  9:50         ` Bruce Richardson
2026-05-26  8:41   ` [PATCH v3 05/25] bus: remove device and driver checks in DMA map/unmap David Marchand
2026-05-26  8:41   ` [PATCH v3 06/25] drivers/bus: remove device and driver checks in unplug David Marchand
2026-05-26  8:41   ` [PATCH v3 07/25] drivers/bus: remove device and driver checks in plug David Marchand
2026-05-26  8:41   ` [PATCH v3 08/25] bus: add bus conversion macros David Marchand
2026-05-26  8:41   ` [PATCH v3 09/25] bus: factorize driver list David Marchand
2026-05-26  8:41   ` [PATCH v3 10/25] bus: factorize device list David Marchand
2026-05-26  8:41   ` [PATCH v3 11/25] bus: consolidate device lookup David Marchand
2026-05-26  8:41   ` [PATCH v3 12/25] bus: consolidate device iteration David Marchand
2026-05-26  8:41   ` [PATCH v3 13/25] bus: factorize driver lookup David Marchand
2026-05-26  8:52   ` [PATCH v3 14/25] bus: refactor device probe David Marchand
2026-05-26  8:52     ` [PATCH v3 15/25] bus: support multiple probe David Marchand
2026-05-26  8:52     ` [PATCH v3 16/25] drivers/bus: initialize NXP bus specifics in scan David Marchand
2026-05-26  8:52     ` [PATCH v3 17/25] bus: implement probe in EAL David Marchand
2026-05-26  8:52     ` [PATCH v3 18/25] bus: factorize driver reference David Marchand
2026-05-26  8:52     ` [PATCH v3 19/25] drivers: rely on generic driver David Marchand
2026-05-26  8:52     ` [PATCH v3 20/25] drivers/bus: remove bus-specific driver references David Marchand
2026-05-26  8:52     ` [PATCH v3 21/25] dma/idxd: remove specific bus type David Marchand
2026-05-26  8:52     ` [PATCH v3 22/25] drivers/bus: separate specific bus metadata for NXP drivers David Marchand
2026-05-26  8:52     ` [PATCH v3 23/25] drivers/bus: remove specific bus types David Marchand
2026-05-26  8:52     ` [PATCH v3 24/25] eventdev: rename dev field to device David Marchand
2026-05-26  8:52     ` [PATCH v3 25/25] bus: add class device conversion macro David Marchand
2026-05-26 21:38     ` Stephen Hemminger [this message]
2026-05-26  9:03   ` [PATCH v3 00/25] Consolidate bus driver infrastructure David Marchand
2026-05-26 13:59     ` David Marchand
2026-05-27  7:56 ` [PATCH v4 " David Marchand
2026-05-27  7:56   ` [PATCH v4 01/25] bus/ifpga: remove unused AFU lookup helper David Marchand
2026-05-27  7:56   ` [PATCH v4 02/25] bus/uacce: set API version during scan David Marchand
2026-05-29  3:50     ` fengchengwen
2026-05-27  7:56   ` [PATCH v4 03/25] crypto/octeontx: remove check on driver in remove David Marchand
2026-05-27  7:56   ` [PATCH v4 04/25] dma/idxd: clear device at scan David Marchand
2026-05-27  7:56   ` [PATCH v4 05/25] bus: remove device and driver checks in DMA map/unmap David Marchand
2026-05-29  3:57     ` fengchengwen
2026-05-27  7:56   ` [PATCH v4 06/25] drivers/bus: remove device and driver checks in unplug David Marchand
2026-05-29  4:16     ` fengchengwen
2026-05-27  7:56   ` [PATCH v4 07/25] drivers/bus: remove device and driver checks in plug David Marchand
2026-05-27  7:56   ` [PATCH v4 08/25] bus: add bus conversion macros David Marchand
2026-05-27  7:56   ` [PATCH v4 09/25] bus: factorize driver list David Marchand
2026-05-27  7:56   ` [PATCH v4 10/25] bus: factorize device list David Marchand
2026-05-27  7:56   ` [PATCH v4 11/25] bus: consolidate device lookup David Marchand
2026-05-27  7:56   ` [PATCH v4 12/25] bus: consolidate device iteration David Marchand
2026-05-27  7:56   ` [PATCH v4 13/25] bus: factorize driver lookup David Marchand
2026-05-27  7:56   ` [PATCH v4 14/25] bus: refactor device probe David Marchand
2026-05-27  7:56   ` [PATCH v4 15/25] bus: support multiple probe David Marchand
2026-05-29  7:27     ` fengchengwen
2026-05-29 15:51       ` David Marchand
2026-05-27  7:56   ` [PATCH v4 16/25] drivers/bus: initialize NXP bus specifics in scan David Marchand
2026-05-27  7:56   ` [PATCH v4 17/25] bus: implement probe in EAL David Marchand
2026-05-27  7:56   ` [PATCH v4 18/25] bus: factorize driver reference David Marchand
2026-05-27  7:56   ` [PATCH v4 19/25] drivers: rely on generic driver David Marchand
2026-05-27  7:56   ` [PATCH v4 20/25] drivers/bus: remove bus-specific driver references David Marchand
2026-05-27  7:56   ` [PATCH v4 21/25] dma/idxd: remove specific bus type David Marchand
2026-05-27  7:56   ` [PATCH v4 22/25] drivers/bus: separate specific bus metadata for NXP drivers David Marchand
2026-05-27  7:56   ` [PATCH v4 23/25] drivers/bus: remove specific bus types David Marchand
2026-05-27  7:56   ` [PATCH v4 24/25] eventdev: rename dev field to device David Marchand
2026-05-27  7:56   ` [PATCH v4 25/25] bus: add class device conversion macro David Marchand
2026-05-29  7:47   ` [PATCH v4 00/25] Consolidate bus driver infrastructure fengchengwen
2026-05-29 11:53     ` David Marchand
2026-05-30  7:51 ` [PATCH v5 " David Marchand
2026-05-30  7:51   ` [PATCH v5 01/25] bus/ifpga: remove unused AFU lookup helper David Marchand
2026-05-30  7:51   ` [PATCH v5 02/25] bus/uacce: set API version during scan David Marchand
2026-05-30  7:51   ` [PATCH v5 03/25] crypto/octeontx: remove check on driver in remove David Marchand
2026-05-30  7:51   ` [PATCH v5 04/25] dma/idxd: clear device at scan David Marchand
2026-05-30  7:51   ` [PATCH v5 05/25] bus: remove device and driver checks in DMA map/unmap David Marchand
2026-05-30  7:51   ` [PATCH v5 06/25] drivers/bus: remove device and driver checks in unplug David Marchand
2026-05-30  7:51   ` [PATCH v5 07/25] drivers/bus: remove device and driver checks in plug David Marchand
2026-05-30  7:51   ` [PATCH v5 08/25] bus: add bus conversion macros David Marchand
2026-05-30  7:51   ` [PATCH v5 09/25] bus: factorize driver list David Marchand
2026-05-30  7:51   ` [PATCH v5 10/25] bus: factorize device list David Marchand
2026-05-30  7:51   ` [PATCH v5 11/25] bus: consolidate device lookup David Marchand
2026-05-30  7:51   ` [PATCH v5 12/25] bus: consolidate device iteration David Marchand
2026-05-30  7:51   ` [PATCH v5 13/25] bus: factorize driver lookup David Marchand
2026-05-30  7:51   ` [PATCH v5 24/25] eventdev: rename dev field to device David Marchand
2026-05-30  7:51   ` [PATCH v5 25/25] bus: add class device conversion macro David Marchand
2026-06-04 14:54   ` [PATCH v5 00/25] Consolidate bus driver infrastructure David Marchand

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=20260526143812.2bd42ad1@phoenix.local \
    --to=stephen@networkplumber.org \
    --cc=bruce.richardson@intel.com \
    --cc=chenbox@nvidia.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=fengchengwen@huawei.com \
    --cc=hemant.agrawal@nxp.com \
    --cc=kevin.laatz@intel.com \
    --cc=longli@microsoft.com \
    --cc=nikhil.agarwal@amd.com \
    --cc=nipun.gupta@amd.com \
    --cc=parav@nvidia.com \
    --cc=rosen.xu@altera.com \
    --cc=sachin.saxena@nxp.com \
    --cc=tduszynski@marvell.com \
    --cc=thomas@monjalon.net \
    --cc=weh@microsoft.com \
    --cc=xuemingl@nvidia.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