Skip to content

rte_bus_pci

Gaetan Rivet dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v13 Latest7 patches 5 repliesIn review
  2. v125 patches 0 repliesSuperseded

Changes in v13 from the cover letter

- Removed the PCI tests. They cannot follow the bus implementation anymore, and it is an opportunity to update their original design.
- Changed the rte_pci_match function semantic to match its name.
- Made the rte_pci_match function private.
- Made the rte_bus_list private
- Made rte_eal_pci_add_device,
rte_eal_pci_insert_device, rte_eal_pci_remove_device,
functions private.

Patches in v13 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7test: remove pci testsMAINTAINERS test/test/Makefile test/test/test.h +31 more+0 -4150 replies
2/7pci: split match and probelib/librte_eal/common/eal_common_pci.c+98 -780 replies
3/7pci: remove loop over drivers in device detachlib/librte_eal/common/eal_common_pci.c+9 -360 replies
4/7pci: add bus driverlib/librte_eal/bsdapp/eal/eal_pci.c lib/librte_eal/common/eal_common_pci.c lib/librte_eal/common/eal_private.h +2 more+106 -00 replies
5/7pci: use bus driver for scan/probelib/librte_eal/bsdapp/eal/eal.c lib/librte_eal/bsdapp/eal/eal_pci.c lib/librte_eal/bsdapp/eal/rte_eal_version.map +6 more+35 -1190 replies
6/7pci: use bus driver for attach/detachlib/librte_eal/common/eal_bus.h lib/librte_eal/common/eal_common_dev.c lib/librte_eal/common/eal_common_pci.c +2 more+235 -321 reply
7/7doc: remove deprecation notice for rte_busdoc/guides/rel_notes/release_17_02.rst lib/librte_eal/bsdapp/eal/Makefile lib/librte_eal/linuxapp/eal/Makefile+3 -32 replies

Reviews trailers per patch

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

PatchFerruh YigitGaetan RivetStephen Hemminger
SeriesA-b
1/7
2/7R-b
3/7R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b
7/7

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

Read the v13 thread

Cover letter [PATCH v13 0/7] rte_bus_pci

I have rebased the work done by Shreyansh and Thomas to follow the bus abstraction introduced in v17.02 for the PCI bus implementation.
This series is only a partial version of the previous one, because some of the patches have already been integrated, and others still need rework.

Additionally, Jan Blunck sent this RFC:

[RFC] eal: use busname and devargs to attach devices

That has not been considered for this version as it had not yet spawned a discussion.

changes in v13:
- Removed the PCI tests. They cannot follow the bus implementation anymore, and it is an opportunity to update their original design.
- Changed the rte_pci_match function semantic to match its name.
- Made the rte_pci_match function private.
- Made the rte_bus_list private
- Made rte_eal_pci_add_device,
rte_eal_pci_insert_device, rte_eal_pci_remove_device,
functions private.

Additional work is needed:
- The PCI bus should be moved to the relevant bus sub-directory.
- The documentation must be updated.

But this version should allow for the PCI bus implementation to be integrated in v17.05-rc2.

Gaetan Rivet (1):
test: remove pci tests

