diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2018-12-14 14:41:58 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2018-12-17 11:32:20 -0800 |
commit | 4e460f656e9c8756fae32440ef3f6887e2ed4808 (patch) | |
tree | e706cfb7782f27578524e57a87d167b267b2ab5e /arch/xtensa | |
parent | 037602705109ec2ab96340bea93ad87daa3ac046 (diff) | |
download | linux-4e460f656e9c8756fae32440ef3f6887e2ed4808.tar.gz linux-4e460f656e9c8756fae32440ef3f6887e2ed4808.tar.bz2 linux-4e460f656e9c8756fae32440ef3f6887e2ed4808.zip |
xtensa: support memtest
Call early_memtest from the bootmem_init to run memtest if it's
configured and enabled.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/mm/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c index 30a48bba4a47..d49861099684 100644 --- a/arch/xtensa/mm/init.c +++ b/arch/xtensa/mm/init.c @@ -60,6 +60,9 @@ void __init bootmem_init(void) max_pfn = PFN_DOWN(memblock_end_of_DRAM()); max_low_pfn = min(max_pfn, MAX_LOW_PFN); + early_memtest((phys_addr_t)min_low_pfn << PAGE_SHIFT, + (phys_addr_t)max_low_pfn << PAGE_SHIFT); + memblock_set_current_limit(PFN_PHYS(max_low_pfn)); dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); |