24/10/2023 19:43, David Christensen:
> IBM POWER systems support more than one type of memory management unit
> (MMU).  The Power ISA 3.0 specification, which applies to P9 and later
> CPUs, defined a new Radix MMU which, among other things, allows an
> anonymous memory page mapping to be converted into a hugepage mapping
> at a specific address. This is a required feature in DPDK so we need
> to test the MMU type when POWER systems are used and provide a more
> useful error message for the user when running on an unsupported
> system.
> 
> Bugzilla ID: 1221
> 
> Suggested-by: Thomas Monjalon <tho...@monjalon.net>
> Signed-off-by: David Christensen <d...@linux.vnet.ibm.com>
> ---
> --- a/lib/eal/linux/eal.c
> +++ b/lib/eal/linux/eal.c
> +     /* verify if DPDK supported on architecture MMU */
> +     if (!eal_mmu_supported_linux_arch()) {
> +             rte_eal_init_alert("unsupported MMU type.");
> +             rte_errno = ENOTSUP;
> +             return -1;
> +     }

I don't think we should restrict the MMU check to Linux.


Reply via email to