Shreyansh Jain (6):
pci: split match and probe
pci: remove loop over drivers in device detach
pci: add bus driver
pci: use bus driver for scan/probe
pci: use bus driver for attach/detach
doc: remove deprecation notice for rte_bus

 MAINTAINERS                                        |   2 -
 doc/guides/rel_notes/release_17_02.rst             |   2 +-
 lib/librte_eal/bsdapp/eal/Makefile                 |   2 +-
 lib/librte_eal/bsdapp/eal/eal.c                    |  14 -
 lib/librte_eal/bsdapp/eal/eal_pci.c                |  34 +-
 lib/librte_eal/bsdapp/eal/rte_eal_version.map      |   2 -
 lib/librte_eal/common/eal_bus.h                    |  45 +++
 lib/librte_eal/common/eal_common_dev.c             |  57 +++-
 lib/librte_eal/common/eal_common_pci.c             | 362 +++++++++++++--------
 lib/librte_eal/common/eal_private.h                |  41 ++-
 lib/librte_eal/common/include/rte_bus.h            |  29 ++
 lib/librte_eal/common/include/rte_pci.h            |  94 ++++--
 lib/librte_eal/linuxapp/eal/Makefile               |   2 +-
 lib/librte_eal/linuxapp/eal/eal.c                  |  14 -
 lib/librte_eal/linuxapp/eal/eal_pci.c              |  38 +--
 lib/librte_eal/linuxapp/eal/rte_eal_version.map    |   2 -
 test/test/Makefile                                 |   2 -
 test/test/test.h                                   |   3 -
 test/test/test_mp_secondary.c                      |  17 -
 test/test/test_pci.c                               | 322 ------------------
 .../bus/pci/devices/0000:01:00.0/class             |   1 -
 .../bus/pci/devices/0000:01:00.0/config            | Bin 64 -> 0 bytes
 .../devices/0000:01:00.0/consistent_dma_mask_bits  |   1 -
 .../bus/pci/devices/0000:01:00.0/device            |   1 -
 .../bus/pci/devices/0000:01:00.0/dma_mask_bits     |   1 -
 .../bus/pci/devices/0000:01:00.0/enable            |   1 -
 .../bus/pci/devices/0000:01:00.0/irq               |   1 -
 .../bus/pci/devices/0000:01:00.0/modalias          |   1 -
 .../bus/pci/devices/0000:01:00.0/msi_bus           |   1 -
 .../bus/pci/devices/0000:01:00.0/numa_node         |   1 -
 .../bus/pci/devices/0000:01:00.0/resource          |  13 -
 .../bus/pci/devices/0000:01:00.0/sriov_numvfs      |   1 -
 .../bus/pci/devices/0000:01:00.0/sriov_totalvfs    |   1 -
 .../bus/pci/devices/0000:01:00.0/subsystem_device  |   1 -
 .../bus/pci/devices/0000:01:00.0/subsystem_vendor  |   1 -
 .../bus/pci/devices/0000:01:00.0/uevent            |   6 -
 .../bus/pci/devices/0000:01:00.0/vendor            |   1 -
 .../bus/pci/devices/0000:01:02.0/class             |   1 -
 .../bus/pci/devices/0000:01:02.0/device            |   1 -
 .../bus/pci/devices/0000:01:02.0/resource          |  13 -
 .../bus/pci/devices/0000:01:02.0/subsystem_device  |   1 -
 .../bus/pci/devices/0000:01:02.0/subsystem_vendor  |   1 -
 .../bus/pci/devices/0000:01:02.0/vendor            |   1 -
 .../bus/pci/devices/0000:02:ab.0/class             |   1 -
 .../bus/pci/devices/0000:02:ab.0/device            |   1 -
 .../bus/pci/devices/0000:02:ab.0/resource          |  13 -
 .../bus/pci/devices/0000:02:ab.0/subsystem_device  |   1 -
 .../bus/pci/devices/0000:02:ab.0/subsystem_vendor  |   1 -
 .../bus/pci/devices/0000:02:ab.0/vendor            |   1 -
 49 files changed, 478 insertions(+), 675 deletions(-)
 create mode 100644 lib/librte_eal/common/eal_bus.h
 delete mode 100644 test/test/test_pci.c
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/class
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/config
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/consistent_dma_mask_bits
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/device
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/dma_mask_bits
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/enable
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/irq
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/modalias
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/msi_bus
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/numa_node
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/resource
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/sriov_numvfs
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/sriov_totalvfs
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/subsystem_device
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/subsystem_vendor
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/uevent
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/vendor
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/class
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/device
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/resource
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/subsystem_device
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/subsystem_vendor
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/vendor
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/class
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/device
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/resource
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/subsystem_device
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/subsystem_vendor
 delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/vendor
Signature · 1 line
2.1.4