[PATCH] LoongArch: Select ARCH_USE_MEMTEST

WangYuli posted 1 patch 8 months ago
arch/loongarch/Kconfig | 1 +
1 file changed, 1 insertion(+)
[PATCH] LoongArch: Select ARCH_USE_MEMTEST
Posted by WangYuli 8 months ago
As of commit dce44566192e ("mm/memtest: add ARCH_USE_MEMTEST"),
architectures must select ARCH_USE_MEMTESET to enable CONFIG_MEMTEST.

Commit 628c3bb40e9a ("LoongArch: Add boot and setup routines") added
support for early_memtest but did not select ARCH_USE_MEMTESET.

Fixes: 628c3bb40e9a ("LoongArch: Add boot and setup routines")
Tested-by: Erpeng Xu <xuerpeng@uniontech.com>
Tested-by: Yuli Wang <wangyuli@uniontech.com>
Signed-off-by: Yuli Wang <wangyuli@uniontech.com>
---
 arch/loongarch/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
index 54ed5b59a690..1ce9b8f5fd03 100644
--- a/arch/loongarch/Kconfig
+++ b/arch/loongarch/Kconfig
@@ -74,6 +74,7 @@ config LOONGARCH
 	select ARCH_SUPPORTS_RT
 	select ARCH_USE_BUILTIN_BSWAP
 	select ARCH_USE_CMPXCHG_LOCKREF
+	select ARCH_USE_MEMTEST
 	select ARCH_USE_QUEUED_RWLOCKS
 	select ARCH_USE_QUEUED_SPINLOCKS
 	select ARCH_WANT_DEFAULT_BPF_JIT
-- 
2.49.0
Re: [PATCH] LoongArch: Select ARCH_USE_MEMTEST
Posted by Huacai Chen 7 months, 3 weeks ago
Applied, thanks.

Huacai

On Thu, Apr 17, 2025 at 4:08 PM WangYuli <wangyuli@uniontech.com> wrote:
>
> As of commit dce44566192e ("mm/memtest: add ARCH_USE_MEMTEST"),
> architectures must select ARCH_USE_MEMTESET to enable CONFIG_MEMTEST.
>
> Commit 628c3bb40e9a ("LoongArch: Add boot and setup routines") added
> support for early_memtest but did not select ARCH_USE_MEMTESET.
>
> Fixes: 628c3bb40e9a ("LoongArch: Add boot and setup routines")
> Tested-by: Erpeng Xu <xuerpeng@uniontech.com>
> Tested-by: Yuli Wang <wangyuli@uniontech.com>
> Signed-off-by: Yuli Wang <wangyuli@uniontech.com>
> ---
>  arch/loongarch/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
> index 54ed5b59a690..1ce9b8f5fd03 100644
> --- a/arch/loongarch/Kconfig
> +++ b/arch/loongarch/Kconfig
> @@ -74,6 +74,7 @@ config LOONGARCH
>         select ARCH_SUPPORTS_RT
>         select ARCH_USE_BUILTIN_BSWAP
>         select ARCH_USE_CMPXCHG_LOCKREF
> +       select ARCH_USE_MEMTEST
>         select ARCH_USE_QUEUED_RWLOCKS
>         select ARCH_USE_QUEUED_SPINLOCKS
>         select ARCH_WANT_DEFAULT_BPF_JIT
> --
> 2.49.0
>