diff options
author | Rebecca Mckeever <remckee0@gmail.com> | 2022-11-07 09:28:07 +0300 |
---|---|---|
committer | Mike Rapoport <rppt@linux.ibm.com> | 2022-11-08 10:50:24 +0300 |
commit | b6df23edb1ba65b0b46788a872ddc85dfe86ccf5 (patch) | |
tree | 4278bfd4bb53750356ab6166e3b4d3d818219400 /tools/testing/crypto | |
parent | bfc05a4ce3650a1e5a47ccdaf8c87f814829b4a7 (diff) | |
download | linux-b6df23edb1ba65b0b46788a872ddc85dfe86ccf5.tar.xz |
memblock tests: add bottom-up NUMA tests for memblock_alloc_exact_nid_raw
Add tests for memblock_alloc_exact_nid_raw() where the simulated physical
memory is set up with multiple NUMA nodes. Additionally, all of these
tests set nid != NUMA_NO_NODE. These tests are run with a bottom-up
allocation direction.
The tested scenarios are:
Range unrestricted:
- region can be allocated in the specific node requested:
+ there are no previously reserved regions
+ the requested node is partially reserved but has enough space
Range restricted:
- region can be allocated in the specific node requested after dropping
min_addr:
+ range partially overlaps with two different nodes, where the
first node is the requested node
+ range partially overlaps with two different nodes, where the
requested node ends before min_addr
+ range overlaps with multiple nodes along node boundaries, and
the requested node ends before min_addr
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Rebecca Mckeever <remckee0@gmail.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/935f0eed5e06fd44dc67d9f49b277923d7896bd3.1667802195.git.remckee0@gmail.com
Diffstat (limited to 'tools/testing/crypto')
0 files changed, 0 insertions, 0 deletions