[dpdk-dev] [PATCH v3] vfio: refactor PCI BAR mapping

2017-10-06 Thread Jonas Pfefferle
Split pci_vfio_map_resource for primary and secondary processes. Save all relevant mapping data in primary process to allow the secondary process to perform mappings. Signed-off-by: Jonas Pfefferle --- v2: * fix zero size and offset when trying to mmap non msix bar v3: * explicitly check ioport

Re: [dpdk-dev] [PATCH v2] vfio: noiommu check error handling

2018-01-15 Thread Jonas Pfefferle
On Sat, 13 Jan 2018 23:49:30 +0100 Thomas Monjalon wrote: 13/01/2018 13:15, Burakov, Anatoly: On 11-Jan-18 11:45 PM, Thomas Monjalon wrote: > 07/11/2017 10:50, Jonas Pfefferle1: >>> Is there something urgent for 17.11? >>> Or can it be refined in 18.02? >> >> Nothing urgent. We can refine th

Re: [dpdk-dev] [PATCH v2] vfio: noiommu check error handling

2018-01-16 Thread Jonas Pfefferle
On Mon, 15 Jan 2018 17:11:58 +0100 Thomas Monjalon wrote: 15/01/2018 13:22, Jonas Pfefferle: On Sat, 13 Jan 2018 23:49:30 +0100 Thomas Monjalon wrote: > 13/01/2018 13:15, Burakov, Anatoly: >> On 11-Jan-18 11:45 PM, Thomas Monjalon wrote: >> > 07/11/2017 10:50

Re: [dpdk-dev] [PATCH v2] vfio: noiommu check error handling

2018-01-16 Thread Jonas Pfefferle
On Tue, 16 Jan 2018 10:07:51 + "Burakov, Anatoly" wrote: On 15-Jan-18 12:22 PM, Jonas Pfefferle wrote:  On Sat, 13 Jan 2018 23:49:30 +0100  Thomas Monjalon wrote: 13/01/2018 13:15, Burakov, Anatoly: On 11-Jan-18 11:45 PM, Thomas Monjalon wrote: > 07/11/2017 10:50, Jon

Re: [dpdk-dev] [PATCH v2] vfio: noiommu check error handling

2018-01-17 Thread Jonas Pfefferle
On Tue, 16 Jan 2018 18:01:32 +0100 Maxime Coquelin wrote: Hi Jonas, On 01/16/2018 05:08 PM, Jonas Pfefferle wrote:  On Mon, 15 Jan 2018 17:11:58 +0100  Thomas Monjalon wrote: 15/01/2018 13:22, Jonas Pfefferle:   On Sat, 13 Jan 2018 23:49:30 +0100   Thomas Monjalon wrote: > 13

Re: [dpdk-dev] [PATCH v2] vfio: noiommu check error handling

2018-01-17 Thread Jonas Pfefferle
On Wed, 17 Jan 2018 09:55:37 +0100 Maxime Coquelin wrote: On 01/17/2018 09:48 AM, Jonas Pfefferle wrote:  On Tue, 16 Jan 2018 18:01:32 +0100  Maxime Coquelin wrote: Hi Jonas, On 01/16/2018 05:08 PM, Jonas Pfefferle wrote:   On Mon, 15 Jan 2018 17:11:58 +0100   Thomas Monjalon

[dpdk-dev] [PATCH v2] vfio: refactor PCI BAR mapping

2017-09-25 Thread Jonas Pfefferle
Split pci_vfio_map_resource for primary and secondary processes. Save all relevant mapping data in primary process to allow the secondary process to perform mappings. Signed-off-by: Jonas Pfefferle --- v2: * fix zero size and offset when trying to mmap non msix bar lib/librte_eal/common

[dpdk-dev] [PATCH] vfio: check ioctl return value

2017-10-26 Thread Jonas Pfefferle
Check return value of device reset ioctl Fixes: 33604c31354a ("vfio: refactor PCI BAR mapping") Coverity issue: 195003 Signed-off-by: Jonas Pfefferle --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/librte_ea

[dpdk-dev] [PATCH v2] vfio: check ioctl return value

2017-10-26 Thread Jonas Pfefferle
Check return value of device reset ioctl Fixes: 33604c31354a ("vfio: refactor PCI BAR mapping") Coverity issue: 195003 Signed-off-by: Jonas Pfefferle --- v2: * fix whitespace/tab issue lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 6 +- 1 file changed, 5 insertions(+), 1 deletio

[dpdk-dev] [PATCH] mem: warn if address hint is not respected

2017-10-31 Thread Jonas Pfefferle
Print a warning if the --base-virtaddr hint is not respected since this might lead to problems when mapping memory in the secondary process. Signed-off-by: Jonas Pfefferle --- lib/librte_eal/linuxapp/eal/eal_memory.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions

[dpdk-dev] [PATCH] vfio: noiommu check error handling

2017-10-31 Thread Jonas Pfefferle
Check and report errors on open/read in noiommu check. Signed-off-by: Jonas Pfefferle --- lib/librte_eal/linuxapp/eal/eal_vfio.c | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.c b/lib/librte_eal/linuxapp

[dpdk-dev] [PATCH v2] vfio: noiommu check error handling

