diff options
| author | Ryan Roberts <[email protected]> | 2025-03-18 17:43:40 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-03-22 05:03:15 +0000 |
| commit | 735b3f7e773bd09d459537562754debd1f8e816b (patch) | |
| tree | 36a98cfe7031de959f23114046b913502a5722d1 /scripts/extract-fwblobs | |
| parent | docs/mm/damon/design: document active DAMOS filter type (diff) | |
| download | kernel-735b3f7e773bd09d459537562754debd1f8e816b.tar.gz kernel-735b3f7e773bd09d459537562754debd1f8e816b.zip | |
selftests/mm: uffd-unit-tests support for hugepages > 2M
uffd-unit-tests uses a memory area with a fixed 32M size. Then it
calculates the number of pages by dividing by page_size, which itself is
either the base page size or the PMD huge page size depending on the test
config. For the latter, we end up with nr_pages=1 for arm64 16K base
pages, and nr_pages=0 for 64K base pages. This doesn't end well.
So let's make the 32M size a floor and also ensure that we have at least 2
pages given the PMD size. With this change, the tests pass on arm64 64K
base page size configuration.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ryan Roberts <[email protected]>
Acked-by: Peter Xu <[email protected]>
Acked-by: Rafael Aquini <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions
