From: Xie Yuanbin <xieyuanbin1@huawei.com>
To: <linux@armlinux.org.uk>, <akpm@linux-foundation.org>,
<david@redhat.com>, <lorenzo.stoakes@oracle.com>,
<Liam.Howlett@oracle.com>, <vbabka@suse.cz>, <rppt@kernel.org>,
<surenb@google.com>, <mhocko@suse.com>, <linmiaohe@huawei.com>,
<nao.horiguchi@gmail.com>, <rmk+kernel@armlinux.org.uk>,
<ardb@kernel.org>, <nathan@kernel.org>, <ebiggers@kernel.org>,
<arnd@arndb.de>, <rostedt@goodmis.org>, <kees@kernel.org>,
<dave@vasilevsky.ca>, <peterz@infradead.org>
Cc: <will@kernel.org>, <linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <linux-mm@kvack.org>,
<liaohua4@huawei.com>, <lilinjie8@huawei.com>,
<xieyuanbin1@huawei.com>
Subject: [RFC PATCH 2/2] ARM: memory-failure: not select RAS and MEMORY_ISOLATION
Date: Mon, 22 Sep 2025 10:14:53 +0800 [thread overview]
Message-ID: <20250922021453.3939-2-xieyuanbin1@huawei.com> (raw)
In-Reply-To: <20250922021453.3939-1-xieyuanbin1@huawei.com>
For memory-failure on ARM, these features do not seem necessary.
Signed-off-by: Xie Yuanbin <xieyuanbin1@huawei.com>
---
mm/Kconfig | 4 ++--
mm/memory-failure.c | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/mm/Kconfig b/mm/Kconfig
index 034a1662d8c1..22eefc4747d5 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -742,22 +742,22 @@ 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
+ select MEMORY_ISOLATION if !ARM
+ select RAS if !ARM
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
select PROC_PAGE_MONITOR
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index a24806bb8e82..83b77caf41a1 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -1271,21 +1271,23 @@ static void update_per_node_mf_stats(unsigned long pfn,
++mf_stats->total;
}
/*
* "Dirty/Clean" indication is not 100% accurate due to the possibility of
* setting PG_dirty outside page lock. See also comment above set_page_dirty().
*/
static int action_result(unsigned long pfn, enum mf_action_page_type type,
enum mf_result result)
{
+#ifdef CONFIG_RAS
trace_memory_failure_event(pfn, type, result);
+#endif
if (type != MF_MSG_ALREADY_POISONED) {
num_poisoned_pages_inc(pfn);
update_per_node_mf_stats(pfn, result);
}
pr_err("%#lx: recovery action for %s: %s\n",
pfn, action_page_types[type], action_name[result]);
return (result == MF_RECOVERED || result == MF_DELAYED) ? 0 : -EBUSY;
--
2.48.1
next prev parent reply other threads:[~2025-09-22 2:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-22 2:14 [RFC PATCH 1/2] ARM: mm: support memory-failure Xie Yuanbin
2025-09-22 2:14 ` Xie Yuanbin [this message]
2025-09-22 8:15 ` [RFC PATCH 2/2] ARM: memory-failure: not select RAS and MEMORY_ISOLATION David Hildenbrand
2025-09-22 8:47 ` [RFC PATCH 1/2] ARM: mm: support memory-failure Xie Yuanbin
2025-09-22 6:37 ` Arnd Bergmann
2025-09-22 8:28 ` Xie Yuanbin
2025-09-22 12:51 ` Arnd Bergmann
2025-09-23 4:10 ` Xie Yuanbin
2025-11-03 16:53 ` David Hildenbrand (Red Hat)
2025-11-04 13:48 ` Xie Yuanbin
2025-10-22 3:58 ` Xie Yuanbin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250922021453.3939-2-xieyuanbin1@huawei.com \
--to=xieyuanbin1@huawei.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=ardb@kernel.org \
--cc=arnd@arndb.de \
--cc=dave@vasilevsky.ca \
--cc=david@redhat.com \
--cc=ebiggers@kernel.org \
--cc=kees@kernel.org \
--cc=liaohua4@huawei.com \
--cc=lilinjie8@huawei.com \
--cc=linmiaohe@huawei.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux@armlinux.org.uk \
--cc=lorenzo.stoakes@oracle.com \
--cc=mhocko@suse.com \
--cc=nao.horiguchi@gmail.com \
--cc=nathan@kernel.org \
--cc=peterz@infradead.org \
--cc=rmk+kernel@armlinux.org.uk \
--cc=rostedt@goodmis.org \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
--cc=vbabka@suse.cz \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox