Re: [PATCH v2] selftests: mm: fix map_hugetlb failure on 64K page size systems

2024-01-22 Thread Nico Pache
Hi Andrew, No, I think it's always been broken-- I don't think the test was written with 512M huge page sizes in mind. -- Nico On Sat, Jan 20, 2024 at 9:39 PM Andrew Morton wrote: > > On Fri, 19 Jan 2024 06:14:29 -0700 Nico Pache wrote: > > > On systems with 64k page size and 512M huge page si

Re: [PATCH v2] selftests: mm: fix map_hugetlb failure on 64K page size systems

2024-01-20 Thread Andrew Morton
On Fri, 19 Jan 2024 06:14:29 -0700 Nico Pache wrote: > On systems with 64k page size and 512M huge page sizes, the allocation > and test succeeds but errors out at the munmap. As the comment states, > munmap will failure if its not HUGEPAGE aligned. This is due to the > length of the mapping bein

[PATCH v2] selftests: mm: fix map_hugetlb failure on 64K page size systems

2024-01-19 Thread Nico Pache
On systems with 64k page size and 512M huge page sizes, the allocation and test succeeds but errors out at the munmap. As the comment states, munmap will failure if its not HUGEPAGE aligned. This is due to the length of the mapping being 1/2 the size of the hugepage causing the munmap to not be hug