[dpdk-users] How DPDK initialize PCIe DMA engine?
Van Haaren, Harry
harry.van.haaren at intel.com
Mon Sep 2 11:31:38 CEST 2019
> -----Original Message-----
> From: users [mailto:users-bounces at dpdk.org] On Behalf Of Yuan Kevin
> Sent: Sunday, September 1, 2019 2:29 PM
> To: users at dpdk.org
> Subject: [dpdk-users] How DPDK initialize PCIe DMA engine?
>
> Dear DPDK Community members,
Hi Kevin!
> I am new to DPDK. After reading through the documentation and doing web search
> a couple of days, I am still not clear how DPDK initialize PCIe DMA engine.
>
> As far as I know, the PCIe scan / probe / intialization is pretty
> standardized, but the DMA engines along with the PCIe are very different from
> vendor to vendor.
>
> My question is, what's the best place to implement the DMA initilization code
> within the DPDK framework and how?
>
> Could you give me an example ?
There is a DMA engine driver which has been upstreamed in the 19.08 release,
please see the patchset cover-letter here; http://patches.dpdk.org/cover/55872/
The cover letter gives lots of details, and the 9 patches following it enable
the device itself. Patch 2/9 is the patch that enables a new PCI device to register
as a rawdev, which is probably the best way to enable your device:
http://patches.dpdk.org/patch/55874/
> Best regards.
>
> Thanks,
> Kevin Yuan
Hope that helps, -Harry
More information about the users
mailing list