linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] x86/mm: support memory-failure on 32-bits with SPARSEMEM
@ 2025-11-03  3:35 Xie Yuanbin
  2025-11-03  3:35 ` [PATCH 2/2] mm/memory-failure: remove the selection of RAS Xie Yuanbin
  2025-11-03 12:08 ` David Hildenbrand
  0 siblings, 2 replies; 8+ messages in thread
From: Xie Yuanbin @ 2025-11-03  3:35 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, hpa, akpm, david, lorenzo.stoakes,
	Liam.Howlett, vbabka, rppt, surenb, mhocko, linmiaohe,
	nao.horiguchi, luto, peterz, tony.luck
  Cc: x86, linux-kernel, linux-mm, linux-edac, will, liaohua4,
	lilinjie8, Xie Yuanbin

The historical commit d949f36f1865c60239d4 ("x86: Fix hwpoison code
related build failure on 32-bit NUMAQ"), disabled x86_32's
memory-failure when SPARSEMEM is enabled, because the number of
page-flags are insufficient.

The commit 09022bc196d23484a7a5 ("mm: remove PG_error") removes a
page flag, so memory-failure can now be enable now.

Signed-off-by: Xie Yuanbin <xieyuanbin1@huawei.com>
---
 arch/x86/Kconfig | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index d55c01efd7c2..f9ee57a55500 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -750,13 +750,10 @@ config IOSF_MBI_DEBUG
 
 config X86_SUPPORTS_MEMORY_FAILURE
 	def_bool y
 	# MCE code calls memory_failure():
 	depends on X86_MCE
-	# On 32-bit this adds too big of NODES_SHIFT and we run out of page flags:
-	# On 32-bit SPARSEMEM adds too big of SECTIONS_WIDTH:
-	depends on X86_64 || !SPARSEMEM
 	select ARCH_SUPPORTS_MEMORY_FAILURE
 
 config X86_32_IRIS
 	tristate "Eurobraille/Iris poweroff module"
 	depends on X86_32
-- 
2.51.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-11-04  2:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-03  3:35 [PATCH 1/2] x86/mm: support memory-failure on 32-bits with SPARSEMEM Xie Yuanbin
2025-11-03  3:35 ` [PATCH 2/2] mm/memory-failure: remove the selection of RAS Xie Yuanbin
2025-11-03 12:15   ` David Hildenbrand
2025-11-03 12:39     ` Borislav Petkov
2025-11-04  2:20       ` [PATCH 1/2] x86/mm: support memory-failure on 32-bits with SPARSEMEM Xie Yuanbin
2025-11-03 12:08 ` David Hildenbrand
2025-11-03 13:23   ` Xie Yuanbin
2025-11-03 14:43     ` Dave Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox