Re: [PATCH v3] EDAC/versalnet: Report PFN and page offset for DDR errors

From: Borislav Petkov

Date: Thu May 14 2026 - 07:35:17 EST


On Mon, May 11, 2026 at 04:05:09PM +0530, Shubhrajyoti Datta wrote:
> Populate the EDAC location fields when reporting DDRMC CE/UE events.
>
> Compute the physical address from the decoded error info and pass the
> PFN along with the offset-within-page to edac_mc_handle_error(). This
> allows user space (mc_event consumers) to correlate memory errors with
> a real address.
>
> Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xxxxxxx>
> Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@xxxxxxxxx>
> ---
>
> Changes in v3:
> Update the comment for DDR address
>
> Changes in v2:
> Refactor the common code
>
> drivers/edac/versalnet_edac.c | 36 +++++++++++++++++------------------
> 1 file changed, 17 insertions(+), 19 deletions(-)

https://sashiko.dev/#/patchset/20260511103529.1853270-1-shubhrajyoti.datta%40amd.com

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette