+74
−17
Loading
In the function 'build_eal_cmdline', one of the jobs is to determine the arg '--iova-mode' to pass to the function 'rte_eal_init'. In case the underlying CPU supports IOMMU, the arg would be "--iova-mode=va". Otherwise, the arg would be "--iova-mode=pa". However, for non-Intel X86_64 CPUs, the IOMMU checking logic does not work well. I noticed the following 2 commits: 9ffb0497 1473d3b8 I tested them under AMD CPUs, but found they had not resolved the issue #2683. Per the comments under issue #2683, for AMD CPU, currently, there is no way to obtain the IOMMU virtual address width from sysfs entries. Also, per the comments, non-Intel X86_64 CPUs are assumed to support IOMMU, which is just the approach adopted in the source code of DPDK. Thus, this commit fixes this issue by adopting the same approach. Fixes #2683 Change-Id: I37c9bd08d907c4885610fe5bc59cc31a57bcef68 Signed-off-by:Mingbao Sun <tyler.sun@dell.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26056 Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Ben Walker <ben@nvidia.com> Reviewed-by:
Jim Harris <jim.harris@nvidia.com>