summaryrefslogtreecommitdiff
path: root/tools/testing/memblock/TODO
diff options
context:
space:
mode:
authorShaoqin Huang <shaoqin.huang@intel.com>2022-10-11 09:21:21 +0300
committerMike Rapoport <rppt@linux.ibm.com>2022-10-31 11:15:00 +0300
commit5b27dd7968b9c916da4af48d0310f94152744f8e (patch)
tree4aa0f0e7020c65dd727f50484da29345ca3bb947 /tools/testing/memblock/TODO
parent085bdaa6eb1476ec054164bdc4001bc3916ff5cb (diff)
downloadlinux-5b27dd7968b9c916da4af48d0310f94152744f8e.tar.xz
memblock test: Add test to memblock_reserve() 129th region
Reserve 129th region in the memblock, and this will trigger the memblock_double_array() function, this needs valid memory regions. So using dummy_physical_memory_init() to allocate a valid memory region. At the same time, reserve 128 faked memory region, and make sure these reserved region not intersect with the valid memory region. So memblock_double_array() will choose the valid memory region, and it will success. Also need to restore the reserved.regions after memblock_double_array(), to make sure the subsequent tests can run as normal. Signed-off-by: Shaoqin Huang <shaoqin.huang@intel.com> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Link: https://lore.kernel.org/r/20221011062128.49359-3-shaoqin.huang@intel.com
Diffstat (limited to 'tools/testing/memblock/TODO')
0 files changed, 0 insertions, 0 deletions