5. HISILICON PCIEP DMA Driver
Kunpeng SoC PCIe subsystem has an internal DMA unit which can be used by application to accelerate data copies. The DMA PF function supports multiple DMA channels.
5.1. Supported Kunpeng SoCs
Kunpeng 920
5.2. Device Setup
This device needs to be bound to a suitable DPDK-supported user-space IO
driver such as vfio-pci in order to be used by DPDK.
5.2.1. Device Probing and Initialization
Once probed successfully, the device will appear as four dmadev
which can be accessed using API from the rte_dmadev library.
The name of the dmadev created is like “B:D.F-chX”, e.g. DMA 0000:7b:00.0
will create four dmadev,
the 1st dmadev name is “0000:7b:00.0-ch0”,
and the 2nd dmadev name is “0000:7b:00.0-ch1”.
5.2.2. Device Configuration
Configuration requirements:
ring_sizemust be a power of two, between 32 and 8192.Only one
vchanis supported perdmadev.Silent mode is not supported.
The transfer direction must be set to
RTE_DMA_DIR_MEM_TO_MEM.