1 .. SPDX-License-Identifier: BSD-3-Clause
2 Copyright(c) 2019 Marvell International Ltd.
7 OCTEON TX2 has an internal DMA unit which can be used by applications to initiate
8 DMA transaction internally, from/to host when OCTEON TX2 operates in PCIe End
9 Point mode. The DMA PF function supports 8 VFs corresponding to 8 DMA queues.
10 Each DMA queue was exposed as a VF function when SRIOV enabled.
15 This DMA PMD supports below 3 modes of memory transfers
17 #. Internal - OCTEON TX2 DRAM to DRAM without core intervention
19 #. Inbound - Host DRAM to OCTEON TX2 DRAM without host/OCTEON TX2 cores involvement
21 #. Outbound - OCTEON TX2 DRAM to Host DRAM without host/OCTEON TX2 cores involvement
23 Prerequisites and Compilation procedure
24 ---------------------------------------
26 See :doc:`../platform/octeontx2` for setup information.
29 Pre-Installation Configuration
30 ------------------------------
35 The following options can be modified in the ``config`` file.
37 - ``CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_DMA_RAWDEV`` (default ``y``)
39 Toggle compilation of the ``lrte_pmd_octeontx2_dma`` driver.
44 For enabling logs, use the following EAL parameter:
46 .. code-block:: console
48 ./your_dma_application <EAL args> --log-level=pmd.raw.octeontx2.dpi,<level>
50 Using ``pmd.raw.octeontx2.dpi`` as log matching criteria, all Event PMD logs
51 can be enabled which are lower than logging ``level``.
56 The number of DMA VFs (queues) enabled can be controlled by setting sysfs
57 entry, `sriov_numvfs` for the corresponding PF driver.
59 .. code-block:: console
61 echo <num_vfs> > /sys/bus/pci/drivers/octeontx2-dpi/0000\:05\:00.0/sriov_numvfs
63 Once the required VFs are enabled, to be accessible from DPDK, VFs need to be
64 bound to vfio-pci driver.