]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
EDAC/synopsys: Fix error injection on Zynq UltraScale+
authorShubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Thu, 11 Jul 2024 10:06:56 +0000 (15:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:28:49 +0000 (16:28 +0200)
commitb3e360e00d21badf3c19da63110020cd03f60415
tree9268c756788852c18971d1db40b54f29e71b6680
parent23752ababd7243622b4643926e85fd78d14a8392
EDAC/synopsys: Fix error injection on Zynq UltraScale+

[ Upstream commit 35e6dbfe1846caeafabb49b7575adb36b0aa2269 ]

The Zynq UltraScale+ MPSoC DDR has a disjoint memory from 2GB to 32GB.
The DDR host interface has a contiguous memory so while injecting
errors, the driver should remove the hole else the injection fails as
the address translation is incorrect.

Introduce a get_mem_info() function pointer and set it for Zynq
UltraScale+ platform to return host address.

Fixes: 1a81361f75d8 ("EDAC, synopsys: Add Error Injection support for ZynqMP DDR controller")
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240711100656.31376-1-shubhrajyoti.datta@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/edac/synopsys_edac.c