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: 12820997 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C415C433EF for ; Thu, 21 Apr 2022 01:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oRDeD1FRAmVoyFwcDlIJZoAo0KcT0s1wdy0NloGVEqQ=; b=H556f+MkWvXPYT RxTO8LLAxS2Fj4kA6UR7ircvrW8xWExLzu4QZI2SBOc590RdDvYoEjvER+1kFrKUVSjK0VvHkb1FL GnmVWTEshIc0ShWstuuFhMZBdsiHpILeZzQJrzb7RX/JzTXtOGPdt6S/6xR28AQEjMNcYNleAPj+m bgGxUK5uZjxOKy8k0hcldtgj4LOcElQ7GgyvuhOBp3Hx3AeNem7DotZQukVY6gUAyaMy3axywjJZm EsoAFbh8bjZyvHnQC5Yubx+K/FW+6k7dvU60HhQ+VXwD9Vp8gvNX7Nk+2nJjPqRcOPbmIwgkwcST7 Yl58ONmfS3e13ycEY/xA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhM45-00B4dE-ON; Thu, 21 Apr 2022 01:57:01 +0000 Received: from mail-dbaeur03on2061f.outbound.protection.outlook.com ([2a01:111:f400:fe1a::61f] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhM3w-00B4Wx-TH for linux-arm-kernel@lists.infradead.org; Thu, 21 Apr 2022 01:56:54 +0000 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+61d4e2Ecm5QVJEQPrajbjUVZARa8gxw9j0zoIQ4NtqApdGcdYBCAVBDgFukw0QxO36FfmUffS30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O2iahJ+MaVemN53HE8miwXC+Sxci3bx7w+yhbooTGKwO58olO1aigP8UdX0gjdVSSlsmdVHB8T7Lght3li58WyN1IGkkgv70aV+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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220420_185653_006472_0B9D65C8 X-CRM114-Status: GOOD ( 12.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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; }