]> 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)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 1 Aug 2024 14:27:46 +0000 (16:27 +0200)
commit35e6dbfe1846caeafabb49b7575adb36b0aa2269
tree938bda71e05b56c3e569b9cfb97a81ecdfa3f750
parent8400291e289ee6b2bf9779ff1c83a291501f017b
EDAC/synopsys: Fix error injection on Zynq UltraScale+

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
drivers/edac/synopsys_edac.c