summaryrefslogtreecommitdiff
path: root/tools/testing/memblock/TODO
diff options
context:
space:
mode:
authorKarolina Drobnik <karolinadrobnik@gmail.com>2022-02-28 17:46:50 +0300
committerMike Rapoport <rppt@linux.ibm.com>2022-03-09 16:55:35 +0300
commit9d8f6abe980f98ffccad80b11d46df2116d7a5fc (patch)
treed0389d5f86f2e959384fab56845e59d342d1014d /tools/testing/memblock/TODO
parent8f98435d674e5b7ec382914d2755849f5a95754b (diff)
downloadlinux-9d8f6abe980f98ffccad80b11d46df2116d7a5fc.tar.xz
memblock tests: Add memblock_alloc_try_nid tests for bottom up
Add checks for memblock_alloc_try_nid for bottom up allocation direction. As the definition of this function is pretty close to the core memblock_alloc_range_nid, the test cases implemented here cover most of the code paths related to the memory allocations. The tested scenarios are: - Region can be allocated within the requested range (both with aligned and misaligned boundaries) - Region can be allocated between two already existing entries - Not enough space between already reserved regions - Memory at the range boundaries is reserved but there is enough space to allocate a new region - The memory range is too narrow but memory can be allocated before the maximum address - Edge cases: + Minimum address is below memblock_start_of_DRAM() + Maximum address is above memblock_end_of_DRAM() Add test case wrappers to test both directions in the same context. Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Link: https://lore.kernel.org/r/1c0ba11b8da5dc8f71ad45175c536fa4be720984.1646055639.git.karolinadrobnik@gmail.com
Diffstat (limited to 'tools/testing/memblock/TODO')
0 files changed, 0 insertions, 0 deletions