numam-dpdk/drivers
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
..
baseband baseband/fpga_lte_fec: fix polling of MMIO register 2019-10-23 16:57:06 +02:00
bus bus/pci: align next mapping address on page boundary 2019-11-14 14:17:48 +01:00
common net/octeontx2: support SDP interface 2019-11-08 23:15:05 +01:00
compress compress/octeontx: remove commented out code 2019-11-08 16:40:28 +01:00
crypto crypto/openssl: use local copy for session contexts 2019-11-08 13:51:16 +01:00
event event/dpaa2: support ordered queue 2019-11-08 16:40:29 +01:00
mempool mempool: prevent objects from being across pages 2019-11-06 11:34:19 +01:00
net net/mlx5: set maximum LRO packet size 2019-11-12 01:43:47 +01:00
raw raw/dpaa2_qdma: support route by port in DMA 2019-11-08 16:40:29 +01:00
Makefile drivers: add common as dependency for bus 2018-10-16 14:54:25 +02:00
meson.build drivers: process shared link dependencies as for libs 2019-11-09 21:17:44 +01:00