Skip to contentSkip to conversation

raw/ptdma: introduce ptdma driver

PATCH New [email protected] 1 participant 1 message Apr 30, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 raw/ptdma: introduce ptdma driver

From: Selwin Sebastian <[email protected]>

Add support for PTDMA driver

---
 MAINTAINERS                              |   5 +
 doc/guides/rawdevs/ptdma.rst             | 220 +++++++++++++
 drivers/raw/meson.build                  |   1 +
 drivers/raw/ptdma/meson.build            |  16 +
 drivers/raw/ptdma/ptdma_dev.c            | 136 ++++++++
 drivers/raw/ptdma/ptdma_pmd_private.h    |  41 +++
 drivers/raw/ptdma/ptdma_rawdev.c         | 294 ++++++++++++++++++
 drivers/raw/ptdma/ptdma_rawdev_spec.h    | 379 +++++++++++++++++++++++
 drivers/raw/ptdma/ptdma_rawdev_test.c    | 273 ++++++++++++++++
 drivers/raw/ptdma/rte_ptdma_rawdev.h     | 124 ++++++++
 drivers/raw/ptdma/rte_ptdma_rawdev_fns.h | 261 ++++++++++++++++
 drivers/raw/ptdma/version.map            |   5 +
 usertools/dpdk-devbind.py                |   4 +-
 13 files changed, 1758 insertions(+), 1 deletion(-)
 create mode 100644 doc/guides/rawdevs/ptdma.rst
 create mode 100644 drivers/raw/ptdma/meson.build
 create mode 100644 drivers/raw/ptdma/ptdma_dev.c
 create mode 100644 drivers/raw/ptdma/ptdma_pmd_private.h
 create mode 100644 drivers/raw/ptdma/ptdma_rawdev.c
 create mode 100644 drivers/raw/ptdma/ptdma_rawdev_spec.h
 create mode 100644 drivers/raw/ptdma/ptdma_rawdev_test.c
 create mode 100644 drivers/raw/ptdma/rte_ptdma_rawdev.h
 create mode 100644 drivers/raw/ptdma/rte_ptdma_rawdev_fns.h
 create mode 100644 drivers/raw/ptdma/version.map
MAINTAINERS +5 -0
index 44f3d322e..96005da54 100644
@@ -1272,6 +1272,11 @@ F: doc/guides/rawdevs/ioat.rst
 F: examples/ioat/
 F: doc/guides/sample_app_ug/ioat.rst
 
+PTDMA Rawdev
+M: Selwin Sebastian <[email protected]>
+F: drivers/raw/ptdma/
+F: doc/guides/rawdevs/ptdma.rst
+
 NXP DPAA2 QDMA
 M: Nipun Gupta <[email protected]>
 F: drivers/raw/dpaa2_qdma/
doc/guides/rawdevs/ptdma.rst new file +220 -0

220 lines not on this page · raw message

drivers/raw/meson.build +1 -0
index c33a7c5f3..89a7fd253 100644
@@ -13,6 +13,7 @@ drivers = [
         'ntb',
         'octeontx2_dma',
         'octeontx2_ep',
+	'ptdma',
         'skeleton',
 ]
 std_deps = ['rawdev']
drivers/raw/ptdma/meson.build new file +16 -0
new file mode 100644
index 000000000..a3eab8dbf
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2021 Advanced Micro Devices, Inc. All rights reserved.
+
+build = dpdk_conf.has('RTE_ARCH_X86')
+reason = 'only supported on x86'
+sources = files(
+	'ptdma_rawdev.c',
+	'ptdma_dev.c',
+	'ptdma_rawdev_test.c')
+deps += ['bus_pci',
+	'bus_vdev',
+	'mbuf',
+	'rawdev']
+
+headers = files('rte_ptdma_rawdev.h',
+		'rte_ptdma_rawdev_fns.h')
drivers/raw/ptdma/ptdma_dev.c new file +136 -0

136 lines not on this page · raw message

drivers/raw/ptdma/ptdma_pmd_private.h new file +41 -0

41 lines not on this page · raw message

drivers/raw/ptdma/ptdma_rawdev.c new file +294 -0

294 lines not on this page · raw message

drivers/raw/ptdma/ptdma_rawdev_spec.h new file +379 -0

379 lines not on this page · raw message

drivers/raw/ptdma/ptdma_rawdev_test.c new file +273 -0

273 lines not on this page · raw message

drivers/raw/ptdma/rte_ptdma_rawdev.h new file +124 -0

124 lines not on this page · raw message

drivers/raw/ptdma/rte_ptdma_rawdev_fns.h new file +261 -0

261 lines not on this page · raw message

drivers/raw/ptdma/version.map new file +5 -0
new file mode 100644
index 000000000..45917242c
@@ -0,0 +1,5 @@
+DPDK_21 {
+
+       local: *;
+};
+
usertools/dpdk-devbind.py +3 -1
index 98bd1b7e4..ea70269e2 100755
@@ -59,6 +59,8 @@
                  'SVendor': None, 'SDevice': None}
 intel_ntb_icx = {'Class': '06', 'Vendor': '8086', 'Device': '347e',
                  'SVendor': None, 'SDevice': None}
+amd_ptdma   = {'Class': '10', 'Vendor': '1022', 'Device': '1498',
+                 'SVendor': None, 'SDevice': None}
 
 network_devices = [network_class, cavium_pkx, avp_vnic, ifpga_class]
 baseband_devices = [acceleration_class]
@@ -68,7 +70,7 @@
 compress_devices = [cavium_zip]
 regex_devices = [octeontx2_ree]
 misc_devices = [intel_ioat_bdw, intel_ioat_skx, intel_ioat_icx, intel_idxd_spr,
-                intel_ntb_skx, intel_ntb_icx,
+                intel_ntb_skx, intel_ntb_icx, amd_ptdma,
                 octeontx2_dma]
 
 # global dict ethernet devices present. Dictionary indexed by PCI address.
Signature · 1 line
2.25.1