[dpdk-dev] 答复: [PATCH] lib/eal: resolve address conflicts

2019-11-12 Thread Wangyu (Eric)
The problem has been solved after that fix, it's a good solution to this problem :) And many thanks to you and Anatoly. -邮件原件- 发件人: David Marchand [mailto:david.march...@redhat.com] 发送时间: 2019年11月13日 15:34 收件人: Wangyu (Eric) 抄送: dev@dpdk.org; ferruh.yi...@intel.com; Linuxarm ;

[dpdk-dev] [PATCH v4] bus/pci: align next mapping address on page boundary

2019-11-12 Thread Wangyu (Eric)
device BAR mapping in secondary processes. Fix it by always aligning the next requested address on page boundary. Signed-off-by: Xiaofeng Deng Signed-off-by: Wangyu (Eric) Acked-by: Wei Hu Acked-by: Min Hu Acked-by: Anatoly Burakov Acked-by: Gavin Hu (Arm Technology China) Fixes: c752998b5e2e

[dpdk-dev] 答复: [PATCH v3] bus/pci: resolve multiple NICs address conflicts

2019-11-12 Thread Wangyu (Eric)
Thank you for your advice, it's helpful. I will follow your advice to write a new one. -邮件原件- 发件人: Gavin Hu (Arm Technology China) [mailto:gavin...@arm.com] 发送时间: 2019年11月12日 15:02 收件人: Wangyu (Eric) ; dev@dpdk.org 抄送: ferruh.yi...@intel.com; Linuxarm ; humin (Q) ; dengxia

[dpdk-dev] [PATCH v3] bus/pci: resolve multiple NICs address conflicts

2019-11-11 Thread Wangyu (Eric)
NIC address conflicts on 64K pagesize when using multiple NICs, as system will mmap 64K pagesize for NIC, but dev->mem_resource[i].len is 16K. Signed-off-by: beard-627 Signed-off-by: Wangyu (Eric) Acked-by: Wei Hu Acked-by: Min Hu --- drivers/bus/pci/linux/pci_uio.c | 2 ++ drivers/

[dpdk-dev] 答复: 答复: [PATCH v2] bus/pci: resolve multiple NICs address conflicts

2019-11-11 Thread Wangyu (Eric)
16K memory, only apply for 4M size(map0).But I think VFIO also needs to be modified. -邮件原件- 发件人: Burakov, Anatoly [mailto:anatoly.bura...@intel.com] 发送时间: 2019年11月7日 20:25 收件人: Wangyu (Eric) ; David Marchand 抄送: dev@dpdk.org; ferruh.yi...@intel.com; Linuxarm ; humin (Q) ; Liyuan (Larry) ;

[dpdk-dev] 答复: [PATCH v2] bus/pci: resolve multiple NICs address conflicts

2019-11-06 Thread Wangyu (Eric)
return fault because mmap() return address was not equal with address I provided(problem occurs in pci_uio_map_secondary()). -邮件原件- 发件人: Burakov, Anatoly [mailto:anatoly.bura...@intel.com] 发送时间: 2019年11月6日 19:15 收件人: David Marchand ; Wangyu (Eric) 抄送: dengxiaofeng ; dev@dpdk.org

[dpdk-dev] 答复: [PATCH v2] bus/pci: resolve multiple NICs address conflicts

2019-11-06 Thread Wangyu (Eric)
AWEI Mobile: (+86)18219206880 Email: dengxiaof...@huawei.com -邮件原件- 发件人: Burakov, Anatoly [mailto:anatoly.bura...@intel.com] 发送时间: 2019年11月6日 18:35 收件人: David Marchand ; Wangyu (Eric) 抄送: dengxiaofeng ; dev@dpdk.org; ferruh.yi...@intel.com; Linuxarm ; humin (Q) ; Liyuan (Larry) 主题: Re: [dp

[dpdk-dev] 答复: [PATCH v2] bus/pci: resolve multiple NICs address conflicts

2019-11-05 Thread Wangyu (Eric)
In 64K pagesize system, DPDK will read the size NIC need in uio/uio1/maps/map1/size, when the size small than pagesize(e.g.,82599 is 16K), dev->mem_resource[i].len will be 16K, but the mmap function applies for at least 1 page size, which is 64K. Then second NIC mmap, start address is first N