]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
EDAC/synopsys: Re-enable the error interrupts on v3 hw
authorSherry Sun <sherry.sun@nxp.com>
Wed, 27 Apr 2022 01:51:37 +0000 (09:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:42 +0000 (15:10 +0200)
commit7e1cf435de0b3a0495038c470fe8c2b0941fd1e2
tree054cfbafb6a79aaf38fc31480b4cc268c3b051ac
parent9a9187f364ad9742546ebe401d952c9e4f83a781
EDAC/synopsys: Re-enable the error interrupts on v3 hw

[ Upstream commit 4bcffe941758ee17becb43af3b25487f848f6512 ]

zynqmp_get_error_info() writes 0 to the ECC_CLR_OFST register after
an interrupt for a {un-,}correctable error is raised, which disables
the error interrupts. Then the interrupt handler will be called only
once. Therefore, re-enable the error interrupt line at the end of
intr_handler() for v3.x Synopsys EDAC DDR.

Fixes: f7824ded4149 ("EDAC/synopsys: Add support for version 3 of the Synopsys EDAC DDR")
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Shubhrajyoti Datta <Shubhrajyoti.datta@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220427015137.8406-3-sherry.sun@nxp.com
Stable-dep-of: 35e6dbfe1846 ("EDAC/synopsys: Fix error injection on Zynq UltraScale+")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/edac/synopsys_edac.c