From patchwork Tue Mar 1 16:38:19 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: 8466851 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B22099F2F0 for ; Tue, 1 Mar 2016 16:36:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4E6B220254 for ; Tue, 1 Mar 2016 16:36:48 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id F13CF201FE for ; Tue, 1 Mar 2016 16:36:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aanGG-0007Ry-UT; Tue, 01 Mar 2016 16:35:00 +0000 Received: from mail-bn1bon0062.outbound.protection.outlook.com ([157.56.111.62] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aanFs-0007Cf-OQ for linux-arm-kernel@lists.infradead.org; Tue, 01 Mar 2016 16:34:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GzL6GD5ykfndqpHLmFbxvQRKrhmyvbL0UlACB4booN0=; b=d5sRaMPeGh5cuMZTupMh9ICKVP/maHT0iM/z/yqxta/HBZ6dQWCCXbTjNAadBJoJDlynCmhT9QFnzxPaPXpb3k2Hd91TApaVDmpw1QYrQNNyFMqG2QQuE9Tk+0vQZv+vKJu8H8sbcn62y6+HFUnQzk6yaIEEaR1aOodL4CZNvpg= Received: from CH1PR03CA009.namprd03.prod.outlook.com (10.255.156.154) by SN1PR0301MB2032.namprd03.prod.outlook.com (10.163.226.30) with Microsoft SMTP Server (TLS) id 15.1.415.20; Tue, 1 Mar 2016 16:34:13 +0000 Received: from BN1BFFO11FD025.protection.gbl (10.255.156.132) by CH1PR03CA009.outlook.office365.com (10.255.156.154) with Microsoft SMTP Server (TLS) id 15.1.409.15 via Frontend Transport; Tue, 1 Mar 2016 16:34:13 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.227) 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.227 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.227; helo=sj-itexedge03.altera.priv.altera.com; Received: from sj-itexedge03.altera.priv.altera.com (66.35.236.227) by BN1BFFO11FD025.mail.protection.outlook.com (10.58.144.88) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Tue, 1 Mar 2016 16:34:12 +0000 Received: from na01-bl2-obe.outbound.protection.outlook.com (207.46.163.209) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 1 Mar 2016 08:32:44 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GzL6GD5ykfndqpHLmFbxvQRKrhmyvbL0UlACB4booN0=; b=d5sRaMPeGh5cuMZTupMh9ICKVP/maHT0iM/z/yqxta/HBZ6dQWCCXbTjNAadBJoJDlynCmhT9QFnzxPaPXpb3k2Hd91TApaVDmpw1QYrQNNyFMqG2QQuE9Tk+0vQZv+vKJu8H8sbcn62y6+HFUnQzk6yaIEEaR1aOodL4CZNvpg= Authentication-Results: alien8.de; dkim=none (message not signed) header.d=none;alien8.de; dmarc=none action=none header.from=opensource.altera.com; Received: from tthayer-HP-Z620-Ubuntu.137.57.187.33 (64.129.157.38) by BN3PR03MB1477.namprd03.prod.outlook.com (10.163.35.140) with Microsoft SMTP Server (TLS) id 15.1.415.20; Tue, 1 Mar 2016 16:34:07 +0000 From: To: , , , , , , , , , , Subject: [PATCH 3/5] EDAC, altera: Addition of Arria10 L2 Cache ECC Date: Tue, 1 Mar 2016 10:38:19 -0600 Message-ID: <1456850301-22066-3-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1456850301-22066-1-git-send-email-tthayer@opensource.altera.com> References: <1456850301-22066-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: SN2PR80CA035.lamprd80.prod.outlook.com (10.141.39.173) To BN3PR03MB1477.namprd03.prod.outlook.com (25.163.35.140) X-MS-Office365-Filtering-Correlation-Id: fef57d8f-0c6a-4377-75b9-08d341ef52bb X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1477; 2:AE09t+V6reqRUOwLz2l/+I4/HGv8vq3MK2DN8klL7fO0d6D167yTeG4XfBAjIHwh4ehN/fLHSDhG+nNHr5WXfe5IxKiLKJtJu768hGWl8r+kiNJYPriEEwVxqobfvSmd8YAbc5BxNRwaa5NrtgGBynsv9+m8XQrYQAo0Kspxcmnf0ROUBhwr1mGE3wrvVI1+; 3:3fpXarany99kJYhwx/L16NC6uzyVMJUC3L0B7ndM5nPslDwTwboor/YLuKfyXpWhHDNV9mmudOKiGBO3OAz5IfmPJtZB1b+cFkNtJgwlletMQNrUFULsLp61jQmJF5gt; 25:8VeWfwUDmFguWcNF/EK9NEiB17KSAe6ywRJ1xbqDy5ZAMdTh1jmI/VGY0IE2uJER/EPsKncTQXAL70u5s0hmE384n9+aUa62tSpNCfdnp4u4BguXH8Xfu/2Cujaheilg903DdV140jSaRry7jDsIayLmk/olH8j2Q9ZDm/Y5yVzYS+urgO1EHc+6vME5qDPUpnuxz6KKVMONOf2qTBxiVnZa+JWBdKdBh+cwVSTMxOqx4bPghv9CwQ2D/192IXHhaw570WOQCaSkmynb2VhQFVesfZikxSS4eW9cvdEPuECUJVvbYZvbhIEWNAVLy9O5AVqEd6E4/KgfGFtulhuZuQ==; 20:Ub0K3sWr+7IW8pba5bPmPaHA6T1opabbctkAU4Df3hkf6Ogi8kb8Am91Kbs9EMP8aHTpqlO0NEe2YYQhOA4pzy8J26bW3rSzeZTwpsAhdTslAEodOInvEzsr83Ho/dK5S37f58icSlArl59Ycfxf+3LCRaqeOeKNG1Gl0RPibOs= X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1477; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:BN3PR03MB1477; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1477; BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(13015025)(13017025)(13023025)(13018025)(13024025)(3002001)(10201501046); SRVR:SN1PR0301MB2032; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB2032; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1477; 4:R4byfq2IAZ59U25AiAFGPb9z5a98GRk17xJAf9XI8W5SoUrdJOMp8JJf7nwpzxXww4rUQXAuxYnc9mYMZjy5xDiAqyVB2LCCTBwC/Gka2hCPGPkMG7ksGtQwVNmPdTY8msf3ULyaU5E/6aYkPYeTrkXEB3TyjEuZmy/fMZhBDgjtyg9y+wHRNCGT5na6P6pvPxHy37XSZyfhMJUkqbmKIa5uh34Vj4kzkpl1t7KUgnwS+e06xzYuhqnFHc51E7OLQSzoSiWhSJMt4yNGRO+0bgTowYHFzXutjhdCfrTVgWKOsAstYv3jyGxZLgO6DW0diPRHrg6OQWkwVLnPGpU1NyUjH1KU3PmIzivFj6QQB7Iqrrw3ufW7YxkBiXkAlrKE X-Forefront-PRVS: 086831DFB4 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(40100003)(2876002)(122386002)(5008740100001)(4001430100002)(229853001)(19580395003)(50466002)(19580405001)(66066001)(77096005)(107886002)(5003940100001)(5001770100001)(76176999)(5001960100003)(33646002)(50226001)(4326007)(87976001)(2950100001)(92566002)(86362001)(3846002)(586003)(189998001)(1096002)(42186005)(6116002)(2906002)(5004730100002)(48376002)(50986999)(86152002)(2201001)(81156008)(47776003)(921003)(1121003)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1477; H:tthayer-HP-Z620-Ubuntu.137.57.187.33; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1; BN3PR03MB1477; 23:xgwq5POqvyassjwaDYXuayqifsK5o1vHPD2sQJUxI?= =?us-ascii?Q?YtZ3oozqdyARcg+7Bb2lbFAA7LHX/xfQVCWtmvq3ylbCxtHj7eFaOF5/KLfz?= =?us-ascii?Q?RSKIHRZMklAnR5+6wK3pw14+ml9p0St/ne1S3x0x5sNg52pb+9UwE3UhYboL?= =?us-ascii?Q?l2PR7vXenxTXoP+KAtt8TZoZ7gS0NcNYGgTNmKJTBFNAzfCkHlx9ukAAg4s5?= =?us-ascii?Q?ZctnBA8oC/+EJDhN7ZwQ5Bt1GDK1APu3H+YuE99Zz7w5put2UMlQRqZo69MS?= =?us-ascii?Q?iwBkxB7wp/QBHaJPE1O0OebNO0Eua24Oh/exDFujln14jGNVGuGfYLbPE9V3?= =?us-ascii?Q?naPM9yB6r3cOtLa66LALxbSPzPAhW17YueHfTCBkosHLUpP825Z/tkBLhtAS?= =?us-ascii?Q?8avTIU7c9zoR3C/a97Dr3uE8jOxvaXszmy7DLz5yA8TTdfxNph8xZlrBHdmq?= =?us-ascii?Q?pHXpiIqgPIo8JalRq3Vg59Mq96p/C1EUd1Tnf8iNgdEXOud/pwJa/hj574kH?= =?us-ascii?Q?lSv/eO/QJ+5N8/upfk6Pcc9yTBbHr4A/jQaruewCX32UUIPRDDRUiMo/fNd0?= =?us-ascii?Q?zWvi5OLhyW+Azq+D8x3tBAj+SmvsHTo6c2WDkQFbhVclRbVP/RogczrjVLvn?= =?us-ascii?Q?O/dBvTVjVdwAieOtnX3nIoMg9ZghBQbkLEmKkQj6k/DV/W14b+4CffryZd72?= =?us-ascii?Q?VSvssKXkYJrvDchgNY/iZCI13bfdWlK/6NWMm+xGguX6rambyLbI+Ft43EO5?= =?us-ascii?Q?/BVHRkxdyL3aJZiiMMyHPKOY3zj8U10+kjBvgnuiHGXfp9Uy3re0z112xnRr?= =?us-ascii?Q?5LwnkG8SsccoGTUgsBTWW6ovPe3BqqKIUnszNkpCGOJgiaQFqmghLczmj+DA?= =?us-ascii?Q?VcLpZ/7aaHjAwgJkUlONWDISbS2JQTYK7lMPFr8wRcEZINjzKMHdA7sfm//3?= =?us-ascii?Q?/YS6sm47MAxwAHsLljg73vQOoCijUkrqWioLUEtFAm6JKQe1x+bOnuLke8C4?= =?us-ascii?Q?u1XxuMWXTcYvavDGjFhIMbLrw+lc8GPDRVn0VBoT61U7XMS2Q6LZsaWNF6Qt?= =?us-ascii?Q?+b8GdVgROM35XmePDFMc7O9CT86CEahrAKcylH+oQIdnOIu5YLigf/gln2O2?= =?us-ascii?Q?hwTUKIfj0+GURePKzKYZxpgheFFYIzj?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1477; 5:KtxV+u9XCRb2uJnHLSSKMNchIps0YdPjXtNfnVViT9ZKQYZx2zif3/STuRI274HcchkzLZegUDVisj2oiyxc8EZWuI06v8XQuRpudqTi8x5YO1NUF2fLPaay0CkLyuFOM/TkFX7EVIezoSLaNESvnQ==; 24:WPrxK5tOj8AHgWXQOR8iLg+Bj2QMezCxDdEMA/SmaDe2omRLhJFE4WVsF0ikOJZIRTT07/y0/jQ8Is4s0zfQLEg6QFH3znpHncDmketGZ10=; 20:GOQ+9quD4/PwKFER7REFvg/RtKGMVMyZ6ggvztf9RwnbjJ3ncIJM5su4fVT0jRiBAOG5ZZVQUZuGk7kxNlIbCxEcwHVVl2CWXiNR9armQPovUEkHnsp+1JQPW4erp5Oo5pi7UOhkHl1RvSwUjvFa7aVaJGNrbrWVi4ahOPdYG1c= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1477 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD025.protection.gbl X-Forefront-Antispam-Report: CPI:66.35.236.227; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(2201001)(956001)(1220700001)(85426001)(92566002)(87936001)(19580405001)(86362001)(19580395003)(76176999)(86152002)(4001430100002)(5008740100001)(50986999)(33646002)(586003)(3846002)(1096002)(6116002)(16796002)(50226001)(11100500001)(189998001)(6806005)(105606002)(5003940100001)(40100003)(21840400001)(2906002)(107886002)(5004730100002)(5001770100001)(66066001)(50466002)(4326007)(2876002)(3720700001)(48376002)(229853001)(106466001)(81156008)(5001960100003)(47776003)(2950100001)(77096005)(122386002)(7099028)(921003)(1121003)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB2032; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD025; 1:xUFRhdFPOnbrarK1dVWq14GZIVCQKmu5+8FGDFCz74g3yBqXhWDsROhThehqWS9MUUciONnzLURHhC3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ChmpBkJWJgbLCx1QJWujokM8WEfeMXJjtRM58tIY4NN2prCOh4qFxYIB4Lkz0RzzYdaFiIuPksw/rbV+JKVeJ8CKh/JcMiKRn7EYz7IYJwa3VgVceymoB/1k7Q00vn78iCchKG33TGgyHZhrYBhXtrGF6n+5A==; 20:G/+jRrFIyTqmrzXzXKdzDcxna1jWB2gGne4UCeWAWpvW1m5p5cyB36vAgWOBoaRSMNrzahdHPIYyfDsvCubHZ2mQAOvgCpl/Gj7wrMJLfTAcNXhRL4edWaAj4mOZD6uGcfAVPchKfU2um143BnC+JKDNxfZjXxrJmTmeSSlYT6I= X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:SN1PR0301MB2032; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB2032; 4:uEnhM2zXTezjtM461n8Io1RKAx980Y39GczUAB3CScGb1RWNUP2T1aq0iNgftecYpFnCHjKQwA6QeTBR3cyeq+1JsWBWOeYbcfmYD9gdwqdd4zW3qpoxTHwVNtlb3wXDJXG5vpgKCP13RyzVedfPQkLxUqrq7WUN1vDG/pTCQOQUVYmDixUzuGKgUWx7jE/cfiKj4Qhu8mc9H6mWVQOl7WYUItKl1QIZ+ZVkVjyOxLVAboysGlY/G/30mzo37vEMM0zebltXB0nGXxrq2qIx+s7nhxxDdABKNF4ns/SCndc/55NYJpigWVEPtKs8DiGYhNx2jbkLIT03lO6ru+vF2E1atp0SwhzkxWYU8/8dxdpHdN7YxV8uXeE861Zyb3MqbJ44qf208BX2ca2+JoQZszyR6rXcxMtLVZrGL51dnq5Dfh7pZpILqlZc+V9Eqd/kR/OViHQnaSWn8HO9wlUMhQ== X-Forefront-PRVS: 086831DFB4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB2032; 23:0FbS3vuyAZL5alA9Gnk5NxUuk2PwKSQNTL0s0mO?= =?us-ascii?Q?aR7s9nbTq+2JRDPnkrv5LAGe5fAz7pDp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x3RLSxOpyVrw7mlLESHjqELpX6ZGSsPSQyAZQ8= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2016 16:34:12.6946 (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.227]; Helo=[sj-itexedge03.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB2032 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160301_083437_380010_A8150D4D X-CRM114-Status: UNSURE ( 4.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) 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-Spam-Status: No, score=-4.1 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thor Thayer Addition of the Arria10 L2 Cache ECC handling. The major changes affect the L2 ECC registers not being grouped together. The Arria10 IRQ status needs to be mapped into a different region. The mapping occurs in the L2 specific function. Important changes include: 1) Move private data structure definition to altera_edac.h 2) Move Cyclone5 device defines to altera_edac.h 3) Split IRQ status and ECC enable/control into separate memory areas. 4) Add IRQ status mapping in L2 ECC dependency checks function. 5) Addition of register offsets in private data structure. 6) Changes to code to use register offset define. 7) Addition of Arria10 L2 cache private data. 8) Add IRQ flags to indicate Exclusive/Shared. Signed-off-by: Thor Thayer --- drivers/edac/altera_edac.c | 172 ++++++++++++++++++++++++++++---------------- drivers/edac/altera_edac.h | 77 ++++++++++++++++++++ 2 files changed, 186 insertions(+), 63 deletions(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index 63e4209..7fca74b 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -78,26 +78,6 @@ static const struct altr_sdram_prv_data a10_data = { .ue_set_mask = A10_DIAGINT_TDERRA_MASK, }; -/************************** EDAC Device Defines **************************/ - -/* OCRAM ECC Management Group Defines */ -#define ALTR_MAN_GRP_OCRAM_ECC_OFFSET 0x04 -#define ALTR_OCR_ECC_EN BIT(0) -#define ALTR_OCR_ECC_INJS BIT(1) -#define ALTR_OCR_ECC_INJD BIT(2) -#define ALTR_OCR_ECC_SERR BIT(3) -#define ALTR_OCR_ECC_DERR BIT(4) - -/* L2 ECC Management Group Defines */ -#define ALTR_MAN_GRP_L2_ECC_OFFSET 0x00 -#define ALTR_L2_ECC_EN BIT(0) -#define ALTR_L2_ECC_INJS BIT(1) -#define ALTR_L2_ECC_INJD BIT(2) - -#define ALTR_UE_TRIGGER_CHAR 'U' /* Trigger for UE */ -#define ALTR_TRIGGER_READ_WRD_CNT 32 /* Line size x 4 */ -#define ALTR_TRIG_OCRAM_BYTE_SIZE 128 /* Line size x 4 */ -#define ALTR_TRIG_L2C_BYTE_SIZE 4096 /* Full Page */ /*********************** EDAC Memory Controller Functions ****************/ @@ -570,28 +550,7 @@ module_platform_driver(altr_edac_driver); const struct edac_device_prv_data ocramecc_data; const struct edac_device_prv_data l2ecc_data; - -struct edac_device_prv_data { - int (*setup)(struct platform_device *pdev, void __iomem *base); - int ce_clear_mask; - int ue_clear_mask; - char dbgfs_name[20]; - void * (*alloc_mem)(size_t size, void **other); - void (*free_mem)(void *p, size_t size, void *other); - int ecc_enable_mask; - int ce_set_mask; - int ue_set_mask; - int trig_alloc_sz; -}; - -struct altr_edac_device_dev { - void __iomem *base; - int sb_irq; - int db_irq; - const struct edac_device_prv_data *data; - struct dentry *debugfs_dir; - char *edac_dev_name; -}; +const struct edac_device_prv_data a10_l2ecc_data; static irqreturn_t altr_edac_device_handler(int irq, void *dev_id) { @@ -599,18 +558,32 @@ static irqreturn_t altr_edac_device_handler(int irq, void *dev_id) struct edac_device_ctl_info *dci = dev_id; struct altr_edac_device_dev *drvdata = dci->pvt_info; const struct edac_device_prv_data *priv = drvdata->data; + void __iomem *status_addr = drvdata->status + priv->err_status_ofst; + void __iomem *clear_addr = drvdata->status + priv->clear_err_ofst; + /* + * CycloneV is directly mapped to a specific IRQ. Arria10 + * shares the IRQ with other ECCs so we must match first. + */ if (irq == drvdata->sb_irq) { - if (priv->ce_clear_mask) - writel(priv->ce_clear_mask, drvdata->base); - edac_device_handle_ce(dci, 0, 0, drvdata->edac_dev_name); - ret_value = IRQ_HANDLED; + if (!priv->ce_status_mask || + (priv->ce_status_mask & readl(status_addr))) { + if (priv->ce_clear_mask) + writel(priv->ce_clear_mask, clear_addr); + edac_device_handle_ce(dci, 0, 0, + drvdata->edac_dev_name); + ret_value = IRQ_HANDLED; + } } else if (irq == drvdata->db_irq) { - if (priv->ue_clear_mask) - writel(priv->ue_clear_mask, drvdata->base); - edac_device_handle_ue(dci, 0, 0, drvdata->edac_dev_name); - panic("\nEDAC:ECC_DEVICE[Uncorrectable errors]\n"); - ret_value = IRQ_HANDLED; + if (!priv->ue_status_mask || + (priv->ue_status_mask & readl(status_addr))) { + if (priv->ue_clear_mask) + writel(priv->ue_clear_mask, clear_addr); + edac_device_handle_ue(dci, 0, 0, + drvdata->edac_dev_name); + panic("\nEDAC:ECC_DEVICE[Uncorrectable errors]\n"); + ret_value = IRQ_HANDLED; + } } else { WARN_ON(1); } @@ -665,8 +638,9 @@ static ssize_t altr_edac_device_trig(struct file *file, if (ACCESS_ONCE(ptemp[i])) result = -1; /* Toggle Error bit (it is latched), leave ECC enabled */ - writel(error_mask, drvdata->base); - writel(priv->ecc_enable_mask, drvdata->base); + writel(error_mask, (drvdata->base + priv->set_err_ofst)); + writel(priv->ecc_enable_mask, (drvdata->base + + priv->set_err_ofst)); ptemp[i] = i; } /* Ensure it has been written out */ @@ -715,6 +689,8 @@ static void altr_create_edacdev_dbgfs(struct edac_device_ctl_info *edac_dci, static const struct of_device_id altr_edac_device_of_match[] = { #ifdef CONFIG_EDAC_ALTERA_L2C { .compatible = "altr,socfpga-l2-ecc", .data = (void *)&l2ecc_data }, + { .compatible = "altr,socfpga-a10-l2-ecc", + .data = (void *)&a10_l2ecc_data }, #endif #ifdef CONFIG_EDAC_ALTERA_OCRAM { .compatible = "altr,socfpga-ocram-ecc", @@ -784,12 +760,15 @@ static int altr_edac_device_probe(struct platform_device *pdev) if (!drvdata->base) goto fail1; + /* Except for A10 L2 cache, status reg is within alloced base mem */ + drvdata->status = drvdata->base; + /* Get driver specific data for this EDAC device */ drvdata->data = of_match_node(altr_edac_device_of_match, np)->data; /* Check specific dependencies for the module */ if (drvdata->data->setup) { - res = drvdata->data->setup(pdev, drvdata->base); + res = drvdata->data->setup(pdev, drvdata); if (res) goto fail1; } @@ -797,14 +776,16 @@ static int altr_edac_device_probe(struct platform_device *pdev) drvdata->sb_irq = platform_get_irq(pdev, 0); res = devm_request_irq(&pdev->dev, drvdata->sb_irq, altr_edac_device_handler, - 0, dev_name(&pdev->dev), dci); + drvdata->data->irq_flags, + dev_name(&pdev->dev), dci); if (res) goto fail1; drvdata->db_irq = platform_get_irq(pdev, 1); res = devm_request_irq(&pdev->dev, drvdata->db_irq, altr_edac_device_handler, - 0, dev_name(&pdev->dev), dci); + drvdata->data->irq_flags, + dev_name(&pdev->dev), dci); if (res) goto fail1; @@ -900,9 +881,12 @@ static void ocram_free_mem(void *p, size_t size, void *other) * memory will cause CE/UE errors possibly causing an ABORT. */ static int altr_ocram_check_deps(struct platform_device *pdev, - void __iomem *base) + struct altr_edac_device_dev *drvdata) { - if (readl(base) & ALTR_OCR_ECC_EN) + void __iomem *base = drvdata->base; + const struct edac_device_prv_data *prv = drvdata->data; + + if (readl(base + prv->ecc_en_ofst) & prv->ecc_enable_mask) return 0; edac_printk(KERN_ERR, EDAC_DEVICE, @@ -914,13 +898,21 @@ const struct edac_device_prv_data ocramecc_data = { .setup = altr_ocram_check_deps, .ce_clear_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_SERR), .ue_clear_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_DERR), + .clear_err_ofst = ALTR_OCR_ECC_REG_OFFSET, + /* Cyclone5 & Arria5 have separate IRQs so status = 0 */ + .ce_status_mask = 0, + .ue_status_mask = 0, + .err_status_ofst = 0, .dbgfs_name = "altr_ocram_trigger", .alloc_mem = ocram_alloc_mem, .free_mem = ocram_free_mem, .ecc_enable_mask = ALTR_OCR_ECC_EN, + .ecc_en_ofst = ALTR_OCR_ECC_REG_OFFSET, .ce_set_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_INJS), .ue_set_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_INJD), + .set_err_ofst = ALTR_OCR_ECC_REG_OFFSET, .trig_alloc_sz = ALTR_TRIG_OCRAM_BYTE_SIZE, + .irq_flags = 0, }; #endif /* CONFIG_EDAC_ALTERA_OCRAM */ @@ -967,27 +959,81 @@ static void l2_free_mem(void *p, size_t size, void *other) * Note that L2 Cache Enable is forced at build time. */ static int altr_l2_check_deps(struct platform_device *pdev, - void __iomem *base) + struct altr_edac_device_dev *drvdata) { - if (readl(base) & ALTR_L2_ECC_EN) + void __iomem *status_base, *base = drvdata->base; + const struct edac_device_prv_data *prv = drvdata->data; + + if ((readl(base + prv->ecc_en_ofst) & prv->ecc_enable_mask) != + prv->ecc_enable_mask) { + edac_printk(KERN_ERR, EDAC_DEVICE, + "L2: No ECC present, or ECC disabled\n"); + return -ENODEV; + } + + if (!of_machine_is_compatible("altr,socfpga-arria10")) return 0; - edac_printk(KERN_ERR, EDAC_DEVICE, - "L2: No ECC present, or ECC disabled\n"); - return -ENODEV; + /* A10 L2 cache status registers are not contiguous with base */ + if (!devm_request_mem_region(&pdev->dev, ALTR_A10_L2_ECC_STATUS, + 2 * sizeof(u32), dev_name(&pdev->dev))) { + edac_printk(KERN_ERR, EDAC_DEVICE, + "Unable to request mem region\n"); + return -EBUSY; + } + + status_base = devm_ioremap(&pdev->dev, ALTR_A10_L2_ECC_STATUS, + 2 * sizeof(u32)); + if (!status_base) { + edac_printk(KERN_ERR, EDAC_DEVICE, + "Unable to ioremap L2 status\n"); + return -ENOMEM; + } + + drvdata->status = status_base; + + return 0; } const struct edac_device_prv_data l2ecc_data = { .setup = altr_l2_check_deps, .ce_clear_mask = 0, .ue_clear_mask = 0, + .clear_err_ofst = ALTR_MAN_GRP_L2_ECC_OFFSET, + /* Cyclone5 & Arria5 have separate IRQs so status = 0 */ + .ce_status_mask = 0, + .ue_status_mask = 0, + .err_status_ofst = 0, .dbgfs_name = "altr_l2_trigger", .alloc_mem = l2_alloc_mem, .free_mem = l2_free_mem, .ecc_enable_mask = ALTR_L2_ECC_EN, + .ecc_en_ofst = ALTR_MAN_GRP_L2_ECC_OFFSET, .ce_set_mask = (ALTR_L2_ECC_EN | ALTR_L2_ECC_INJS), .ue_set_mask = (ALTR_L2_ECC_EN | ALTR_L2_ECC_INJD), + .set_err_ofst = ALTR_MAN_GRP_L2_ECC_OFFSET, + .trig_alloc_sz = ALTR_TRIG_L2C_BYTE_SIZE, + .irq_flags = 0, +}; + +const struct edac_device_prv_data a10_l2ecc_data = { + .setup = altr_l2_check_deps, + .ce_clear_mask = ALTR_A10_L2_ECC_CE_CLR, + .ue_clear_mask = ALTR_A10_L2_ECC_UE_CLR, + .clear_err_ofst = ALTR_A10_L2_ECC_CLR_OFFSET, + .ce_status_mask = ALTR_A10_L2_ECC_CE_STAT, + .ue_status_mask = ALTR_A10_L2_ECC_UE_STAT, + .err_status_ofst = ALTR_A10_L2_ECC_STAT_OFFSET, + .dbgfs_name = "altr_l2_trigger", + .alloc_mem = l2_alloc_mem, + .free_mem = l2_free_mem, + .ecc_enable_mask = ALTR_A10_L2_ECC_EN_CTL, + .ecc_en_ofst = ALTR_A10_L2_ECC_CTL_OFFSET, + .ce_set_mask = ALTR_A10_L2_ECC_CE_INJ_MASK, + .ue_set_mask = ALTR_A10_L2_ECC_UE_INJ_MASK, + .set_err_ofst = ALTR_A10_L2_ECC_INJ_OFFSET, .trig_alloc_sz = ALTR_TRIG_L2C_BYTE_SIZE, + .irq_flags = IRQF_SHARED, }; #endif /* CONFIG_EDAC_ALTERA_L2C */ diff --git a/drivers/edac/altera_edac.h b/drivers/edac/altera_edac.h index 953077d..a028cf9 100644 --- a/drivers/edac/altera_edac.h +++ b/drivers/edac/altera_edac.h @@ -195,4 +195,81 @@ struct altr_sdram_mc_data { const struct altr_sdram_prv_data *data; }; +/************************** EDAC Device Defines **************************/ +struct altr_edac_device_dev; + +struct edac_device_prv_data { + int (*setup)(struct platform_device *pdev, + struct altr_edac_device_dev *drvdata); + int ce_clear_mask; + int ue_clear_mask; + int clear_err_ofst; + int ce_status_mask; + int ue_status_mask; + int err_status_ofst; + char dbgfs_name[20]; + void * (*alloc_mem)(size_t size, void **other); + void (*free_mem)(void *p, size_t size, void *other); + int ecc_enable_mask; + int ecc_en_ofst; + int ce_set_mask; + int ue_set_mask; + int set_err_ofst; + int trig_alloc_sz; + int irq_flags; +}; + +struct altr_edac_device_dev { + void __iomem *base; + void __iomem *status; + int sb_irq; + int db_irq; + const struct edac_device_prv_data *data; + struct dentry *debugfs_dir; + char *edac_dev_name; +}; + +/***** General Device Trigger Defines *****/ +/* Trigger for UE */ +#define ALTR_UE_TRIGGER_CHAR 'U' +/* Line size x 4 */ +#define ALTR_TRIGGER_READ_WRD_CNT 32 +#define ALTR_TRIG_OCRAM_BYTE_SIZE 128 +/* Full Page */ +#define ALTR_TRIG_L2C_BYTE_SIZE 4096 + +/******* Cyclone5 and Arria5 Defines *******/ +/* OCRAM ECC Management Group Defines */ +#define ALTR_MAN_GRP_OCRAM_ECC_OFFSET 0x04 +#define ALTR_OCR_ECC_REG_OFFSET 0x00 +#define ALTR_OCR_ECC_EN BIT(0) +#define ALTR_OCR_ECC_INJS BIT(1) +#define ALTR_OCR_ECC_INJD BIT(2) +#define ALTR_OCR_ECC_SERR BIT(3) +#define ALTR_OCR_ECC_DERR BIT(4) + +/* L2 ECC Management Group Defines */ +#define ALTR_MAN_GRP_L2_ECC_OFFSET 0x00 +#define ALTR_L2_ECC_EN BIT(0) +#define ALTR_L2_ECC_INJS BIT(1) +#define ALTR_L2_ECC_INJD BIT(2) + +/************* Arria10 Defines *************/ +/* Arria 10 L2 ECC Management Group Defines */ +#define ALTR_A10_L2_ECC_CTL_OFFSET 0x0 +#define ALTR_A10_L2_ECC_EN_CTL BIT(0) + +#define ALTR_A10_L2_ECC_STATUS 0xFFD060A4 +#define ALTR_A10_L2_ECC_STAT_OFFSET 0x0 +#define ALTR_A10_L2_ECC_CE_STAT BIT(15) +#define ALTR_A10_L2_ECC_UE_STAT BIT(31) + +#define ALTR_A10_L2_ECC_CLR_OFFSET 0x4 +#define ALTR_A10_L2_ECC_CE_CLR BIT(15) +#define ALTR_A10_L2_ECC_UE_CLR BIT(31) + +#define ALTR_A10_L2_ECC_INJ_OFFSET ALTR_A10_L2_ECC_CTL_OFFSET +#define ALTR_A10_L2_ECC_CE_INJ_MASK 0x00000101 +#define ALTR_A10_L2_ECC_UE_INJ_MASK 0x00010101 + #endif /* #ifndef _ALTERA_EDAC_H */