[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250922082843.26722-1-xieyuanbin1@huawei.com>
Date: Mon, 22 Sep 2025 16:28:43 +0800
From: Xie Yuanbin <xieyuanbin1@...wei.com>
To: <arnd@...db.de>
CC: <Liam.Howlett@...cle.com>, <akpm@...ux-foundation.org>, <ardb@...nel.org>,
<dave@...ilevsky.ca>, <david@...hat.com>, <ebiggers@...nel.org>,
<kees@...nel.org>, <liaohua4@...wei.com>, <lilinjie8@...wei.com>,
<linmiaohe@...wei.com>, <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <linux-mm@...ck.org>,
<linux@...linux.org.uk>, <lorenzo.stoakes@...cle.com>, <mhocko@...e.com>,
<nao.horiguchi@...il.com>, <nathan@...nel.org>, <peterz@...radead.org>,
<rmk+kernel@...linux.org.uk>, <rostedt@...dmis.org>, <rppt@...nel.org>,
<surenb@...gle.com>, <vbabka@...e.cz>, <will@...nel.org>,
<xieyuanbin1@...wei.com>
Subject: Re: [RFC PATCH 1/2] ARM: mm: support memory-failure
> It would be helpful to be more specific about what you
> want to do with this.
>
> Are you working on a driver that would actually make use of
> the exported interface?
Thanks for your reply.
Yes, In fact, we have developed a hardware component to detect DDR bit
transitions (software does not sense the detection behavior). Once a bit
transition is detected, an interrupt is reported to the CPU.
On the software side, we have developed a driver module ko to register
the interrupt callback to perform soft page offline to the corresponding
physical pages.
In fact, we will export `soft_offline_page` for ko to use (we can ensure
that it is not called in the interrupt context), but I have looked at the
code and found that `memory_failure_queue` and `memory_failure` can also
be used, which are already exported.
> I see only a very small number of
> drivers that call memory_failure(), and none of them are
> usable on Arm.
I think that not all drivers are in the open source kernel code.
As far as I know, there should be similar third-party drivers in other
architectures that use memory-failure functions, like x86 or arm64.
I am not a specialist in drivers, so if I have made any mistakes,
please correct me.
Xie Yuanbin
Powered by blists - more mailing lists