Skip to contentSkip to conversation

raw/ptdma: introduce ptdma driver

RFC PATCH In review Selwin Sebastian 4 participants 7 messages Sep 6, 2021 – Jun 28, 2023 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

RFC PATCH v2 1/1 raw/ptdma: introduce ptdma driver

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            | 135 +++++++++
 drivers/raw/ptdma/ptdma_pmd_private.h    |  41 +++
 drivers/raw/ptdma/ptdma_rawdev.c         | 266 +++++++++++++++++
 drivers/raw/ptdma/ptdma_rawdev_spec.h    | 362 +++++++++++++++++++++++
 drivers/raw/ptdma/ptdma_rawdev_test.c    | 272 +++++++++++++++++
 drivers/raw/ptdma/rte_ptdma_rawdev.h     | 124 ++++++++
 drivers/raw/ptdma/rte_ptdma_rawdev_fns.h | 298 +++++++++++++++++++
 drivers/raw/ptdma/version.map            |   5 +
 usertools/dpdk-devbind.py                |   4 +-
 13 files changed, 1748 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 266f5ac1da..f4afd1a072 100644
@@ -1305,6 +1305,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 b51536f8a7..e896745d9c 100644
@@ -14,6 +14,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 0000000000..a3eab8dbfd
@@ -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 +135 -0

135 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 +266 -0

266 lines not on this page · raw message

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

362 lines not on this page · raw message

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

272 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 +298 -0

298 lines not on this page · raw message

drivers/raw/ptdma/version.map new file +5 -0
new file mode 100644
index 0000000000..45917242ca
@@ -0,0 +1,5 @@
+DPDK_21 {
+
+       local: *;
+};
+
usertools/dpdk-devbind.py +3 -1
index 74d16e4c4b..30c11e92ba 100755
@@ -65,6 +65,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]
@@ -74,7 +76,7 @@
 compress_devices = [cavium_zip]
 regex_devices = [octeontx2_ree]
 misc_devices = [cnxk_bphy, cnxk_bphy_cgx, 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
#1 lore raw
Quoted 2 lines · Selwin Sebastian

Add support for PTDMA driver

- This description is rather short.

Can this new driver be implemented as a dmadev?
See (current revision):
https://patchwork.dpdk.org/project/dpdk/list/?series=18677&state=%2A&archive=both

- In any case, quick comments on this patch:
Please update release notes.
vfio-pci should be preferred over igb_uio.
Please check indent in meson.
ABI version is incorrect in version.map.
RTE_LOG_REGISTER_DEFAULT should be preferred.
The patch is monolithic, could it be split per functionnality to ease review?

Copy relevant maintainers and/or (sub-)tree maintainers to make them aware of this work, and get those patches reviewed. Please submit new revisions of patchsets with increased revision number in title + changelog that helps track what changed between revisions.

Some of those points are described in:
https://doc.dpdk.org/guides/contributing/patches.html

Thanks.

Signature · 1 line
David Marchand
#2 lore raw

Any update please?

06/09/2021 19:17, David Marchand:

Quoted 31 lines
Quoted 2 lines · Selwin Sebastian

Add support for PTDMA driver

- This description is rather short.

Can this new driver be implemented as a dmadev?
See (current revision):
https://patchwork.dpdk.org/project/dpdk/list/?series=18677&state=%2A&archive=both

- In any case, quick comments on this patch:
Please update release notes.
vfio-pci should be preferred over igb_uio.
Please check indent in meson.
ABI version is incorrect in version.map.
RTE_LOG_REGISTER_DEFAULT should be preferred.
The patch is monolithic, could it be split per functionnality to ease review?

Copy relevant maintainers and/or (sub-)tree maintainers to make them aware of this work, and get those patches reviewed. Please submit new revisions of patchsets with increased revision number in title + changelog that helps track what changed between revisions.

Some of those points are described in:
https://doc.dpdk.org/guides/contributing/patches.html

Thanks.

#3 lore raw

[AMD Official Use Only]

Hi,
I am working on making ptdma driver as a dmadev. Will submit new patch for review.

Thanks and Regards
Selwin Sebastian

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, October 27, 2021 8:29 PM
To: Sebastian, Selwin <[email protected]>
Cc: [email protected]; David Marchand <[email protected]>
Subject: Re: [dpdk-dev] [RFC PATCH v2] raw/ptdma: introduce ptdma driver

[CAUTION: External Email]

Any update please?

06/09/2021 19:17, David Marchand:

Quoted 43 lines
Quoted 2 lines · Selwin Sebastian

Add support for PTDMA driver

- This description is rather short.

Can this new driver be implemented as a dmadev?
See (current revision):
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatc
hwork.dpdk.org%2Fproject%2Fdpdk%2Flist%2F%3Fseries%3D18677%26state%3D% 252A%26archive%3Dboth&amp;data=04%7C01%7Cselwin.sebastian%40amd.com%7C 5ed560abb6e442d8b53108d9995a57ad%7C3dd8961fe4884e608e11a82d994e183d%7C 0%7C0%7C637709435600817110%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDA iLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=a%2FX cY1WBb1zzuAxtODkvYdg0jHFBue7HBULapymhrhk%3D&amp;reserved=0

- In any case, quick comments on this patch:
Please update release notes.
vfio-pci should be preferred over igb_uio.
Please check indent in meson.
ABI version is incorrect in version.map.
RTE_LOG_REGISTER_DEFAULT should be preferred.
The patch is monolithic, could it be split per functionnality to ease review?

Copy relevant maintainers and/or (sub-)tree maintainers to make them aware of this work, and get those patches reviewed. Please submit new revisions of patchsets with increased revision number in title + changelog that helps track what changed between revisions.

Some of those points are described in:
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoc.
dpdk.org%2Fguides%2Fcontributing%2Fpatches.html&amp;data=04%7C01%7Csel win.sebastian%40amd.com%7C5ed560abb6e442d8b53108d9995a57ad%7C3dd8961fe 4884e608e11a82d994e183d%7C0%7C0%7C637709435600817110%7CUnknown%7CTWFpb GZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0 %3D%7C1000&amp;sdata=8TIG%2B8uXgz2DIwTHt69YKklYc3%2By3UdxGJ4deKG19iw%3 D&amp;reserved=0

Thanks.

#4 lore raw

28/10/2021 16:54, Sebastian, Selwin:

Quoted 1 line

I am working on making ptdma driver as a dmadev. Will submit new patch for review.

Any update?

#5 lore raw

[AMD Official Use Only - General]

We were having issues with iommu. Now we will try to push the patch without iommu enabled. Will split patch into smaller ones and submit soon.

Thanks,
Selwin

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, June 15, 2022 8:06 PM
To: Sebastian, Selwin <[email protected]>
Cc: [email protected]; David Marchand <[email protected]>; Varghese, Vipin <[email protected]>; Tummala, Sivaprasad <[email protected]>
Subject: Re: [dpdk-dev] [RFC PATCH v2] raw/ptdma: introduce ptdma driver

[CAUTION: External Email]

28/10/2021 16:54, Sebastian, Selwin:

Quoted 1 line

I am working on making ptdma driver as a dmadev. Will submit new patch for review.

Any update?

#6 lore raw
Quoted 17 lines · Selwin

[AMD Official Use Only - General]

[AMD Official Use Only - General]

We were having issues with iommu. Now we will try to push the patch without iommu enabled. Will split patch into smaller ones and submit soon.

Thanks,
Selwin

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, June 15, 2022 8:06 PM
To: Sebastian, Selwin <[email protected]>
Cc: [email protected]; David Marchand <[email protected]>; Varghese, Vipin <[email protected]>; Tummala, Sivaprasad <[email protected]>
Subject: Re: [dpdk-dev] [RFC PATCH v2] raw/ptdma: introduce ptdma driver

Quoted 9 lines

[CAUTION: External Email]

28/10/2021 16:54, Sebastian, Selwin:

Quoted 1 line

I am working on making ptdma driver as a dmadev. Will submit new patch for review.

Any update?

Hi Thomas,

Selwin notified me that there is a plan to extend device support and re-submit new driver probably as a dma driver.

So I am updating the patchwork status of the patch as "Change Requested" as it is not valid anymore as it is.