riscv: Add support for memtest
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 25 Feb 2021 06:54:17 +0000 (14:54 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 10 Mar 2021 02:09:46 +0000 (18:09 -0800)
commitf6e5aedf470bd4522732595a85688052e3cbc03f
treee4502cd7b2f5bfe2bc845984dfe5ced1410e9962
parenta38fd8748464831584a19438cbb3082b5a2dab15
riscv: Add support for memtest

The riscv [rv32_]defconfig enabled CONFIG_MEMTEST,
but memtest feature is not supported in RISCV.

Add early_memtest() to support for memtest.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Documentation/admin-guide/kernel-parameters.txt
arch/riscv/mm/init.c