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

2019-11-14 Thread David Marchand
On Wed, Nov 13, 2019 at 8:17 AM Wangyu (Eric) wrote: > > Currently, the next address picked by PCI mapping infrastructure > may be page-unaligned due to BAR length being smaller than page size. > This leads to a situation where the requested map address is invalid, > resulting in mmap() call retur

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

2019-11-12 Thread Wangyu (Eric)
Currently, the next address picked by PCI mapping infrastructure may be page-unaligned due to BAR length being smaller than page size. This leads to a situation where the requested map address is invalid, resulting in mmap() call returning an arbitrary address, which will later interfere with devic