Skip to content

Rework device probing

David Marchand dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8devtools: check packet forwarding in null testdevtools/test-null.sh+7 -10 replies
2/8bus/fslmc: fix bus cleanupdrivers/bus/fslmc/fslmc_vfio.c+4 -175 replies
3/8drivers/bus: require probe function for NXP driversdrivers/bus/dpaa/dpaa_bus.c drivers/bus/fslmc/fslmc_bus.c+4 -92 replies
4/8drivers: cleanup devargs lookup in bus scandrivers/bus/auxiliary/auxiliary_common.c drivers/bus/auxiliary/bus_auxiliary_driver.h drivers/bus/cdx/cdx.c +10 more+15 -243 replies
5/8bus: factorize devargs lookupdrivers/bus/auxiliary/auxiliary_common.c drivers/bus/cdx/cdx.c drivers/bus/dpaa/dpaa_bus.c +10 more+132 -1472 replies
6/8bus: factorize device selectiondrivers/bus/auxiliary/auxiliary_common.c drivers/bus/auxiliary/linux/auxiliary.c drivers/bus/auxiliary/private.h +14 more+55 -1923 replies
7/8bus: remove per bus scan modelib/eal/common/eal_common_bus.c lib/eal/common/eal_common_devargs.c lib/eal/common/eal_private.h +1 more+53 -243 replies
8/8eal: configure initial device probingapp/test/test_eal_flags.c devtools/test-null.sh doc/guides/linux_gsg/eal_args.include.rst +4 more+101 -71 reply

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBruce RichardsonRobin JarryKevin TraynorHemant AgrawalMaxime LeroyChengwen FengStephen HemmingerThomas Monjalon
SeriesA-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b R-b R-b R-b R-b R-b R-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b A-b A-b A-b A-b T-b A-b A-b T-b A-b A-b Series-acked-by A-b A-b A-b A-b A-b A-b A-b A-b
1/8A-b
2/8A-b A-b
3/8A-b A-b A-b
4/8A-b A-b A-b
5/8A-b A-b
6/8A-b R-b
7/8
8/8A-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v1 thread

Cover letter [PATCH 0/8] Rework device probing

Applications relying on device hotplug don't work well with the default probing of all available resources.
This series proposes to change this behavior via a new EAL option.

Signature · 64 lines
David Marchand

Changes since RFC v3:
- removed per bus scan mode,

Changes since RFC v2:
- went one step further and reworked devargs lookup in buses following
  Bruce comment (see patch 4 which is cosmetic, and patch 5),
- updated device selection helper accordingly and
  changed API to be device name based,
- renamed option, added check on -b presence, updated doc in the last
  patch,

Changes since RFC v1:
- reviewed bus probe() and cleaned up NXP drivers,
- changed approach following Bruce comment,

David Marchand (8):
  devtools: check packet forwarding in null test
  bus/fslmc: fix bus cleanup
  drivers/bus: require probe function for NXP drivers
  drivers: cleanup devargs lookup in bus scan
  bus: factorize devargs lookup
  bus: factorize device selection
  bus: remove per bus scan mode
  eal: configure initial device probing

 app/test/test_eal_flags.c                    | 63 +++++++++++++++++
 devtools/test-null.sh                        | 10 ++-
 doc/guides/linux_gsg/eal_args.include.rst    | 13 ++++
 drivers/bus/auxiliary/auxiliary_common.c     | 33 +--------
 drivers/bus/auxiliary/bus_auxiliary_driver.h |  2 -
 drivers/bus/auxiliary/linux/auxiliary.c      |  2 +-
 drivers/bus/auxiliary/private.h              |  6 --
 drivers/bus/cdx/cdx.c                        | 34 +---------
 drivers/bus/dpaa/dpaa_bus.c                  | 71 +++++++++-----------
 drivers/bus/fslmc/fslmc_bus.c                | 69 ++++++++-----------
 drivers/bus/fslmc/fslmc_vfio.c               | 21 ++----
 drivers/bus/ifpga/bus_ifpga_driver.h         |  2 -
 drivers/bus/ifpga/ifpga_bus.c                |  4 +-
 drivers/bus/pci/bsd/pci.c                    |  5 +-
 drivers/bus/pci/linux/pci.c                  |  2 +-
 drivers/bus/pci/pci_common.c                 | 51 ++++----------
 drivers/bus/pci/private.h                    | 11 ---
 drivers/bus/pci/windows/pci.c                |  4 +-
 drivers/bus/platform/platform.c              | 43 +-----------
 drivers/bus/uacce/uacce.c                    | 39 +----------
 drivers/bus/vdev/vdev.c                      |  2 +-
 drivers/bus/vmbus/linux/vmbus_bus.c          |  2 +-
 drivers/bus/vmbus/private.h                  |  3 -
 drivers/bus/vmbus/vmbus_common.c             | 45 +++----------
 drivers/dma/idxd/idxd_bus.c                  | 18 +----
 drivers/raw/ifpga/ifpga_rawdev.c             |  2 +-
 lib/eal/common/eal_common_bus.c              | 62 +++++++++++++++++
 lib/eal/common/eal_common_devargs.c          |  8 +--
 lib/eal/common/eal_common_options.c          | 10 +++
 lib/eal/common/eal_internal_cfg.h            |  1 +
 lib/eal/common/eal_option_list.h             |  2 +
 lib/eal/common/eal_private.h                 | 31 +++++++++
 lib/eal/include/bus_driver.h                 | 55 ++++++++++-----
 33 files changed, 338 insertions(+), 388 deletions(-)

-- 
2.53.0