2017-10-31 Thread Jonas Pfefferle
Check and report errors on open/read in noiommu check. Signed-off-by: Jonas Pfefferle --- lib/librte_eal/linuxapp/eal/eal_vfio.c | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.c b/lib/librte_eal/linuxapp

[dpdk-dev] [PATCH] eal/ppc: revert fix mmap for memory initialization

2017-11-02 Thread Jonas Pfefferle
might need to use a different virt-baseaddr. We now warn if the address hint is not respected (fae209f) thus users can try different virtual address bases. Fixes: 284ae3e9 ("eal/ppc: fix mmap for memory initialization") Signed-off-by: Jonas Pfefferle --- doc/guides/linux_gsg/sys_

[dpdk-dev] [PATCH] pci: get IOMMU class sPAPR iommu fix

2017-11-03 Thread Jonas Pfefferle
PPC64 sPAPR iommu does not support iova as va. Use pa mode instead. Signed-off-by: Jonas Pfefferle --- drivers/bus/pci/linux/pci.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c index cdf8106..6a58c5f

[dpdk-dev] [PATCH] bus/pci: fix use of wrong PPC define

2017-11-07 Thread Jonas Pfefferle
This fixes the use of an never defined PPC64 define in ret_pci_get_iommu_class. Fixes: b48e0e2d9cb4 ("bus/pci: fix IOMMU class for sPAPR") Signed-off-by: Jonas Pfefferle --- drivers/bus/pci/linux/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus

Re: [dpdk-dev] [PATCH] mem: warn if address hint is not respected

2018-01-03 Thread Jonas Pfefferle
:52 PM To: Burakov, Anatoly Cc: dev@dpdk.org; jianfeng@intel.com; Thomas Monjalon Subject: Re: [dpdk-dev] [PATCH] mem: warn if address hint is not respected "Burakov, Anatoly" wrote on 11/07/2017 02:54:24 PM: > From: "Burakov, Anatoly" > To: Thomas Monjalon > Cc:

Re: [dpdk-dev] [PATCH] mem: warn if address hint is not respected

2018-01-03 Thread Jonas Pfefferle
7:00 + "Xueming(Steven) Li" wrote: So the idea of item 3 might sound and lead to seldom usage of '--base-virtaddress'. Reserve an address hole big enough before hugepage almost cost nothing. -----Original Message- From: Jonas Pfefferle [mailto:peppe...@japf.ch] Sent: Wedn

Re: [dpdk-dev] [PATCH v2] doc: add deprecation notice for memory hotplug changes

2018-02-12 Thread Jonas Pfefferle
purpose + and will be removed. + * eal: several API and ABI changes are planned for ``rte_devargs`` in v18.02. The format of device command line parameters will change. The bus will need to be explicitly stated in the device declaration. The enum ``rte_devtype`` -- 2.7.4 Acked-by: Jonas

Re: [dpdk-dev] [PATCH] doc: add ABI change notice for numa_node_count in eal

2018-02-12 Thread Jonas Pfefferle
the device declaration. The enum ``rte_devtype`` -- 2.7.4 Acked-by: Jonas Pfefferle

[dpdk-dev] [PATCH] vfio: fix sPAPR IOMMU DMA window size

2017-08-07 Thread Jonas Pfefferle
DMA window size needs to be big enough to span all memory segment's physical addresses. We do not need multiple levels of IOMMU tables as we already span ~70TB of physical memory with 16MB hugepages. Signed-off-by: Jonas Pfefferle --- lib/librte_eal/linuxapp/eal/eal_vfio.c

[dpdk-dev] [PATCH v2] vfio: fix sPAPR IOMMU DMA window size

2017-08-08 Thread Jonas Pfefferle
DMA window size needs to be big enough to span all memory segment's physical addresses. We do not need multiple levels of IOMMU tables as we already span ~70TB of physical memory with 16MB hugepages. Signed-off-by: Jonas Pfefferle --- v2: * roundup to next power 2 function without loop.

[dpdk-dev] [PATCH v3] vfio: fix sPAPR IOMMU DMA window size

2017-08-08 Thread Jonas Pfefferle
DMA window size needs to be big enough to span all memory segment's physical addresses. We do not need multiple levels of IOMMU tables as we already span ~70TB of physical memory with 16MB hugepages. Signed-off-by: Jonas Pfefferle --- v2: * roundup to next power 2 function without loop

[dpdk-dev] [PATCH v4] vfio: fix sPAPR IOMMU DMA window size

2017-08-08 Thread Jonas Pfefferle
DMA window size needs to be big enough to span all memory segment's physical addresses. We do not need multiple levels of IOMMU tables as we already span ~70TB of physical memory with 16MB hugepages. Signed-off-by: Jonas Pfefferle --- v2: * roundup to next power 2 function without loop

[dpdk-dev] [PATCH] vfio: refactor PCI BAR mapping

2017-08-17 Thread Jonas Pfefferle
Split pci_vfio_map_resource for primary and secondary processes. Save all relevant mapping data in primary process to allow the secondary process to perform mappings. Signed-off-by: Jonas Pfefferle --- lib/librte_eal/common/include/rte_pci.h| 7 + lib/librte_eal/linuxapp/eal