Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1703907 > unrolled thread
| Started by | Michal Simek <michal.simek@xilinx.com> |
|---|---|
| First post | 2017-08-04 14:10 +0200 |
| Last post | 2017-08-04 14:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 5/5] edac: synopsys: Enable CE and UE interrupts for ZynqMP DDRC Michal Simek <michal.simek@xilinx.com> - 2017-08-04 14:10 +0200
| From | Michal Simek <michal.simek@xilinx.com> |
|---|---|
| Date | 2017-08-04 14:10 +0200 |
| Subject | [PATCH 5/5] edac: synopsys: Enable CE and UE interrupts for ZynqMP DDRC |
| Message-ID | <uaJAu-6MJ-25@gated-at.bofh.it> |
From: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com> This patch enables Corrected and Uncorrected Error interrupts for ZynqMP DDRC controller Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com> Reviewed-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> --- drivers/edac/synopsys_edac.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index 501ef447df37..6ce2f4c4cb3d 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -165,6 +165,8 @@ #define DDR_QOSUE_MASK 0x4 #define DDR_QOSCE_MASK 0x2 #define ECC_CE_UE_INTR_MASK 0x6 +#define DDR_QOS_IRQ_EN_OFST 0x20208 +#define DDR_QOS_IRQ_DB_OFST 0x2020C /* ECC Corrected Error Register Mask and Shifts*/ #define ECC_CEADDR0_RW_MASK 0x3FFFF @@ -1115,6 +1117,10 @@ static int synps_edac_mc_probe(struct platform_device *pdev) edac_printk(KERN_ERR, EDAC_MC, "Failed to request Irq\n"); goto free_edac_mc; } + + /* Enable UE/CE Interrupts */ + writel((DDR_QOSUE_MASK | DDR_QOSCE_MASK), + priv->baseaddr + DDR_QOS_IRQ_EN_OFST); } rc = edac_mc_add_mc(mci); @@ -1157,6 +1163,10 @@ static int synps_edac_mc_remove(struct platform_device *pdev) struct synps_edac_priv *priv; priv = mci->pvt_info; + if (priv->p_data->quirks & DDR_ECC_INTR_SUPPORT) + /* Disable UE/CE Interrupts */ + writel((DDR_QOSUE_MASK | DDR_QOSCE_MASK), + priv->baseaddr + DDR_QOS_IRQ_DB_OFST); edac_mc_del_mc(&pdev->dev); if (priv->p_data->quirks & DDR_ECC_DATA_POISON_SUPPORT) synps_edac_remove_sysfs_attributes(mci); -- 1.9.1
Back to top | Article view | linux.kernel
csiph-web