Re: [dpdk-dev] [PATCH v4 3/6] bus: introduce device level DMA memory mapping

2019-03-30 Thread Thomas Monjalon
13/03/2019 12:12, Shahaf Shuler: > From: Thomas Monjalon > > 10/03/2019 09:28, Shahaf Shuler: > > > For PCI bus devices, the pci driver can expose its own map and unmap > > > functions to be used for the mapping. In case the driver doesn't > > > provide any, the memory will be mapped, if possible,

Re: [dpdk-dev] [PATCH v4 3/6] bus: introduce device level DMA memory mapping

2019-03-13 Thread Burakov, Anatoly
On 13-Mar-19 11:19 AM, Thomas Monjalon wrote: 13/03/2019 12:12, Shahaf Shuler: From: Thomas Monjalon +/** + * Device level DMA map function. + * After a successful call, the memory segment will be mapped to the + * given device. + * + * @note: Memory must be registered in advance using rte_ext

Re: [dpdk-dev] [PATCH v4 3/6] bus: introduce device level DMA memory mapping

2019-03-13 Thread Thomas Monjalon
13/03/2019 12:12, Shahaf Shuler: > From: Thomas Monjalon > > > +/** > > > + * Device level DMA map function. > > > + * After a successful call, the memory segment will be mapped to the > > > + * given device. > > > + * > > > + * @note: Memory must be registered in advance using rte_extmem_* > > AP

Re: [dpdk-dev] [PATCH v4 3/6] bus: introduce device level DMA memory mapping

2019-03-13 Thread Shahaf Shuler
dk-dev] [PATCH v4 3/6] bus: introduce device level DMA > memory mapping > > 10/03/2019 09:28, Shahaf Shuler: > > For PCI bus devices, the pci driver can expose its own map and unmap > > functions to be used for the mapping. In case the driver doesn't > > provide any, the

Re: [dpdk-dev] [PATCH v4 3/6] bus: introduce device level DMA memory mapping

2019-03-13 Thread Thomas Monjalon
10/03/2019 09:28, Shahaf Shuler: > For PCI bus devices, the pci driver can expose its own map and unmap > functions to be used for the mapping. In case the driver doesn't provide > any, the memory will be mapped, if possible, to IOMMU through VFIO APIs. > > Application usage with those APIs is qui

Re: [dpdk-dev] [PATCH v4 3/6] bus: introduce device level DMA memory mapping

2019-03-11 Thread Burakov, Anatoly
On 10-Mar-19 8:28 AM, Shahaf Shuler wrote: The DPDK APIs expose 3 different modes to work with memory used for DMA: 1. Use the DPDK owned memory (backed by the DPDK provided hugepages). This memory is allocated by the DPDK libraries, included in the DPDK memory system (memseg lists) and automati

[dpdk-dev] [PATCH v4 3/6] bus: introduce device level DMA memory mapping

2019-03-10 Thread Shahaf Shuler
The DPDK APIs expose 3 different modes to work with memory used for DMA: 1. Use the DPDK owned memory (backed by the DPDK provided hugepages). This memory is allocated by the DPDK libraries, included in the DPDK memory system (memseg lists) and automatically DMA mapped by the DPDK layers. 2. Use