[dpdk-dev] [PATCH v4] bus/pci: align next mapping address on page boundary
David Marchand
david.marchand at redhat.com
Thu Nov 14 14:14:34 CET 2019
On Wed, Nov 13, 2019 at 8:17 AM Wangyu (Eric) <seven.wangyu at 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 <dengxiaofeng at huawei.com>
> Signed-off-by: Wangyu (Eric) <seven.wangyu at huawei.com>
> Acked-by: Wei Hu <xavier.huwei at huawei.com>
> Acked-by: Min Hu <humin29 at huawei.com>
> Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
> Acked-by: Gavin Hu (Arm Technology China) <Gavin.Hu at arm.com>
>
> Fixes: c752998b5e2e ("pci: introduce library and driver")
> Cc: stable at dpdk.org
Cc'd stable.
Applied, thanks.
--
David Marchand
More information about the dev
mailing list