numam-dpdk/drivers/bus
Wangyu (Eric) d25ab4b7f1 bus/pci: align next mapping address on page boundary
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.

Fixes: c752998b5e ("pci: introduce library and driver")
Cc: stable@dpdk.org

Signed-off-by: Xiaofeng Deng <dengxiaofeng@huawei.com>
Signed-off-by: Wangyu (Eric) <seven.wangyu@huawei.com>
Acked-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Acked-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Gavin Hu <gavin.hu@arm.com>
2019-11-14 14:17:48 +01:00
..
dpaa bus/dpaa: move QBMAN global init to bus 2019-11-06 01:14:41 +01:00
fslmc raw/dpaa2_qdma: support route by port in DMA 2019-11-08 16:40:29 +01:00
ifpga bus/ifpga: support AFU device search by name 2019-04-19 14:51:54 +02:00
pci bus/pci: align next mapping address on page boundary 2019-11-14 14:17:48 +01:00
vdev doc: add vdev doxygen 2019-07-08 21:57:05 +02:00
vmbus remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
Makefile bus/vmbus: add Hyper-V virtual bus support 2018-07-13 23:48:07 +02:00
meson.build bus/vmbus: add Hyper-V virtual bus support 2018-07-13 23:48:07 +02:00