Re: [RFC PATCH 00/11] soc: mediatek: add a DRAM ECC error handling driver
From: Borislav Petkov
Date: Wed Nov 04 2026 - 23:53:54 EST
On Thu, Nov 05, 2026 at 04:19:27AM +0000, Santino Wang (王俊傑) wrote:
> Which existing interfaces would you recommend for obtaining retirement
> status from each memory owner? With that information available, can items
> 5–7 be maintained in userspace, or would they require support from an MTK
> driver?
mm/memory-failure.c
Look how the others use it.
What you write above sounds like you need an EDAC driver which collects and
reports errors. Look at examples in drivers/edac/ and there's some
documentation in Documentation/edac/. Perhaps ask AI too.
If the stuff you need is not there, you can extend the existing interfaces by
justifying the extensions properly.
But what you have - a completely separate RAS implementation, homegrown
somewhere else in the kernel doesn't fly. I'm actually wondering how you even
managed to do this driver without *finding* all the RAS/EDAC glue we have in
the kernel. Googling for it would've told you that there's something...
HTH.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette