From patchwork Mon Mar 7 19:43:00 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: 8522291 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 8C1DE9F46A for ; Mon, 7 Mar 2016 19:42:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9933D20114 for ; Mon, 7 Mar 2016 19:42:05 +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 A133320103 for ; Mon, 7 Mar 2016 19:42:04 +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 1ad110-00061D-Hg; Mon, 07 Mar 2016 19:40:26 +0000 Received: from mail-by2on0079.outbound.protection.outlook.com ([207.46.100.79] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ad10T-0004iy-TP for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2016 19:39:56 +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=IeAcpHbkTx7HHvnhL0PmTrWjBPZ6iHvm3sqPKtFguWo=; b=UfWrNUcV4oAhIkWuAucUdwap1TfWNBfHWanPvcazthpUNGknHkxKI0h+jcPr24ST7DsSs1SmtVA4GDKseiHJI/dqSccruk9lr3w8Ui5X+E18COJTzfbbqX3OCBaJonLLBMGWrZDtM9o4CvE8h7YxfnNHUSnJ6HvIleJeTMWWjk8= Received: from CH1PR03CA010.namprd03.prod.outlook.com (10.255.156.155) by CY1PR0301MB2026.namprd03.prod.outlook.com (10.164.2.20) with Microsoft SMTP Server (TLS) id 15.1.427.16; Mon, 7 Mar 2016 19:39:32 +0000 Received: from BN1BFFO11FD030.protection.gbl (10.255.156.132) by CH1PR03CA010.outlook.office365.com (10.255.156.155) with Microsoft SMTP Server (TLS) id 15.1.427.16 via Frontend Transport; Mon, 7 Mar 2016 19:39:32 +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 BN1BFFO11FD030.mail.protection.outlook.com (10.58.144.93) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Mon, 7 Mar 2016 19:39:31 +0000 Received: from na01-bl2-obe.outbound.protection.outlook.com (207.46.163.204) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 7 Mar 2016 11:38:52 -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=IeAcpHbkTx7HHvnhL0PmTrWjBPZ6iHvm3sqPKtFguWo=; b=UfWrNUcV4oAhIkWuAucUdwap1TfWNBfHWanPvcazthpUNGknHkxKI0h+jcPr24ST7DsSs1SmtVA4GDKseiHJI/dqSccruk9lr3w8Ui5X+E18COJTzfbbqX3OCBaJonLLBMGWrZDtM9o4CvE8h7YxfnNHUSnJ6HvIleJeTMWWjk8= 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 CY1PR03MB1486.namprd03.prod.outlook.com (10.163.17.16) with Microsoft SMTP Server (TLS) id 15.1.427.16; Mon, 7 Mar 2016 19:39:26 +0000 From: To: , , , , , , , , , , Subject: [PATCHv2 04/11] EDAC, altera: Add register offset for ECC Error Inject Date: Mon, 7 Mar 2016 13:43:00 -0600 Message-ID: <1457379787-8327-5-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1457379787-8327-1-git-send-email-tthayer@opensource.altera.com> References: <1457379787-8327-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BY2PR1001CA0010.namprd10.prod.outlook.com (25.164.163.148) To CY1PR03MB1486.namprd03.prod.outlook.com (25.163.17.16) X-MS-Office365-Filtering-Correlation-Id: ff240b26-7dc9-40b6-8946-08d346c034a5 X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1486; 2:F3HUN46+2EABWaLDGdCdCOTbiOJ9TCCW1RZuJMKE7TPjHZUiAD0x71aSUWhudGkmrf4edhWPbJked/aFmol4i5XLwRhncXJkzspthcqPQpAv2lA9UxfI1RVWD2MvuCbO4eyprTqMylC8se0Wfo467Qx9M0gjd9VwyRy0xcHQSfPp2DSZpjrZOMXbE6Aj38f8; 3:k49mH8KJA8HfGs92wdvAA6QMWWHiXphEYLnlX4DAmKy/l4BHHTp0fRiCbVP7eCS9mXRBRZ5hSHxGQHz3JgemTOgLwWC5ae9ivmBzDIU5nidhTLyfF0DdC0kqeS2Wl3hH; 25:4eEBjq6gvh6co62+ECXwNgKvjkSBBo0zv2wI6HvZhIWd0eYwzEBS8Dl1qp9VhJDk85xTBpJmUGNAg/da2SjKBr1KdKcnupdMJPmrkH3iwN/m1NbEiuEYLfUJPuk/4fek9sSJcDjL/nf+ehuYemMwrHVNP2xlHjnRduQHK4+PemFD/qD325c7SlMdsICtSHWqRYK4+8uIE1wtnjAFgDCmZlvDGoF+3cSEBoohY4nL+KT/Hg4ji9x9+gLHptlQLu3BNyN2eHgH8TEIEvq5lAp8ttF5eEm5maQYnUyekeV8BBV8FKVuHL7SY7sygc2Awx0tkYDMClI2ubpezEYyoRIASQ==; 20:jq9ZUeIvccmSRm/upUiHJz6wzX8xQcD9uE8Z1bsCfot0HgtcpcDQana/c3yOlTmuiS34wN8Udejy5D6wbGgEdxLAwS4bsyjWSENXeqm0r3KxelVKUhwzVATKLpsh46XL5pEzPdQUFA5qKhCXQs41NPkkOfv3eGTvF/PM18hItyE= X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1486; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:CY1PR03MB1486; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1486; BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13024025)(13023025)(13017025)(13015025)(13018025)(8121501046)(3002001)(10201501046); SRVR:CY1PR0301MB2026; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB2026; X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1486; 4:eWVSbYBXCLOK6H7tkenCdMIH7Wk+c7dzIMoHx4agO5Tj0pKnW6jcQnr6CWl98Xt2APISlvD081xJG27Sex8qkbrwKW8yaeLKkjUEvVKZ7qkSNEBwYMQVWWYKs3X8/1lKqqH4YAM9ej/0X3SlCbHd+7NZTIs/+PLK4ldFJu/o58KmRZzEYc3YQNa1cV9PuCQ9iLJDzhSijQ95V2wQMwM5TKQvrauVC+/DFWQ0rnttnX8NpP+vbKzXXgv4Ow48SH5Dv+y3EIMix6GAFblxtByhxWob3tR3/GdQdClpJWued8PHyC7DnOufY5Qst2/08K6DLzIX6tesc5hPg65NcnhMDyIY7FUWgV07mmsuykU3Up2rfrdn0IhzhJBAug2VSjP5 X-Forefront-PRVS: 087474FBFA X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(5003940100001)(4326007)(81166005)(92566002)(5001770100001)(2876002)(5004730100002)(5008740100001)(86152002)(2201001)(189998001)(77096005)(19580395003)(19580405001)(40100003)(2950100001)(2906002)(122386002)(107886002)(33646002)(48376002)(229853001)(47776003)(50986999)(76176999)(42186005)(66066001)(50226001)(6116002)(3846002)(87976001)(86362001)(50466002)(4001430100002)(1096002)(586003)(921003)(1121003)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB1486; 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; CY1PR03MB1486; 23:IIWvN1jXoh0RA5ibRdHoenu16lrYwqdGbJonO/EZc?= =?us-ascii?Q?SqDZMmZLn1zc/YDK9lISc+iUWoN7weEsotJ1BcmE/uVnC6seuPjFoRYWKGE9?= =?us-ascii?Q?G5YUd2VhBnQC0of4VY0BohCXZD63CrLEF61GZnRlkDNp/X5t1xs1eHvWeh+D?= =?us-ascii?Q?SYzduUT6T+TLGeVxXrjP6RFULERT2IVvLAgEt2+Ulo+9vPfLMbsWx27hll5i?= =?us-ascii?Q?WcO5wkAwDQJyRqXp+vS/ClzdxtgCdVTcdgQfTcPl3C2v4ArReVO//dbwQ/O6?= =?us-ascii?Q?zYFBHt/JG3N7W9es0rTz8bPYKDrO0p8oFLBASO2SCrvDtJEn+8NJNQZBcV+j?= =?us-ascii?Q?kLa0lG0OM+lv2FJj2M8DZf7b9QuCA8TpbiycjFnJ6hTE/MsR1X8gGVFrtWrn?= =?us-ascii?Q?v8OK6/il7CbngxFoV8WF0cj7X4XWMIWDFOuGgmGPDmEMjApSNe9OHe9BK+mI?= =?us-ascii?Q?GFcjGWhPhnwyopxqihzfSwwB7PXFw6526oe463ed0ljNHjm4os/ePxK0VDET?= =?us-ascii?Q?v8trZ4gYhREWn2QL5+VN2XdHgyxGj0yvXFdQuG14GjT1qo4eQZT0Pc7lhy8W?= =?us-ascii?Q?rfUXxib0eam7nRFuRV6ScR9DjStGeUXpE+vzYqknRyRdAhvnH6Dk+hUrUIQi?= =?us-ascii?Q?IYJW5fFEERGIb2t77Q4tmAShNH9PuhZOqxas60By+D4EVqIRI4MVN300Io6x?= =?us-ascii?Q?8uNdulLEiEI4UxAK5eC7WlpY84HmoZDmydFA47LWR9Ft1s26YYX3SABUVYLw?= =?us-ascii?Q?f8JORiK/6Mejve/87M7LexxdZYoDtPM/en5y6986zEnJ1m0sB5JPawLjy15m?= =?us-ascii?Q?aOzAycGHMfHQNlfZZ/JnYBLghHDWTFSHOoN7IRTTP4o3Ik1w5hLGydc9GTn5?= =?us-ascii?Q?vDqrcv1B6ez45md2laa/Re/P4cXBFDuKyqbTBB6BV6bmTe/XMLPYthocSDS2?= =?us-ascii?Q?yCQp3NVpFwfayWJrtOh6VsWpzjJMYG/reKC4lrmA0h2TAEUdKHwic0sI39vL?= =?us-ascii?Q?vGiLfyKQ9ZeMDAY1qu6oWv8/2M/5Oml2o0wGAWk9LVjy4kgLIFHp2cdZzS+u?= =?us-ascii?Q?DXaZKWnT2jEIuPnQXQHJfUHIE2vjBXdm5d4H9TKjHh37Z7WehxEtOw1AwGkI?= =?us-ascii?Q?o1TdDuJR3c=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1486; 5:3/ttLi3zGT1xmOkNVKn4G8tRAshKFfUBO9Hag/uqI5dPpZdNqMlOidaX5RkEO19fVQs02mo1gP4F+rFRr3rwpIbsHKFZXwmvo9PqNOHv12iOAbHMPZMtY2gMd3WMAkC91ollyR2FQgR4PPC2ySO7xA==; 24:X0r/9OP3+8Ll97psop+JSPIgqEqfUMpmysHpXmsvpKXYGmgBlV1ThH3yv3WOKhphCQhzl7yioGhGYor55iN3n7SCaGi78nPBz1ZO8U+n6v4=; 20:ut0rIKCTGYZJn7QBaMxQ2NulnCrlWlUKOIMvg3xOC2cmywVnittcMRtfjXE9XMU2e4n43c5BB9FwOg0R4j42khno0C40Zwd2yGuRka9uew0pVJzGeZslToU0WvTuM6pwKvo2HskSKdqvpZD90P6KJNl9qXJZdTCFU3hALatPeVo= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1486 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD030.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.227; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(5008740100001)(87936001)(77096005)(19580405001)(19580395003)(50986999)(50466002)(189998001)(76176999)(50226001)(5001770100001)(107886002)(5004730100002)(6806005)(86152002)(956001)(85426001)(1096002)(586003)(3720700001)(16796002)(66066001)(92566002)(2876002)(106466001)(2906002)(4326007)(21840400001)(11100500001)(122386002)(48376002)(47776003)(86362001)(229853001)(3846002)(6116002)(81166005)(5003940100001)(105606002)(2201001)(4001430100002)(1220700001)(33646002)(40100003)(2950100001)(7099028)(921003)(4720700001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB2026; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD030; 1:2/yZ2gqLpG2AJ5VwnA+bKGmf4hDI4JDEUsI/NaFxIATl+4RBMNO8LUTTowqFHfzJpg2JMoDP35jbXzAFBQz3L1zxcyAjo5Bhphcn4HlQ6T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d7xFLBjdcwd2UxSgD+2dMgkHkJ1bKbSbSoZjmCtwWhTALKnZcrTgM3y3PJGbqhHcbKE+o3Dooax+BsFBa8AUXmJNp3m9XJq+MwRgstixCINLO6dJl3DcPRhdfLEPCYq5x2g4WFFgsMfg== X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:CY1PR0301MB2026; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB2026; 20:QG3rLpCb8//BD0coE2G5luKm2JcBSXhbC018zW0pLDgWzujN6MjIAqIrYpNOr7MojgU5QBkJv/JvVYBa0TygfjbyPMMqW6NYfIJxmB/GI5n66eUJNlYAmzp7jLSYSkwB9AN5r4HP6PdZX5MvKg3b0mXSQmzF09C29+3KCQFCvJ4=; 4:UHevavuyvps7pMH8D3JcUsVPNt6Q842B4txq61vL2sBSs6KbXr2PLHVMujXL/qWm1I2l1saI8o77+ZPN5dnopPxilQQsptmTkO2WdjlBhwUxuy5i1lvr2OC2o7LzFHcnYdyiB28qCVRjGyoVzEjfUMtGX5S7wzBAyeaLewFzesGS2gMBGfpXanPIny2i2hE8RVlDdiyMo5a6hKe2NxEqGwzKjagT38HBALqxLUoKcOjiU/vGNl+f12kkykGH/jKHqY8Ns0GmIOXFnJ9xUzet1jX5jnOVuUmQel7ou0saP34WjdOIzSSOdgZgvsBa4d9t9p65+W/3va3uqlT16tKzxU7SwViGLnKZOY9pkTGBskzz71+mlWDZAGwYOrkd5yn3j6YDGneiIJLZk6p7LdAnX7Z5VaRAqHQIix7+KZXrFC/NKZmzZ/NpBrnURB3JHHdH6VKfEYHNON5EXFkkZeFhkA== X-Forefront-PRVS: 087474FBFA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB2026; 23:pJ57QaY+5aeC4PpRY+AchRNfqAMsVlxQbsVS3BQ?= =?us-ascii?Q?JYkY6cdo7lsEDm6kyneUPZ6cI59Frp5ixDnE6EEwbQC8Pgc4tzo4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t/eXXXtCRyowAT6OnyKM4tG3m5Zp2g9eb?= =?us-ascii?Q?TxJ6PQDu0KxpjOzi/xAS2ok6JjdaMHBfD/O4BhkcMkk5MnIhkkV6NTDIp99l?= =?us-ascii?Q?M4BCClj7wHeYvZbCP/9LexMyW5ZvX194i0sATa2iQsGTVvUGY93+BFCeiLng?= =?us-ascii?Q?ReBORmHA1ZXIrfC8bJfUneNMRD3K6Eq6E1UC0bgCW6klkUjg6AYI0g2fFiO1?= =?us-ascii?Q?mIv+C3A12Dwy435kTknG2ZHQGxFHvbwluGOIlBGdlG2zuN34YRPh39VtmD5F?= =?us-ascii?Q?9ewGSR/bEtVIkL/qjWYIqCK8Nkq+IE5A8w1uLaT42Sdrt43WhJi8rzLxmV+o?= =?us-ascii?Q?bUEpBQz0Rb3NpD4lBNbUqeTI98JDjcX5ofUKF4yBE/ySRTE+L1q+4I/hwkXi?= =?us-ascii?Q?mJLgMSU3FzR7NyFNLbDed0Ni6V68qE7VtIh+56lt0IXXofihox1JMGUhmX+f?= =?us-ascii?Q?/dpIhsLYHlw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB2026; 5:EIuWnFsv2SWIJU9AvkhWs7zlgjhbhnn4Vw2ebqNDy6KfCNcPXcOflR56zyQ32taySQSXaM+oRkM3tNe8S4fGiDeYBXnH48X6cDGm5C6VO4j2jsmV4xf9wttw4BfGR/D45AgMKZkgHkuQdbCikwkakg==; 24:1mLWyja19awhYTAZZ61zjJN/UCMta8XW233NsspAchmEAFxeFIww+P1DYU0gZzHwylZYV6m15oGx0ky3nDhxcAQOBDEooXpSmgjutSj8nEw=; 20:FF7G86+g2WpcAa/iTjy3Dz47aID4AjyAHzsmiQhkv9A7n01vyY45uKdy6UqCZjfYbyS8tXoEHlvnBJ2cV3u2qgz3cA3a5A2i/YUOpvqJZazdoIdmxF7msLpl3Hm9lPCUOdcEuVWz0e8nbVYPbVYJkrPFNtQm4cYxHasnhb83M8A= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2016 19:39:31.6868 (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: CY1PR0301MB2026 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160307_113954_254543_E7E02557 X-CRM114-Status: UNSURE ( 7.93 ) 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 In preparation for the Arria10 peripheral ECCs, a register offset from the ECC base was added to the private data structure to index to the error injection register. Signed-off-by: Thor Thayer --- v2: Split large patch into smaller patches. Add an ECC error inject offset to support the different register layout of Arria10 peripheral ECCs. --- drivers/edac/altera_edac.c | 7 +++++-- drivers/edac/altera_edac.h | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index 138446c..9e62a49 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -622,8 +622,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 */ @@ -881,6 +882,7 @@ const struct edac_device_prv_data ocramecc_data = { .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, }; @@ -954,6 +956,7 @@ const struct edac_device_prv_data l2ecc_data = { .ecc_en_ofst = ALTR_L2_ECC_REG_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_L2_ECC_REG_OFFSET, .trig_alloc_sz = ALTR_TRIG_L2C_BYTE_SIZE, }; diff --git a/drivers/edac/altera_edac.h b/drivers/edac/altera_edac.h index 54e2742..d4105b0 100644 --- a/drivers/edac/altera_edac.h +++ b/drivers/edac/altera_edac.h @@ -232,6 +232,7 @@ struct edac_device_prv_data { int ecc_en_ofst; int ce_set_mask; int ue_set_mask; + int set_err_ofst; int trig_alloc_sz; };