forked from DPDK/dpdk
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eal: fix memory mapping on 32-bit target
[ upstream commit 6beb2d2 ] For 32-bit targets, size_t is normally a 32-bit type and does not have sufficient range to represent 64-bit offsets that are needed when mapping PCI addresses. Use uint64_t instead. Found when attempting to run 32-bit Linux dpdk-testpmd using VFIO driver: EAL: pci_map_resource(): cannot map resource(63, 0xc0010000, \ 0x200000, 0x20000000000): Invalid argument ((nil)) Fixes: c4b89ec ("eal: introduce memory management wrappers") Signed-off-by: Lance Richardson <lance.richardson@broadcom.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
- Loading branch information
1 parent
3cb6827
commit 3aadd33
Showing
3 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters