Sayali Patil
a3f66e9b6e
selftests/mm: restore default nr_hugepages value via exit trap in charge_reserved_hugetlb.sh
...
Patch series "selftests/mm: fix failures and robustness improvements", v7.
Powerpc systems with a 64K base page size exposed several issues while
running mm selftests. Some tests assume specific hugetlb configurations,
use incorrect interfaces, or fail instead of skipping when the required
kernel features are not available.
This series fixes these issues and improves test robustness.
This patch (of 13):
cleanup() resets nr_hugepages to 0 on every invocation, while the test
reconfigures it again in the next iteration. This leads to repeated
allocation and freeing of large numbers of hugepages, especially when the
original value is high.
Additionally, with set -e, failures in earlier cleanup steps (e.g., rmdir
or umount returning EBUSY while background activity is still ongoing) can
cause the script to exit before restoring the original value, leaving the
system in a modified state.
Introduce a trap on EXIT, INT, and TERM to restore the original
nr_hugepages value once at script termination. This avoids unnecessary
allocation churn and ensures the original value is reliably restored on
all exit paths.
Link: https://lore.kernel.org/cover.1779296493.git.sayalip@linux.ibm.com
Link: https://lore.kernel.org/5b8fbb29cd6ceffe6752e0af104f60cec072aa10.1779296493.git.sayalip@linux.ibm.com
Fixes: 7d695b1c36 ("selftests/mm: save and restore nr_hugepages value")
Signed-off-by: Sayali Patil <sayalip@linux.ibm.com >
Acked-by: Zi Yan <ziy@nvidia.com >
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Liam Howlett <liam.howlett@oracle.com >
Cc: Miaohe Lin <linmiaohe@huawei.com >
Cc: Michal Hocko <mhocko@kernel.org >
Cc: Oscar Salvador <osalvador@suse.de >
Cc: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com >
Cc: Shuah Khan <shuah@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:32 -07:00
Hongfu Li
a179686b91
selftests/mm: fix incorrect mmap() error handling with NULL instead of MAP_FAILED
...
mmap() returns MAP_FAILED, which is defined as (void *)-1, on error, not
NULL. Several selftests incorrectly check the return value of mmap()
using !ptr or ptr == NULL, which would erroneously treat MAP_FAILED as a
valid pointer since MAP_FAILED is non-zero and non-NULL. This can lead to
segfaults when mmap() actually fails under memory pressure.
Link: https://lore.kernel.org/20260513025223.592766-1-lihongfu@kylinos.cn
Signed-off-by: Hongfu Li <lihongfu@kylinos.cn >
Reviewed-by: Dev Jain <dev.jain@arm.com >
Reviewed-by: Lorenzo Stoakes <ljs@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Liam R. Howlett <liam@infradead.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Mike Rapoport <rppt@kernel.org >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:31 -07:00
Chen Wandun
b89a641056
mm/khugepaged: avoid underflow in madvise_collapse for sub-PMD MADV_COLLAPSE
...
madvise_collapse() computes the THP-aligned window:
hstart = ALIGN(start, HPAGE_PMD_SIZE); /* round up */
hend = ALIGN_DOWN(end, HPAGE_PMD_SIZE); /* round down */
The following case will cause hstart > hend, and result in underflow in
the return statement, avoid it by returning zero early when hstart > hend.
The return value is due to input is valid to madvise(), and there is
nothing to collapse.
madvise(PMD-aligned + PAGE_SIZE, PAGE_SIZE, MADV_COLLAPSE);
In addition, kmalloc_obj(), mmgrab() and lru_add_drain_all() are
unnecessary when hstart == hend, so skip these operations by returning
early too.
Link: https://lore.kernel.org/20260513055428.1664898-1-chenwandun@lixiang.com
Signed-off-by: Chen Wandun <chenwandun@lixiang.com >
Acked-by: David Hildenbrand (Arm) <david@kernel.org >
Reviewed-by: Lorenzo Stoakes <ljs@kernel.org >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Liam R. Howlett <liam@infradead.org >
Cc: Nico Pache <npache@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:31 -07:00
Mike Rapoport (Microsoft)
08de77b1c9
selftests/mm: run_vmtests.sh: drop detection and setup of HugeTLB
...
All the tests that use HugeTLB can detect and setup HugeTLB pages on their
own.
Drop detection and setup of HugeTLB from run_vmtests.sh.
Link: https://lore.kernel.org/20260511162840.375890-56-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:31 -07:00
Mike Rapoport (Microsoft)
157adc22f0
selftests/mm: run_vmtests.sh: free memory if available memory is low
...
Currently when running THP and HugeTLB tests, if HAVE_HUGEPAGES is set
run_test() drops caches, compacts memory and runs the test. But if
HAVE_HUGEPAGES is not set it skips the tests entirely, even if THP tests
have nothing to do with HAVE_HUGEPAGES.
Replace the check if HAVE_HUGEPAGES is set with a check of how much memory
is available. If there is less than 256 MB of available memory, drop
caches and run compaction and then continue to run a test regardless of
HAVE_HUGEPAGES value.
Link: https://lore.kernel.org/20260511162840.375890-55-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:31 -07:00
Mike Rapoport (Microsoft)
e8a83b3a12
selftests/mm: va_high_addr_switch.sh: drop huge pages setup
...
Since va_high_addr_switch takes care of setting up huge pages, there is no
need to set them up in the va_high_addr_switch.sh wrapper script.
Link: https://lore.kernel.org/20260511162840.375890-54-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:30 -07:00
Mike Rapoport (Microsoft)
c9e5d1fc95
selftests/mm: va_high_addr_switch: add setup of HugeTLB pages
...
va_high_addr_switch skips HugeTLB tests if there are no free huge pages
prepared by a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-53-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:30 -07:00
Mike Rapoport (Microsoft)
df7ab28eea
selftests/mm: uffd-wp-mremap: add setup of HugeTLB pages
...
uffd-wp-remap skips HugeTLB tests if there are no free huge pages prepared
by a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-52-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:30 -07:00
Mike Rapoport (Microsoft)
1d95be59ca
selftests/mm: uffd-unit-tests: add setup of HugeTLB pages
...
uffd-unit-tests skips HugeTLB tests if there are no free huge pages
prepared by a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Replace exit() calls with _exit() to avoid restoring HugeTLB settings in
the middle of test.
Link: https://lore.kernel.org/20260511162840.375890-51-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:30 -07:00
Mike Rapoport (Microsoft)
db8cef5bac
selftests/mm: uffd-stress: use hugetlb_save and alloc huge pages
...
uffd-stress skips HugeTLB tests if there are no free huge pages prepared
by a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-50-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:29 -07:00
Mike Rapoport (Microsoft)
49a4e7186b
selftests/mm: thuge-gen: add setup of HugeTLB pages
...
thuge-gen skips tests if there are no free huge pages prepared by a
wrapper script and shm liimts in proc are too low.
Replace custom detection of huge pages with the library functions and add
setup of HugeTLB pages and shm limits to the test and make sure that the
original settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-49-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:29 -07:00
Mike Rapoport (Microsoft)
2535608189
selftests/mm: protection_keys: use library code for HugeTLB setup
...
protection_keys open codes setup of HugeTLB pages.
Replace it with the library functions from hugepage_setup.
Replace exit() calls with _exit() to avoid restoring HugeTLB settings in
the middle of test.
Link: https://lore.kernel.org/20260511162840.375890-48-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:29 -07:00
Mike Rapoport (Microsoft)
857f2f8169
selftests/mm: pagemap_ioctl: add setup of HugeTLB pages
...
pagemap-ioctl skips HugeTLB tests if there are no free huge pages prepared
by a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-47-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:29 -07:00
Mike Rapoport (Microsoft)
a73a71aaea
selftests/mm: migration: add setup of HugeTLB pages
...
migration skips HugeTLB tests if there are no free huge pages prepared by
a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Since kselftest_harness runs fixture setup and the tests in child
processes, use HUGETLB_SETUP_DEFAULT_PAGES() that defines a constructor
that runs in the main process and add verification that there are enough
free huge pages to the tests that use them.
Reset signal handlers to defaults in FIXTURE_SETUP() so that sending
SIGTERM and SIGHUP during the tests won't cause restoration of HugeTLB
settings.
Link: https://lore.kernel.org/20260511162840.375890-46-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:28 -07:00
Mike Rapoport (Microsoft)
496a662f73
selftests/mm: hugetlb-vmemmap: add setup of HugeTLB pages
...
hugetlb-vmemmap test fails if there are no free huge pages prepared by a
wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-45-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:28 -07:00
Mike Rapoport (Microsoft)
c764cfa251
selftests/mm: hugetlb-soft-offline: add setup of HugeTLB pages
...
hugetlb-soft-offline test uses open coded access to /proc to determine
availability of huge pages and fails if there are no enough free huget
pages..
Replace open coded access to /proc with hugepage helpers and add setup of
HugeTLB pages to the test and make sure that the original settings are
restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-44-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:28 -07:00
Mike Rapoport (Microsoft)
2d6d040ccf
selftests/mm: hugetlb-shm: add setup of HugeTLB pages
...
hugetlb-shm test fails if there are no free huge pages prepared by a
wrapper script and shm liimts in proc are too low.
Add setup of HugeTLB pages and shm limits to the test and make sure that
the original settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-43-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:28 -07:00
Mike Rapoport (Microsoft)
a914785f63
selftests/mm: hugetlb-mremap: add setup of HugeTLB pages
...
hugetlb-mremap test fails if there are no free huge pages prepared by a
wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-42-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:27 -07:00
Mike Rapoport (Microsoft)
ae571cd601
selftests/mm: hugetlb-mmap: add setup of HugeTLB pages
...
hugetlb-mmap test fails if there are no free huge pages prepared by a
wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-41-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:27 -07:00
Mike Rapoport (Microsoft)
afa1b71900
selftests/mm: hugetlb_madv_vs_map: add setup of HugeTLB pages
...
hugetlb_madv_vs_map test skips testing if there are no free huge pages
prepared by a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-40-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:27 -07:00
Mike Rapoport (Microsoft)
06fbc9506c
selftests/mm: hugetlb-madvise: add setup of HugeTLB pages
...
hugetlb-madvise test skips testing if there are no free huge pages
prepared by a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-39-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:27 -07:00
Mike Rapoport (Microsoft)
2b6746a3b4
selftests/mm: hugetlb_fault_after_madv: add setup of HugeTLB pages
...
hugetlb_fault_after_madv test skips testing if there are no free huge
pages prepared by a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-38-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:26 -07:00
Mike Rapoport (Microsoft)
642d1fd449
selftests/mm: hugepage_dio: add setup of HugeTLB pages
...
hugepage_dio test fails if there are no free huge pages prepared by a
wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-37-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:26 -07:00
Mike Rapoport (Microsoft)
28ef1fb4e5
selftests/mm: hmm-tests: add setup of HugeTLB pages
...
hmm-tests skips HugeTLB tests if there are no free huge pages prepared by
a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Since kselftest_harness runs fixture setup and the tests in child
processes, use HUGETLB_SETUP_DEFAULT_PAGES() that defines a constructor
that runs in the main process and add verification that there are enough
free huge pages to the tests that use them.
Replace exit() calls with _exit() to avoid restoring HugeTLB settings in
the middle of test and use SIGKILL to kill a child process in
hmm_cow_in_device test to avoid interference with signal handlers in
hugepage_restore_settings().
Link: https://lore.kernel.org/20260511162840.375890-36-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:26 -07:00
Mike Rapoport (Microsoft)
ff47c60087
selftests/mm: gup_test: add setup of HugeTLB pages
...
gup_test fails to run HugeTLB tests if there are no free huge pages
prepared by a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-35-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:26 -07:00
Mike Rapoport (Microsoft)
fa84e69570
selftests/mm: gup_longterm: add setup of HugeTLB pages
...
gup_longterm tests skips HugeTLB tests if there are no free huge pages
prepared by a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-34-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:25 -07:00
Mike Rapoport (Microsoft)
11893d36c9
selftests/mm: cow: add setup of HugeTLB pages
...
cow tests skips HugeTLB tests if there are no free huge pages prepared by
a wrapper script.
Add setup of HugeTLB pages to the test and make sure that the original
settings are restored on the test exit.
Link: https://lore.kernel.org/20260511162840.375890-33-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:25 -07:00
Mike Rapoport (Microsoft)
bf2f989814
selftests/mm: compaction_test: use HugeTLB helpers ...
...
... instead of open coded access of HugeTLB parameters via /proc.
Link: https://lore.kernel.org/20260511162840.375890-32-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:25 -07:00
Mike Rapoport (Microsoft)
fb271590fa
selftests/mm: vm_util: add helpers to set and restore shm limits
...
hugetlb-shm and thuge-gen tests require that limits defined by
/proc/sys/kernel/{shmmax,shmall} should be higher than certain values.
Add helpers that allow setting these limits and restoring their settings
on a test exit.
They will be used later in hugetlb-shm and thuge-gen.
Link: https://lore.kernel.org/20260511162840.375890-31-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:25 -07:00
Mike Rapoport (Microsoft)
505c9605ee
selftests/mm: move read_file(), read_num() and write_num() to vm_util
...
These are useful helpers for writing and reading sysfs and proc files.
Make them available to the tests that don't use thp_settings.
While on it make write_num() use "%lu" instead of "%ld" to match 'unsigned
long num' argument type.
Link: https://lore.kernel.org/20260511162840.375890-30-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:24 -07:00
Mike Rapoport (Microsoft)
08e51ae56a
selftests/mm: hugepage_settings: add APIs for HugeTLB setup and teardown
...
A lot of tests require free HugeTLB pages. Some need just a few default
huge pages, some need a certain amount of memory available as HugeTLB, and
some just skip lots of tests if huge pages of all supported sizes are not
available.
This all resulted in a huge mess in run_vmtests.sh that sets up some huge
pages, adjusts them later and restores some of the settings if the stars
align.
Add APIs that allow saving the state of HugeTLB and setting up the desired
amount of HugeTLB pages.
Saving the state also registers atexit() callback and signal handler that
will ensure restoration of HugeTLB state.
Since many tests use both HugeTLB and THP, the atexit() callbacks and
signal handler are restoring both.
For kselftest_harness tests that run fixture setups and test in child
processes add a constructor that will save and restore settings in the
main process.
Link: https://lore.kernel.org/20260511162840.375890-29-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Reviewed-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:24 -07:00
Mike Rapoport (Microsoft)
024ec9a7e0
selftests/mm: hugepage_settings: rename and rework get_free_hugepages()
...
... to hugetlb_free_default_pages() for consistency with
hugetlb_nr_default_pages().
Make hugetlb_free_default_pages() use hugetlb_sysfs_path() helper instead
of parsing /proc/meminfo.
Link: https://lore.kernel.org/20260511162840.375890-28-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:24 -07:00
Mike Rapoport (Microsoft)
27477b28b7
selftests/mm: hugepage_settings: add APIs to get and set nr_hugepages
...
Add APIs that allow reading and writing of
/sys/kernel/mm/hugepages/hugepages-NkB/nr_hugepages
to detect and change the amount of HugeTLB pages of different sizes.
Link: https://lore.kernel.org/20260511162840.375890-27-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:24 -07:00
Mike Rapoport (Microsoft)
0020a1f5ca
selftests/mm: hugepage_settings: use unsigned long in detect_hugetlb_page_size
...
... instead of size_t to avoid type mismatch in 32 and 64 bit builds.
Link: https://lore.kernel.org/20260511162840.375890-26-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:23 -07:00
Mike Rapoport (Microsoft)
1bdc1698e6
selftests/mm: move HugeTLB helpers to hugepage_settings
...
Move library functions that abstract HugeTLB /proc and /sysfs access from
vm_util to hugepage_settings.
This will help creating common helpers that save and restore HugeTLB and
THP settings.
Link: https://lore.kernel.org/20260511162840.375890-25-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:23 -07:00
Mike Rapoport (Microsoft)
81afb1ee7b
selftests/mm: rename thp_settings.[ch] to hugepage_settings.[ch]
...
... for upcoming addition of HugeTLB helpers.
Link: https://lore.kernel.org/20260511162840.375890-24-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:23 -07:00
Mike Rapoport (Microsoft)
d4cdf641b0
selftests/mm: add atexit() and signal handlers to thp_settings
...
khugepaged registers atexit() and signal handlers that ensure that THP
settings are restored regardless of how the test exited.
Make these handlers available for all users of thp_settings.
The call to thp_save_settings() installs thp_restore_settings as the
atexit() callback and makes sure that signals that kill a process would
still call exit() and atexit() callback.
Update child process in khugepaged tests using thp_settings to use _exit()
instead of exit() to avoid altering THP settings in the middle of a test.
Remove redundant THP cleanup from folio_split_race_test.c.
Link: https://lore.kernel.org/20260511162840.375890-23-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:23 -07:00
Mike Rapoport (Microsoft)
7b35a64019
selftests/mm: va_high_addr_switch: use kselftest framework
...
Convert va_high_addr_switch test to use kselftest framework for reporting
and tracking successful and failing runs.
Link: https://lore.kernel.org/20260511162840.375890-22-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:22 -07:00
Mike Rapoport (Microsoft)
462de7f58c
selftests/mm: uffd-unit-tests: use kselftest framework
...
Convert uffd-unit-tests to use kselftest framework for reporting and
tracking successful and failing runs.
Link: https://lore.kernel.org/20260511162840.375890-21-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Donet Tom <donettom@linux.ibm.com >
Reviewed-by: Mark Brown <broonie@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:22 -07:00
Mike Rapoport (Microsoft)
a7d3925151
selftests/mm: uffd-stress: use kselftest framework
...
Convert uffd-stress test to use kselftest framework for reporting and
tracking successful and failing runs.
Link: https://lore.kernel.org/20260511162840.375890-20-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Mark Brown <broonie@kernel.org >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:22 -07:00
Mike Rapoport (Microsoft)
4cf3a2657b
selftests/mm: uffd-common: use kselftest framework
...
Update err() and errexit() to use ksft_print_msg() and ksft_exit_fail().
This is preparatory change required to update userfaulfd tests to use
kselftest framework.
Link: https://lore.kernel.org/20260511162840.375890-19-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Luiz Capitulino <luizcap@redhat.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:21 -07:00
Mike Rapoport (Microsoft)
04d0c0092b
selftests/mm: protection_keys: use kselftest framework
...
Convert protection_keys test to use kselftest framework for reporting and
tracking successful and failing runs.
Adjust dprintf0() printouts to use "#" in the beginning of the line for
TAP compatibility.
Link: https://lore.kernel.org/20260511162840.375890-18-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:21 -07:00
Mike Rapoport (Microsoft)
a932f05e2e
selftests/mm: protection_keys: use descriptive test names in the output
...
Replace the numeric test index in TAP output with the actual test function
name.
Use a structure containing function pointer and its name rather than only
the function pointer in the pkey_tests array.
Link: https://lore.kernel.org/20260511162840.375890-17-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Donet Tom <donettom@linux.ibm.com >
Reviewed-by: Mark Brown <broonie@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:21 -07:00
Mike Rapoport (Microsoft)
4cc68d5f52
selftests/mm: ksm_tests: use kselftest framework
...
Convert ksm_tests to use kselftest framework for reporting and tracking
successful and failing runs.
Link: https://lore.kernel.org/20260511162840.375890-16-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Donet Tom <donettom@linux.ibm.com >
Reviewed-by: Mark Brown <broonie@kernel.org >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:21 -07:00
Mike Rapoport (Microsoft)
3ab1f01b09
selftests/mm: khugepaged: use kselftest framework
...
Convert khugepaged tests to use kselftest framework for reporting and
tracking successful and failing runs.
The conversion is mostly about replacing printf()/perror() + exit() pairs
with their ksft_ counterparts.
The nice colored success and failure indications are left intact.
Replace the progress report in collapse_compound_extreme() with a single
ksft_print_msg() to avoid headache with formatting and make the test
output more concise.
[rppt@kernel.org: make the output TAP-compatible]
[ziy@nvidia.com: update for "Remove CONFIG_READ_ONLY_THP_FOR_FS and enable file THP for writable files", v6]
https://lore.kernel.org/20260517135416.1434539-1-ziy@nvidia.com
Link: https://lore.kernel.org/20260511162840.375890-15-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Cc: Li Wang <li.wang@linux.dev >
Cc: Sarthak Sharma <sarthak.sharma@arm.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:20 -07:00
Mike Rapoport (Microsoft)
5424015544
selftests/mm: khugepaged: group tests in an array
...
Currently khugepaged decides if a test can run using TEST() macro that
checks what mem_ops and collapse_context are set by the command line
arguments.
For better compatibility with ksefltest framework, add an array of 'struct
test_case's and redefine TEST() macro to conditionally add enabled tests
to that array.
Then execute the enabled test by looping the test_case's array.
Link: https://lore.kernel.org/20260511162840.375890-14-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Donet Tom <donettom@linux.ibm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:20 -07:00
Mike Rapoport (Microsoft)
5be449d0ea
selftests/mm: hugetlb-read-hwpoison: use kselftest framework
...
Convert hugetlb-read-hwpoison test to use kselftest framework for
reporting and tracking successful and failing runs.
Link: https://lore.kernel.org/20260511162840.375890-13-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Donet Tom <donettom@linux.ibm.com >
Reviewed-by: Mark Brown <broonie@kernel.org >
Tested-by: Li Wang <li.wang@linux.dev >
Reviewed-by: Li Wang <li.wang@linux.dev >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:20 -07:00
Mike Rapoport (Microsoft)
e9c43934be
selftests/mm: hugetlb_madv_vs_map: use kselftest framework
...
Convert hugetlb_madv_vs_map test to use kselftest framework for reporting
and tracking successful and failing runs.
Link: https://lore.kernel.org/20260511162840.375890-12-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Mark Brown <broonie@kernel.org >
Reviewed-by: Donet Tom <donettom@linux.ibm.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Sarthak Sharma <sarthak.sharma@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:20 -07:00
Mike Rapoport (Microsoft)
83ccc26e5e
selftests/mm: hugetlb-madvise: use kselftest framework
...
Convert hugetlb-madvise test to use kselftest framework for reporting and
tracking successful and failing runs.
While on it fix the check for base page size detection to actually use
base_page_size.
Link: https://lore.kernel.org/20260511162840.375890-11-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Donet Tom <donettom@linux.ibm.com >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:19 -07:00
Mike Rapoport (Microsoft)
40e9e3d760
selftests/mm: hugetlb-vmemmap: use kselftest framework
...
Convert hugetlb-vmemmap test to use kselftest framework for reporting and
tracking successful and failing runs.
Link: https://lore.kernel.org/20260511162840.375890-10-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Reviewed-by: Donet Tom <donettom@linux.ibm.com >
Reviewed-by: Mark Brown <broonie@kernel.org >
Tested-by: Sarthak Sharma <sarthak.sharma@arm.com >
Tested-by: Luiz Capitulino <luizcap@redhat.com >
Cc: Baolin Wang <baolin.wang@linux.alibaba.com >
Cc: Barry Song <baohua@kernel.org >
Cc: David Hildenbrand <david@kernel.org >
Cc: Dev Jain <dev.jain@arm.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Lance Yang <lance.yang@linux.dev >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Liam Howlett <liam@infradead.org >
Cc: Li Wang <li.wang@linux.dev >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Nico Pache <npache@redhat.com >
Cc: Peter Xu <peterx@redhat.com >
Cc: Ryan Roberts <ryan.roberts@arm.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Zi Yan <ziy@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-06-21 11:37:19 -07:00