From patchwork Wed Jun 22 13:58:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tthayer@opensource.altera.com X-Patchwork-Id: 9193033 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1984E6075C for ; Wed, 22 Jun 2016 13:58:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08B01283F7 for ; Wed, 22 Jun 2016 13:58:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F142128408; Wed, 22 Jun 2016 13:58:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 94876283F7 for ; Wed, 22 Jun 2016 13:58:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFicX-0003au-Iw; Wed, 22 Jun 2016 13:55:09 +0000 Received: from mail-by2on0100.outbound.protection.outlook.com ([207.46.100.100] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFibz-0002pB-8u for linux-arm-kernel@lists.infradead.org; Wed, 22 Jun 2016 13:54:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mLkT2Xf6kbJLiZxAU6yaVOLmVU/aCOZ7Rmd3r6Bg5Mw=; b=dofBrXarSJ66+1uFibwLfd0wd44d8KGG0J1xmpqEnl9+8Z/VgLnrLIzK6gC2mGNBoNQKkTZl9V50C6gZn3c4HBgSGt4civ+ZA2t9DoOXUyG6u57B5aeU66iZdnxBSTSfa1N1fxxXWA26jWK3H7caxbT8OaSBRUN6EqQd/b3kIIA= Received: from CH1PR03CA012.namprd03.prod.outlook.com (10.255.156.157) by BY2PR03MB111.namprd03.prod.outlook.com (10.242.36.20) with Microsoft SMTP Server (TLS) id 15.1.492.11; Wed, 22 Jun 2016 13:54:12 +0000 Received: from BL2FFO11FD055.protection.gbl (10.255.156.132) by CH1PR03CA012.outlook.office365.com (10.255.156.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.511.8 via Frontend Transport; Wed, 22 Jun 2016 13:54:11 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; vger.kernel.org; dkim=pass (signature was verified) header.d=altera.onmicrosoft.com; vger.kernel.org; dmarc=none action=none header.from=opensource.altera.com; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.236 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.236; helo=sj-itexedge04.altera.priv.altera.com; Received: from sj-itexedge04.altera.priv.altera.com (66.35.236.236) by BL2FFO11FD055.mail.protection.outlook.com (10.173.161.183) with Microsoft SMTP Server (TLS) id 15.1.517.7 via Frontend Transport; Wed, 22 Jun 2016 13:54:11 +0000 Received: from na01-bn1-obe.outbound.protection.outlook.com (207.46.163.185) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 22 Jun 2016 06:53:50 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mLkT2Xf6kbJLiZxAU6yaVOLmVU/aCOZ7Rmd3r6Bg5Mw=; b=dofBrXarSJ66+1uFibwLfd0wd44d8KGG0J1xmpqEnl9+8Z/VgLnrLIzK6gC2mGNBoNQKkTZl9V50C6gZn3c4HBgSGt4civ+ZA2t9DoOXUyG6u57B5aeU66iZdnxBSTSfa1N1fxxXWA26jWK3H7caxbT8OaSBRUN6EqQd/b3kIIA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tthayer@opensource.altera.com; Received: from tthayer-HP-Z620-Ubuntu.137.57.187.33 (64.129.157.38) by BLUPR03MB1475.namprd03.prod.outlook.com (10.163.81.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Wed, 22 Jun 2016 13:54:04 +0000 From: To: , , , , , , , , , , Subject: [PATCHv5 4/8] EDAC, altera: Share Arria10 check_deps & IRQ functions Date: Wed, 22 Jun 2016 08:58:55 -0500 Message-ID: <1466603939-7526-5-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1466603939-7526-1-git-send-email-tthayer@opensource.altera.com> References: <1466603939-7526-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BLUPR0301CA0036.namprd03.prod.outlook.com (10.162.113.174) To BLUPR03MB1475.namprd03.prod.outlook.com (10.163.81.17) X-MS-Office365-Filtering-Correlation-Id: 89a0d3d2-8b4c-432a-c062-08d39aa4b0a3 X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1475; 2:Pc5ur4sSBEk+HvnYMEiPSjVbGas8jTrOST9tOlEBO8bg9lymEfAcBlZITTt2+/BeTRxloLzHBhcw0FXY4GCMJVph9umpzA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IWc=; 20:Ou6cXcMYKKb/uyxal+YVPr0LigzZioltLmynbsgggRP5bFzfuUzuhgQH4dtO5iUHF/nAdOgTHITGl1EVyFk7ZTmKBJNgzZlVFKwKcKTZ7DU5DoovvuXoFrG+8iNEQM5XEWeUwulpzEFsfu/Ttd6mDPZfY1KYdHUL28UPJLFQD50= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(80048183373757)(788757137089); UriScan:(80048183373757)(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BLUPR03MB1475; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1475; BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(13023025)(5005006)(13015025)(13024025)(13018025)(8121501046)(3002001)(10201501046)(6055026); SRVR:BY2PR03MB111; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB111; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1475; 4:iVeuE48ANZsZ3cfrRUIPLwpszcM6SlH3SpxwvmzdfLVQbM63LYtTCc+18II3oT+82iBmqXW+FF9uUcaIJ/JPNiZtuPrFNEBkU/n+pwYzqynJleENLhqp/rJaux9dOz/oLm8ejll3uicYy3lH97woai6p0xD7XIdsrPxw81hfDh1PrUvTM/M3vbOwrlp5f93HlBFyQRJk+G9CMlDB0vk33FmnoxEvMVfR59LrEba+ztEpJYqSHgKZATHRAuPC1oGuEGItB2IlakghBbabqkLbRBRzokZpe3VAa146UUoI8AvB6TSdPC5oUsZvhhycUDenNv1cTPq9mwRqf1RVcMbE4I8xkZ1CRctg0eHQH9wEITQOcc8/NtUuMP9zXFi4TmiigRmQbEMVRusw3KN8ax3J9v1RpGemQs4R6NdVeFfkKr07n5QY88usqD0JmCE9RWnXed+DDd7XfnQKUcCaBtTA8A== X-Forefront-PRVS: 0981815F2F X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(199003)(189002)(2201001)(229853001)(6116002)(2950100001)(3846002)(101416001)(4326007)(586003)(106356001)(2876002)(50986999)(19580395003)(86152002)(48376002)(19580405001)(76176999)(4001430100002)(33646002)(92566002)(8676002)(81156014)(77096005)(7736002)(7846002)(105586002)(50466002)(5001770100001)(107886002)(68736007)(2906002)(47776003)(66066001)(189998001)(86362001)(50226002)(81166006)(42186005)(5003940100001)(97736004)(921003)(4720700001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB1475; H:tthayer-HP-Z620-Ubuntu.137.57.187.33; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: opensource.altera.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1; BLUPR03MB1475; 23:rgEGrOlj7/psZoelj98aZ232Npv9Midt302u6k5JG?= =?us-ascii?Q?iniTAUB197+W5dGmDKmQ5IURd3yrDWmLYM0Rv4Q160Wk86WRUWvKfEdrpx/7?= =?us-ascii?Q?Woz3ffiYYVLnQVnobocPISh53Z1Te8PZKcAKbwuVsnrITycpW9tVB7TjPqxs?= =?us-ascii?Q?xFpHruwIepdE4VUi0y/eOa/TMXyr8BXmnR9q1766+N82qItYGQGen1zC409j?= =?us-ascii?Q?H6DDx+M1xi1q24I58TkdejKgNxrdDjZgL+lHVyG63ZDsPYZDvH9fNJ2lVuSc?= =?us-ascii?Q?GRa+t06MrBn/c9IP3pTtr5smnJQPSkzbNPg1tCigwrtuwIlAItOVthGqJIwN?= =?us-ascii?Q?xFALTW9wgpLvWVGmqzO5mZA+yK8GAsL0C9jz0sj+4jO3LGVMT2xu6vfSErTw?= =?us-ascii?Q?BZhopgntWzHREhYL4mzPDwwWuhT8YmaSQ6jnzGaY10gnyFO+B5zr8m1sDZtI?= =?us-ascii?Q?LIC8Wj9WcefKSQLrfnfYdgA6xt0y30GvV5ol8QdynHK/LCob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529PI0PIYU164N8cuBaxIFj6AzgZC5ZeZkJ5nxlr4eg/oyuNaSvSMZ3EwRb6zxO6mnPQepnbyeORgky2z/yarjwdh5u6ICgMAGsSL9esaxx7Sj2C3Was1Z0BPgyA6Nv3nnVgxa0qmdj/qNBTxVj7zMx74bfKVT4=; 5:45/Jj16ZXLdhVPHcmw4jBGN+slDE9B9Nu9aESIahYCgxdgkpoa+uAqhFNGFQA93gfeWp4+SGFA2WNhuwZZx0dUD5W88YfWVL5yqkoVjy1aTFW/ja4o9DgqlfqSffbVSi+bRiJ1vwzpLLi2wj30PYug==; 24:pgafbItpZZfvqihJqWuHyN+FNkqJzAnnNOW1HYge/nxuNzJxL++xmtNCUJfu718xrf0mXycmJjZ88W5nnaDlvnATLi09FC3NS408mKKfr1o=; 7:H0md5ctEQ5FQNcNzTleuLVAyL4GK0Yk9tAhQJhYucMwPRPxKpcQNyYhoIocaFAwXWNuJa1LZalbaQMzjwuRiNdE2/RtaPsmsdCPKapCYk16khG8higYOwZ4rg8YVoWs/wTKtgWdvYV0SxHAB5+6v81nQ3Ss0G+QvmN92ZUOW6qaxk3Rqvc7ej4INE5w9fnMRIqWLQ9J3rMUknJnOxZA9VZXD1Fm+A68mNOh2qEyafCH5FhwHqzOqUUiKE4aiZS6cq9PMC1NlXENEvyCgALpMJA== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1475; 20:SC21N4dTMitOG6AAe+mC7MqW9Ub2tEheKpXfvroG539lKvoByuIY7l/f8uvxklHdhZMy6NYLsfc8btlN4Z2DpLEw7uoQ6H3cGJOded3Lcc/o1Nl0CURXxFsaUbLFYeZeEFr2iYCoesG4ZWzPTJ8hjx7egSL9Gy0MuQoAkf8I3EM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1475 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BL2FFO11FD055.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.236; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(50466002)(48376002)(76176999)(50986999)(81156014)(5003940100001)(8676002)(356003)(19580405001)(7846002)(81166006)(87936001)(92566002)(4001430100002)(50226002)(2876002)(4326007)(2906002)(8936002)(956001)(66066001)(586003)(11100500001)(3846002)(2201001)(47776003)(68736007)(106466001)(229853001)(33646002)(16796002)(105606002)(189998001)(86362001)(6070500001)(107886002)(85426001)(6806005)(77096005)(2950100001)(3720700001)(6116002)(19580395003)(5001770100001)(86152002)(7736002)(97736004)(7099028)(921003)(4720700001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB111; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD055; 1:fNiooOMha8EC1d5qOHhsyAHsOLyR031pp9sTrdJwRp71FVDJEFsq4OgSn/0FYUfbPqer/2BZ98+Gddhz5Ocr3l0+F/p8h/TCwXLeuVtlGTBCPi5YYtkaJWWopYF2T5i6tkvAvbIBfeTbxa0cqiKRYDPZRE3mg/5qoVzMuDTA/sGt2ib6h/gulol7foJZRbIIfwYp1MPGyjtZZ7SCIvh12at1H45lpHLSNKtnLYfLywlvB6X7oUNA3RV2LyiVTcQ3RVIoyuVsCE05j1/DcGp8XEih7FIAc2gbvyXrVbGG4rOpw4AbmImyANgGJWVwO2AAuB5omzWfFha6QJEBq2EmVZMjoAdVb5kXvQ6z+RHSP67Lz5Z9EmRLTOzljZG34kW/WvDbctTyMs7JPLr6AspE5yVUBMV21xOwQ6UoC9P0dLFL3DTlKefMiTsXDGeguNEpOAKFmnQT0vN+CuFkwYztulW3d4On3WvpxtpqEI6Lt7ROw8J5W5G3voD1D0KSz0vjRwJ7LvOlTMtoVQRqQoL5W/YUYjjk1Gd5bpK/4L/eIDY= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB111; 2:29rGXl6pIC7LBwCX/qz6JOCeLXWgdUoSa/NJ7kNHuzBPloykv9G7uPpm0mBdiHB8J0qUGYpXTTYzln27tJTz7+1pMNG7zcEJJYc5EioYyq2N8TkpfeN6FceRGtaI7QvwqFKdGhmoroJjt/4NUY8SId0RNjb1Bym27hDjH8tZaDZa6ZGAQZ17kVaPgrSEYFFX; 3:fZEdqMv/8/G4iRDuTikyYU+2Tt/RgYEjaJO6PwsVvxT1WjGmgFUP+3Xls/RU+gNQt+zAA1o44NM27sGJrNYFwnVuDHSLUtv4mVdTMjRwYQlq+m7RucwSaaCGOmLQFo/3aGGuIGh/JuC4z2TSw0jcBMNeftITMrUA3XJpXIeHkagdfnyRAx8Nk2n+avEAUx5p6xK1zkOuMFRoS9+iqdzjmQKZL777fKHhxRX/B3YKXgpgaAV7xLf1dKSbUEORDmSP; 25:SnVxf8mQl5wWrA/yosyEFV0a5DucIOimqfjippYqgE2f7VQstjrBJzMRfrZASoxPEah1T3Yd8PlEVG3aAAi25K0oiI0D1WKL1b0U8vxII9XydzGZjf97nRtRVmKOsdrdfP6A+xDqNEIQMEK91PSmUcGsWaeloUUB0PZ7cibUW+rwUToBHeebZMBU4eqUZTwphSghSepj4eFOpoBxngkVzZx7Y2ZI0GS+qq9H5Aqp+aUrFui+xxgK0FITDy07k58BnjpMb7wmKF8ETX8edRopuMVCo1EiGCUGx3ZhYWtqDx4WYwQzqtroUqcX0Kf1REiNSKGbitssHvERgT4KKGkl0THV7X9zhOITDN2QodnST//E4hnSAL/Z+fQcNZgL/GVcKdo0BDNXhI1Jqg3pNyIbSbwWwpB+bZ3HuuW/elLeX9o= X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:BY2PR03MB111; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB111; 20:ymK75L2kAVcr4S71qaNBPs02GDknS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g: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2016 13:54:11.4775 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.236]; Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB111 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160622_065435_411435_8237F709 X-CRM114-Status: UNSURE ( 4.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tthayer.linux@gmail.com, tthayer@opensource.altera.com, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thor Thayer In preparation for additional memory module ECCs, the IRQ and check_deps() functions are being made available to all the memory buffers. Move them outside of the OCRAM only area. Signed-off-by: Thor Thayer --- v2 New patch. Move shared functions outside OCRAM only area. v3 Change title line - check_deps & IRQ. v4 Replace #ifdeffery with __maybe_unused macro. v5 No change --- drivers/edac/altera_edac.c | 62 +++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index dcedc4a..2e5940e 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -825,16 +825,16 @@ static struct platform_driver altr_edac_device_driver = { }; module_platform_driver(altr_edac_device_driver); -/*********************** OCRAM EDAC Device Functions *********************/ +/******************* Arria10 Device ECC Shared Functions *****************/ -#ifdef CONFIG_EDAC_ALTERA_OCRAM /* * Test for memory's ECC dependencies upon entry because platform specific * startup should have initialized the memory and enabled the ECC. * Can't turn on ECC here because accessing un-initialized memory will * cause CE/UE errors possibly causing an ABORT. */ -static int altr_check_ecc_deps(struct altr_edac_device_dev *device) +static int __maybe_unused +altr_check_ecc_deps(struct altr_edac_device_dev *device) { void __iomem *base = device->base; const struct edac_device_prv_data *prv = device->data; @@ -848,6 +848,36 @@ static int altr_check_ecc_deps(struct altr_edac_device_dev *device) return -ENODEV; } +static irqreturn_t __maybe_unused altr_edac_a10_ecc_irq(int irq, void *dev_id) +{ + struct altr_edac_device_dev *dci = dev_id; + void __iomem *base = dci->base; + + if (irq == dci->sb_irq) { + writel(ALTR_A10_ECC_SERRPENA, + base + ALTR_A10_ECC_INTSTAT_OFST); + edac_device_handle_ce(dci->edac_dev, 0, 0, dci->edac_dev_name); + + return IRQ_HANDLED; + } else if (irq == dci->db_irq) { + writel(ALTR_A10_ECC_DERRPENA, + base + ALTR_A10_ECC_INTSTAT_OFST); + edac_device_handle_ue(dci->edac_dev, 0, 0, dci->edac_dev_name); + if (dci->data->panic) + panic("\nEDAC:ECC_DEVICE[Uncorrectable errors]\n"); + + return IRQ_HANDLED; + } + + WARN_ON(1); + + return IRQ_NONE; +} + +/*********************** OCRAM EDAC Device Functions *********************/ + +#ifdef CONFIG_EDAC_ALTERA_OCRAM + static void *ocram_alloc_mem(size_t size, void **other) { struct device_node *np; @@ -882,32 +912,6 @@ static void ocram_free_mem(void *p, size_t size, void *other) gen_pool_free((struct gen_pool *)other, (u32)p, size); } -static irqreturn_t altr_edac_a10_ecc_irq(int irq, void *dev_id) -{ - struct altr_edac_device_dev *dci = dev_id; - void __iomem *base = dci->base; - - if (irq == dci->sb_irq) { - writel(ALTR_A10_ECC_SERRPENA, - base + ALTR_A10_ECC_INTSTAT_OFST); - edac_device_handle_ce(dci->edac_dev, 0, 0, dci->edac_dev_name); - - return IRQ_HANDLED; - } else if (irq == dci->db_irq) { - writel(ALTR_A10_ECC_DERRPENA, - base + ALTR_A10_ECC_INTSTAT_OFST); - edac_device_handle_ue(dci->edac_dev, 0, 0, dci->edac_dev_name); - if (dci->data->panic) - panic("\nEDAC:ECC_DEVICE[Uncorrectable errors]\n"); - - return IRQ_HANDLED; - } - - WARN_ON(1); - - return IRQ_NONE; -} - static const struct edac_device_prv_data ocramecc_data = { .setup = altr_check_ecc_deps, .ce_clear_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_SERR),