mem: fix anonymous mapping on Power9
authorDavid Wilder <dwilder@us.ibm.com>
Fri, 16 Nov 2018 17:35:38 +0000 (09:35 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 18 Nov 2018 13:42:18 +0000 (14:42 +0100)
commit6b062d56bcff9a393809f46e0aae19a18bc0fe57
tree978670c08460e5e2ddb3dafdaf7e872b19d96667
parent71aae4b421da9b741d1fb73a190a9facfec555b9
mem: fix anonymous mapping on Power9

Removed the use of MAP_HUGETLB for anonymous mapping on ppc64.  The
MAP_HUGETLB had previously been added to workaround issues on IBM Power8
systems when mapping /dev/zero.
In the current code the MAP_HUGETLB flag will cause the anonymous mapping
to fail on Power9.
Note, Power8 is currently failing to correctly mmap Hugepages, with and
without this change.

Fixes: 284ae3e9ff9a ("eal/ppc: fix mmap for memory initialization")

Signed-off-by: David Wilder <dwilder@us.ibm.com>
Reviewed-by: Pradeep Satyanarayana <pradeep@us.ibm.com>
MAINTAINERS
doc/guides/linux_gsg/sys_reqs.rst
doc/guides/rel_notes/release_18_11.rst
lib/librte_eal/linuxapp/eal/eal_memalloc.c
lib/librte_eal/linuxapp/eal/eal_memory.c