[dpdk-dev] [PATCH v2 0/6] NXP DPAA2: Refactor bus scan/probe code
Shreyansh Jain
shreyansh.jain at nxp.com
Fri Aug 25 12:19:48 CEST 2017
Change Log:
~~~~~~~~~~~
v2:
- Minor updates for logging (removed some logs and changed others
to make it cleaner when application starts)
Brief:
~~~~~~
-- v1 is at [3] --
In [1], during the IOVA Mapping patch set [2] discussion, it was
observed that DPAA2 scan was actually doing work meant for probing.
This patchset demarcates the roles of FSLMC bus scan and probe
functions much more clearly than before:
1. scan now only add devices into a list
unlike previously, scan doesn't initialize the devices using the VFIO
operations. Now, scan would only add the devices onto a local device
list after marking their type and filling in device name.
2. probe would now perform VFIO operations
in dpaa2, for the device added in list, an initialization needs
to be done so as to enable the devices - before actually API calls
can be served. Probe function now initializes the devices as well
as links then to the Eth/Crypto drivers.
3. Refactoring some VFIO code
This patch improves the overall code contained within DPAA2 bus
for DPAA2 VFIO layer.
[1] http://dpdk.org/ml/archives/dev/2017-July/071270.html
[2] http://dpdk.org/ml/archives/dev/2017-July/070833.html
[3] http://dpdk.org/ml/archives/dev/2017-August/073011.html
Shreyansh Jain (6):
bus/fslmc: support only single group and container
bus/fslmc: introduce new device type enumerator
crypto/dpaa2_sec: update driver type field
net/dpaa2: update driver type field
drivers: refactor DPAA2 object definition
bus/fslmc: refactor scan and probe functions
drivers/bus/fslmc/fslmc_bus.c | 180 +++++++++-
drivers/bus/fslmc/fslmc_vfio.c | 520 +++++++++++++---------------
drivers/bus/fslmc/fslmc_vfio.h | 44 +--
drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c | 6 +-
drivers/bus/fslmc/portal/dpaa2_hw_dpci.c | 8 +-
drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 8 +-
drivers/bus/fslmc/rte_bus_fslmc_version.map | 7 +
drivers/bus/fslmc/rte_fslmc.h | 63 +++-
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +-
drivers/event/dpaa2/dpaa2_hw_dpcon.c | 8 +-
drivers/net/dpaa2/dpaa2_ethdev.c | 2 +-
11 files changed, 485 insertions(+), 363 deletions(-)
--
2.9.3
More information about the dev
mailing list