On Wed, Nov 13, 2019 at 8:17 AM Wangyu (Eric) <seven.wan...@huawei.com> 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 returning an arbitrary address, > which will later interfere with device BAR mapping in secondary processes. > > Fix it by always aligning the next requested address on page boundary. > > Signed-off-by: Xiaofeng Deng <dengxiaof...@huawei.com> > Signed-off-by: Wangyu (Eric) <seven.wan...@huawei.com> > Acked-by: Wei Hu <xavier.hu...@huawei.com> > Acked-by: Min Hu <humi...@huawei.com> > Acked-by: Anatoly Burakov <anatoly.bura...@intel.com> > Acked-by: Gavin Hu (Arm Technology China) <gavin...@arm.com> > > Fixes: c752998b5e2e ("pci: introduce library and driver") > Cc: sta...@dpdk.org
Cc'd stable. Applied, thanks. -- David Marchand