* [PATCH] mm/memory-failure: not select MEMORY_ISOLATION
@ 2025-09-22 14:36 Xie Yuanbin
2025-09-23 14:16 ` Anshuman Khandual
2025-09-25 1:38 ` Miaohe Lin
0 siblings, 2 replies; 3+ messages in thread
From: Xie Yuanbin @ 2025-09-22 14:36 UTC (permalink / raw)
To: linmiaohe, nao.horiguchi, akpm, david, lorenzo.stoakes,
Liam.Howlett, vbabka, rppt, surenb, mhocko
Cc: will, linux-mm, linux-kernel
We added that "select MEMORY_ISOLATION" in commit ee6f509c3274 ("mm:
factor out memory isolate functions").
However, in commit add05cecef80 ("mm: soft-offline: don't free target
page in successful page migration") we remove the need for it,
where we removed the calls to set_migratetype_isolate() etc.
What CONFIG_MEMORY_FAILURE soft-offline support wants is migrate_pages()
support. But that comes with CONFIG_MIGRATION.
And isolate_folio_to_list() has nothing to do with CONFIG_MEMORY_ISOLATION.
Therefore, we can remove "select MEMORY_ISOLATION" of MEMORY_FAILURE.
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Xie Yuanbin <xieyuanbin1@huawei.com>
---
mm/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/mm/Kconfig b/mm/Kconfig
index 034a1662d8c1..0e26f4fc8717 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -742,21 +742,20 @@ config DEFAULT_MMAP_MIN_ADDR
This value can be changed after boot using the
/proc/sys/vm/mmap_min_addr tunable.
config ARCH_SUPPORTS_MEMORY_FAILURE
bool
config MEMORY_FAILURE
depends on MMU
depends on ARCH_SUPPORTS_MEMORY_FAILURE
bool "Enable recovery from hardware memory errors"
- select MEMORY_ISOLATION
select RAS
help
Enables code to recover from some memory failures on systems
with MCA recovery. This allows a system to continue running
even when some of its memory has uncorrected errors. This requires
special hardware support and typically ECC memory.
config HWPOISON_INJECT
tristate "HWPoison pages injector"
depends on MEMORY_FAILURE && DEBUG_KERNEL && PROC_FS
--
2.48.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mm/memory-failure: not select MEMORY_ISOLATION
2025-09-22 14:36 [PATCH] mm/memory-failure: not select MEMORY_ISOLATION Xie Yuanbin
@ 2025-09-23 14:16 ` Anshuman Khandual
2025-09-25 1:38 ` Miaohe Lin
1 sibling, 0 replies; 3+ messages in thread
From: Anshuman Khandual @ 2025-09-23 14:16 UTC (permalink / raw)
To: Xie Yuanbin, linmiaohe, nao.horiguchi, akpm, david,
lorenzo.stoakes, Liam.Howlett, vbabka, rppt, surenb, mhocko
Cc: will, linux-mm, linux-kernel
On 22/09/25 8:06 PM, Xie Yuanbin wrote:
> We added that "select MEMORY_ISOLATION" in commit ee6f509c3274 ("mm:
> factor out memory isolate functions").
> However, in commit add05cecef80 ("mm: soft-offline: don't free target
> page in successful page migration") we remove the need for it,
> where we removed the calls to set_migratetype_isolate() etc.
>
> What CONFIG_MEMORY_FAILURE soft-offline support wants is migrate_pages()
> support. But that comes with CONFIG_MIGRATION.
> And isolate_folio_to_list() has nothing to do with CONFIG_MEMORY_ISOLATION.
>
> Therefore, we can remove "select MEMORY_ISOLATION" of MEMORY_FAILURE.
>
> Acked-by: David Hildenbrand <david@redhat.com>
> Signed-off-by: Xie Yuanbin <xieyuanbin1@huawei.com>
> ---
> mm/Kconfig | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/mm/Kconfig b/mm/Kconfig
> index 034a1662d8c1..0e26f4fc8717 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -742,21 +742,20 @@ config DEFAULT_MMAP_MIN_ADDR
> This value can be changed after boot using the
> /proc/sys/vm/mmap_min_addr tunable.
>
> config ARCH_SUPPORTS_MEMORY_FAILURE
> bool
>
> config MEMORY_FAILURE
> depends on MMU
> depends on ARCH_SUPPORTS_MEMORY_FAILURE
> bool "Enable recovery from hardware memory errors"
> - select MEMORY_ISOLATION
> select RAS
> help
> Enables code to recover from some memory failures on systems
> with MCA recovery. This allows a system to continue running
> even when some of its memory has uncorrected errors. This requires
> special hardware support and typically ECC memory.
>
> config HWPOISON_INJECT
> tristate "HWPoison pages injector"
> depends on MEMORY_FAILURE && DEBUG_KERNEL && PROC_FS
MEMORY_FAILURE does not need MEMORY_ISOLATION to be selected
(and built) in order to be built independently.
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mm/memory-failure: not select MEMORY_ISOLATION
2025-09-22 14:36 [PATCH] mm/memory-failure: not select MEMORY_ISOLATION Xie Yuanbin
2025-09-23 14:16 ` Anshuman Khandual
@ 2025-09-25 1:38 ` Miaohe Lin
1 sibling, 0 replies; 3+ messages in thread
From: Miaohe Lin @ 2025-09-25 1:38 UTC (permalink / raw)
To: Xie Yuanbin
Cc: will, linux-mm, linux-kernel, nao.horiguchi, akpm, david,
lorenzo.stoakes, Liam.Howlett, vbabka, rppt, surenb, mhocko
On 2025/9/22 22:36, Xie Yuanbin wrote:
> We added that "select MEMORY_ISOLATION" in commit ee6f509c3274 ("mm:
> factor out memory isolate functions").
> However, in commit add05cecef80 ("mm: soft-offline: don't free target
> page in successful page migration") we remove the need for it,
> where we removed the calls to set_migratetype_isolate() etc.
>
> What CONFIG_MEMORY_FAILURE soft-offline support wants is migrate_pages()
> support. But that comes with CONFIG_MIGRATION.
> And isolate_folio_to_list() has nothing to do with CONFIG_MEMORY_ISOLATION.
>
> Therefore, we can remove "select MEMORY_ISOLATION" of MEMORY_FAILURE.
>
> Acked-by: David Hildenbrand <david@redhat.com>
> Signed-off-by: Xie Yuanbin <xieyuanbin1@huawei.com>
Acked-by: Miaohe Lin <linmiaohe@huawei.com>
Thanks.
.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-25 1:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-22 14:36 [PATCH] mm/memory-failure: not select MEMORY_ISOLATION Xie Yuanbin
2025-09-23 14:16 ` Anshuman Khandual
2025-09-25 1:38 ` Miaohe Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox