From patchwork Thu Apr 21 01:53:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sherry Sun X-Patchwork-Id: 12820993 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D217C433F5 for ; Thu, 21 Apr 2022 01:56:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357029AbiDUB7e (ORCPT ); Wed, 20 Apr 2022 21:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238864AbiDUB7d (ORCPT ); Wed, 20 Apr 2022 21:59:33 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2089.outbound.protection.outlook.com [40.107.20.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85DC3333; Wed, 20 Apr 2022 18:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c9tbXuSd6zHGBRDXf2+0EUvoRB9QKcmdNSNq/83MLps9n6cMpXIKnYtGX0G1VrfaxMC3inHZ0+lnLFqakmSkg9UtA30X6u4bFng9YNz3MWJ0T9N2HjOH38PwBhOP7h03uGfP1tEiSMSwtrs+mS94XFlC5eS94SgiUI3+LnZdjKBgPJGiEAAvs8m5iRmBxDnOI8wOkmQSzZMfxMrDY6vzbtezAxOp6crV64cKM4zofJtHnEQ9td0EhtRyFUOdVE69/DW5ZE/rska0NnSzLe1EjuBdcWGBdoCE4CVc8YwSwpEOoy3LiiZ6wJw84jzNLIpnM5Z2ZE3l4TWXU6l8mPGpcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dmedbkzsrtNbfac0i1cx10rR+ThhukgbfoNnb24Ofbo=; b=E5/TjHaOBHGbIU8XNlPNbNojOSf2X+aRH/Zl5cqat+aYBbrGDTylhc6ldHZbF3bdsdXIkY+isya3BtynCRIs6u91mMRYhoFIqdDRR02MCK/87uOZL9MZMFWqEyhkWK6LnHB0kAtvAU1PFj3dD+j8AHd4OLJcCkZYJ+weQrwH8Kw5oi3jYU+j4iIjDIaQgZ4qRe6uYMO3H5g3mqWsyoKiO+3qjfeCsmAu9XLzMzIlmwa1OsgmWI6DfIRCYxbuFAbtucyW0b+nww/69xzMXllw+ujVUwra8g8felXm9r+6Xz1fCq3DCjvkqQp5/Y2i0hIxDcWzo8hjCRBUmmAGi4iaJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dmedbkzsrtNbfac0i1cx10rR+ThhukgbfoNnb24Ofbo=; b=HCeZ/8niAK3xOxddNYZ09o+cOc7Q/WYClxRLwtkrnoSY0jT/aLVg118c2zs++24yT+HnQlL8uRL6SS1kewRukE0jjYC6KPMfMNcBt/rmHttsm6GRYacq3rPdtxQEZsJEb5IbtGFpUAJde650eHt8ZPq+ikvRm5jeEraJob6HUPQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) by DBBPR04MB7564.eurprd04.prod.outlook.com (2603:10a6:10:1f7::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Thu, 21 Apr 2022 01:56:43 +0000 Received: from AS8PR04MB8404.eurprd04.prod.outlook.com ([fe80::55a2:d9e8:2c99:1433]) by AS8PR04MB8404.eurprd04.prod.outlook.com ([fe80::55a2:d9e8:2c99:1433%4]) with mapi id 15.20.5186.013; Thu, 21 Apr 2022 01:56:43 +0000 From: Sherry Sun To: michal.simek@xilinx.com, bp@alien8.de, Shubhrajyoti.datta@xilinx.com, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rric@kernel.org Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com Subject: [PATCH V2 1/2] EDAC: synopsys: Add disable_intr support for V3.X Synopsys EDAC DDR Date: Thu, 21 Apr 2022 09:53:12 +0800 Message-Id: <20220421015313.5747-2-sherry.sun@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220421015313.5747-1-sherry.sun@nxp.com> References: <20220421015313.5747-1-sherry.sun@nxp.com> X-ClientProxiedBy: SI2PR02CA0009.apcprd02.prod.outlook.com (2603:1096:4:194::11) To AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 721845a6-4a9d-48f0-c772-08da233a2f02 X-MS-TrafficTypeDiagnostic: DBBPR04MB7564:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YV2niFcFm7ht+2M0TjEESft1kS894NFxGeXyqhh1kYI7wXzsoovDGNJOiFvt0WdPUrtB8bWPg0hnJATxmd1Mx20NaJN3NE2z1jxsJbac5vAowX2Eo8dcswR5NmvGzrgRMFJ/qRerZvcZRvyJByZqiF7GEFivc9oqADgMPfqI9JfiuL/dKQUwMsrifO+gCX8Fb1QtKSZiUxNRi7EBcXXixdoN3F3U8DYxrJuZwnVEIm0vbhz4oiSgOnu0N8KbwKugkGCEAUQcYhvOGK9jUxOYzgkCkCzSqF23eeVdaBx7Q8dsZHmaSbUZSqyAeXiJ9wlU7GEuRlUaSQjgBcyg6W+enCLT5/4xwLrXjSE/y8MlDLXAKEo6Pxuo03EnxyhJbipm1oJsgA05C5ZWBe9XT3phdTV5O7xxbXK2zMnpEBKXX799gwQjTnysdt55NqeNUxTwha+GmaKmxFrGwTKGaUVW1wXhwZqV0mAuPZTOs3weRDWJ6V8iSXekp2XC20+IWC2LiSPw/fSdIu3YWk8GEGZtAmc+j7W5Tjd/znaLzKeZNEPv6UzCUm88p00869i8nOp4hQYqG2QznajjKrfHBNa49SAhVYy+yE/G5VyhKpBqRWCDIqtXkmy6HfXwPYSjGF+WJVLteVbLZfjTrDMOQAenbdHJGv4rIbxs/ntU4LS/wKk9fdL7qxtpPHmapY20u7kpCj5FxznLOH95NPId3Q0Z0Hm9PWLoU70akxVlYUpBM59Wl6PVCv8OOFuDerI+2J8Q X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8404.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(86362001)(7416002)(38100700002)(38350700002)(508600001)(8936002)(5660300002)(6486002)(316002)(52116002)(6506007)(4326008)(8676002)(66476007)(66556008)(66946007)(6666004)(186003)(36756003)(83380400001)(2906002)(2616005)(6512007)(26005)(44832011)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OLKt1ErevKOs/2CQyvLdFxDBVRKWv39hSemhsDoYAYV4cmjxZz+Lg1uBAVh2oaicQEh01aEmCkjxg61naainIPbPB7IT+rQHrmjLmMPGCb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NpuAItAabsaTqCUeWxwqKgFdoIaTOxo8VSyLOPVc2MM1lmeY7HMgppdj52dozRiacYSCjr27xdygMtLDZCoBhYfrsV9QJL8SH/t1LrjuqU/BO8QdbU+E4zvbBC+tKQwqLXg5m5fQwFzKBMhj3dFrqeXJY2eNUzG1evWoTv/eCgcZ4G3xGUBZ6+67V7r46PoM/93Fh7QlyBaTFjO00HsnYc79dQ5tCPzcJJRUolWfw4INSr11cmVe9J1Lxicw6XQmPMcPXnCWKSlEjgzM+pr1o85/jBA3ZO3F7SBgRCH06SzEifC6RyOg5YkxxfnjDkJUR7aNnJobIJDBJQiZskIOAQ7HKI9S4tu240fhoVZ6d8RDEmPaVA2nu/mshJtzd9FanAKTf6CcmHwMZ2BO5Pucpqe9KPcZ3G0g/M9VvqkzRGs3gngqqIq+PKTycxHx1OWk4Rm/vtyrE/E68kXTU5fj/QQoT8Xm5YsXN2sJkAqxyBmQ+BRDT0nQTzFJPRUqH4+zS8rRjNye4NAPJAL9dqqKFMEqA22azx9fueq5jYi0RBmtrOdgj/1HD22xuA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 721845a6-4a9d-48f0-c772-08da233a2f02 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8404.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2022 01:56:43.2945 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BJfY5N8AZXihtLjWFKYSgdu2k+kxvO/WalD5NdUkmQZGhaUtbSOD+uvOJoYRKtux2Jc1B2ZAluuOZlSvBoTDgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7564 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org V3.X Synopsys EDAC DDR doesn't have the QOS Interrupt register, need to change to use the ECC Clear Register to disable the interrupts. Signed-off-by: Sherry Sun Reviewed-by: Shubhrajyoti Datta Acked-by: Michal Simek --- Changes in V2: 1. Add the Reviewed-by and Acked-by tag. --- drivers/edac/synopsys_edac.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index 40b1abeca856..88a481043d4c 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -865,8 +865,11 @@ static void enable_intr(struct synps_edac_priv *priv) static void disable_intr(struct synps_edac_priv *priv) { /* Disable UE/CE Interrupts */ - writel(DDR_QOSUE_MASK | DDR_QOSCE_MASK, - priv->baseaddr + DDR_QOS_IRQ_DB_OFST); + if (priv->p_data->quirks & DDR_ECC_INTR_SELF_CLEAR) + writel(0x0, priv->baseaddr + ECC_CLR_OFST); + else + writel(DDR_QOSUE_MASK | DDR_QOSCE_MASK, + priv->baseaddr + DDR_QOS_IRQ_DB_OFST); } static int setup_irq(struct mem_ctl_info *mci, From patchwork Thu Apr 21 01:53:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sherry Sun X-Patchwork-Id: 12820994 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59265C433EF for ; Thu, 21 Apr 2022 01:56:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383735AbiDUB7l (ORCPT ); Wed, 20 Apr 2022 21:59:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383734AbiDUB7j (ORCPT ); Wed, 20 Apr 2022 21:59:39 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2071.outbound.protection.outlook.com [40.107.104.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 179BF11C11; Wed, 20 Apr 2022 18:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dH7oapXC0hPQY0wv0NFN6tz9HtzIrBdqNzDsrf/wj012WqLzuwGrr82eCv/5Q04D5fFufFlJZ8JFkfePtV1NzIye7NtCY5VJVYBImcDnFrib25QiuS3zVTrmor1SCNjC3CkPwnmVl+y7TruxaLj6xSGGgguZVfzXQy1s2vPVrpcgjY9lk7fQqKfVzXCHPe+K0bZvVA2zXBHyGDtwxLkxLD12lufZOqGbt66Vfl/s8dkJ9xLF0Fha1qU0ERpkx9dqsULffGchEvD+Prd2z+xwtNbY4IDAV3+oxGLk7KWqcXtrTdU9ByeVkYAvtE51SomGwN3yCQEQ4H4X6cimtjUExw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TkmdrCi/nFkwi8BolnR1iAN6/9z6Ty8Qjj7fqhoBUt8=; b=M8UcqUoGneamMPOJZA8UHUKqTYothOiN3VrTJNftq1V5S4Aod9A8x7yvledAigJnTkbIriNc9bQ7z5LcVb9N2V3cupG7GiQaS2aJJSGJrDfaSrLx+0srOFb3qXm97Bqx/PtAdPFvjQPJy1Ov631gfpm6jLjQcU1B6CLiDF+8EUgZ4DOBrD+tmxvXbtsVFTmgyWY32tNN//0Z67viUunBUuz/ofYKHIHRgfb75qVsN7RA5UNKSHIqQWyxqneGiQ9ie5gzvNe6oUg9oLp5jwkmNRj5t69VBfUnGp3QRXlpq0cCmzBkjAnNpRzzwPR+Oa9dC6TvPaWh3yCb8r3eLxrxUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TkmdrCi/nFkwi8BolnR1iAN6/9z6Ty8Qjj7fqhoBUt8=; b=KR4jZNfejnklWMGehPMf4WWQ7QzS3FiuAEa0rMy42wHlK2lTOK8rvd5oOH2pm9RLEW8AhsYmG6MCdkg0Wzn2e3k/LM/yp5ikoY1nzPwOxBBn2MjPtNxPwju3/EZ9seOGWsbITq7Yk76vLS821hnlRjXqr7XWTxZmNloOmNBIGX4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) by DBBPR04MB7564.eurprd04.prod.outlook.com (2603:10a6:10:1f7::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Thu, 21 Apr 2022 01:56:49 +0000 Received: from AS8PR04MB8404.eurprd04.prod.outlook.com ([fe80::55a2:d9e8:2c99:1433]) by AS8PR04MB8404.eurprd04.prod.outlook.com ([fe80::55a2:d9e8:2c99:1433%4]) with mapi id 15.20.5186.013; Thu, 21 Apr 2022 01:56:49 +0000 From: Sherry Sun To: michal.simek@xilinx.com, bp@alien8.de, Shubhrajyoti.datta@xilinx.com, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rric@kernel.org Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com Subject: [PATCH V2 2/2] EDAC: synopsys: re-enable the interrupts in intr_handler for V3.X Synopsys EDAC DDR Date: Thu, 21 Apr 2022 09:53:13 +0800 Message-Id: <20220421015313.5747-3-sherry.sun@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220421015313.5747-1-sherry.sun@nxp.com> References: <20220421015313.5747-1-sherry.sun@nxp.com> X-ClientProxiedBy: SI2PR02CA0009.apcprd02.prod.outlook.com (2603:1096:4:194::11) To AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3ee75937-b502-4f77-cbb5-08da233a32cf X-MS-TrafficTypeDiagnostic: DBBPR04MB7564:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8I0XTk1x05HsIXWNuEHrXhnSZtS1Fy6Ii6urgKJWi652Gu7mvz6u/G+fgnjLpi5D++t3hrpCJp4An53o/w508DUkhbexD3r7ILJbgT+C7vxMMBMGTsNJsLNjak6LPGlb4MQn+cfCO/IYXsMd2FExxQTOWNHZgKIgHiGIS0uXGJ3iIyY6q/KybMJ6zG0DtziiAWPO2LJm6bolsWKSsbj9b63Bd6ZN2y1ipPqo0RkF7hmB1C9sH9UuEu2UdpHLG1H7JVrp1BhbyMDlZikb4t+RLpwmLe29zSkL9kzYc3pNvwJUqMX0j/ZrG7nrBH7EKCaviPa26PfioCP9PUI82Vk1WBXRAyQyeSQNfzmYYGrupl5V/2ZM6uPFVpRampS1vAXYvYmgwRBKQmbHWAZOo+4f5V+/d1y4lRK653KEUf4kEvU5G98a7HdklNRpcZPh1hMeywZkFe2JgWNrE/JlqgHtwDFGOjxhZiL8BDUmqML5qC5jUGnqRnOEhHSAFu+WAFfMkMNXiBCvSC67TG+JXYW1sjmsOHnmx707Pp8MW9+spKAlJlN1kAy1mk93SXJOAlHAPPNgUuAPUtyGT5lHhdsuU3oFg7fhfbFtPtv22IzkraifbNutOxwTsIH5iek/Da93IRN6RDR6YQw8H2T0tgvBXYvjBBezT9N9DsCSKpS/TjttIuYxGvyPFnJNHtYSx94ArV9NsdaauYhvOAaNm6a81emZ1U/NLZOOL9xbXIoFPcnrcnR/DQv4kXJDcA3ZjjuO X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8404.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(86362001)(7416002)(38100700002)(38350700002)(508600001)(8936002)(5660300002)(6486002)(316002)(52116002)(6506007)(4326008)(8676002)(66476007)(66556008)(66946007)(6666004)(186003)(36756003)(83380400001)(2906002)(2616005)(6512007)(26005)(44832011)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: y/Stjnxb96ocgAIYRCce9jVDiDc/rcKjkpxMTYSqe/u7KdYDpSYpzOL+Mjr1nk71TTDHc8/xR9O2vBelzhZ+e9zzsPMYmcNI3JpDJpN4GKLLz1PKFSED8phLVGxtr4Ps3otK7wB6SHrVgt7a+xwkdtEnF9HU4OoN5YZ0wgwiZgVFWPNUN2B7kQKa7nE6S+Sl0KgkJ5FCjIU+mFBgz0HqKRFQJZMMTD1GKXTrj5vk5MNlz2vvR2fMRFRHcPdVgO4OwM9sXQIvKUSKsPEOxQ4EGaX0pmQ8I5aKnVETlT9U82TfiE++H6pwf3EDZnpZZtcIV3B3zvrB6upWDE15rX0B+HFTXEcuZr1mvZgSq13maKgaMZbqPVEX7unW7W3jf0vaKqi/LGW4TRj+7Xbosr6uuwNOfRQBA264Ps6Z2+61d4e2Ecm5QVJEQPrajbjUVZARa8gxw9j0zoIQ4NtqApdGcdYBCAVBDgFukw0QxO36FfmUffS30eDyKb41vp++BW1Lo/I2JFKxpYjZAxxpe/XH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ooTGKwO58olO1aigP8UdX0gjdVSSlsmdVHB8T7Lght3li58WyN1IGkkgv70aV+rG1CPhpXBqLzBF1FN7QIqH6t2xmJJkrE5zNrEismZQoq0KdIxwIR8dzZ2TeFJc8n+A+cpMZNRZJjlNg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ee75937-b502-4f77-cbb5-08da233a32cf X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8404.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2022 01:56:49.5619 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: x/ZuOFcV9AePRrAii0prPYYsflp8G8oeYWWpN03Oyrqg2MSwrERg06qnYVGUJ7e9WgyLdv+j0jNCimvIzEdLqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7564 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org Since zynqmp_get_error_info() is called during CE/UE interrupt, at the end of zynqmp_get_error_info(), it wirtes 0 to ECC_CLR_OFST, which cause the CE/UE interrupts of V3.X Synopsys EDAC DDR been disabled, then the interrupt handler will be called only once, so need to re-enable the interrupts at the end of intr_handler for V3.X Synopsys EDAC DDR. Signed-off-by: Sherry Sun Reviewed-by: Shubhrajyoti Datta Acked-by: Michal Simek --- Changes in V2: 1. Add the Reviewed-by and Acked-by tag. 2. Add the newline as suggested by Michal. --- drivers/edac/synopsys_edac.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index 88a481043d4c..ae1cf02a92f5 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -527,6 +527,8 @@ static void handle_error(struct mem_ctl_info *mci, struct synps_ecc_status *p) memset(p, 0, sizeof(*p)); } +static void enable_intr(struct synps_edac_priv *priv); + /** * intr_handler - Interrupt Handler for ECC interrupts. * @irq: IRQ number. @@ -568,6 +570,9 @@ static irqreturn_t intr_handler(int irq, void *dev_id) /* v3.0 of the controller does not have this register */ if (!(priv->p_data->quirks & DDR_ECC_INTR_SELF_CLEAR)) writel(regval, priv->baseaddr + DDR_QOS_IRQ_STAT_OFST); + else + enable_intr(priv); + return IRQ_HANDLED; }