Skip to content

Commit be76cea

Browse files
SherrySun5suryasaimadhu
authored andcommitted
EDAC/synopsys: Use the correct register to disable the error interrupt on v3 hw
v3.x Synopsys EDAC DDR doesn't have the QOS Interrupt register. Use the ECC Clear Register to disable the error interrupts instead. Fixes: f7824de ("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-2-sherry.sun@nxp.com
1 parent ff69927 commit be76cea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/edac/synopsys_edac.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,11 @@ static void enable_intr(struct synps_edac_priv *priv)
852852
static void disable_intr(struct synps_edac_priv *priv)
853853
{
854854
/* Disable UE/CE Interrupts */
855-
writel(DDR_QOSUE_MASK | DDR_QOSCE_MASK,
856-
priv->baseaddr + DDR_QOS_IRQ_DB_OFST);
855+
if (priv->p_data->quirks & DDR_ECC_INTR_SELF_CLEAR)
856+
writel(0x0, priv->baseaddr + ECC_CLR_OFST);
857+
else
858+
writel(DDR_QOSUE_MASK | DDR_QOSCE_MASK,
859+
priv->baseaddr + DDR_QOS_IRQ_DB_OFST);
857860
}
858861

859862
static int setup_irq(struct mem_ctl_info *mci,

0 commit comments

Comments
 (0)