From patchwork Wed Jan 27 16:13:23 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: 8135491 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C2AABBEEE5 for ; Wed, 27 Jan 2016 16:14:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 87B9820274 for ; Wed, 27 Jan 2016 16:14:07 +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 5A72E20221 for ; Wed, 27 Jan 2016 16:14:06 +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 1aOSht-0004pZ-Dd; Wed, 27 Jan 2016 16:12:33 +0000 Received: from mail-bn1bon0072.outbound.protection.outlook.com ([157.56.111.72] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOSgB-0003GA-NP for linux-arm-kernel@lists.infradead.org; Wed, 27 Jan 2016 16:10:55 +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=HnOepfET9/SjDfqSfMegx9IF5I/4N0VuPvTJWE83YDo=; b=HWvX6bMjrWIoujSsisnIxaaBRUijFtNVisF/1oM/L1LDPSIu+0XX4imqYx4Pn6SUTFUW/dnCtcgqUZ/SGHMasBLyztJt4C0PWiNbqpG3JcQ7fPAVyphaZyELYgzWsbIYGuLL4ySTCGdNSTjXILAMkJyqknRW7inE3a1lrokkhn0= Received: from BN3PR0301CA0007.namprd03.prod.outlook.com (10.160.180.145) by DM2PR0301MB1311.namprd03.prod.outlook.com (10.160.222.16) with Microsoft SMTP Server (TLS) id 15.1.390.13; Wed, 27 Jan 2016 16:10:25 +0000 Received: from BL2FFO11FD033.protection.gbl (2a01:111:f400:7c09::133) by BN3PR0301CA0007.outlook.office365.com (2a01:111:e400:4000::17) with Microsoft SMTP Server (TLS) id 15.1.390.13 via Frontend Transport; Wed, 27 Jan 2016 16:10:25 +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 BL2FFO11FD033.mail.protection.outlook.com (10.173.161.129) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Wed, 27 Jan 2016 16:10:24 +0000 Received: from na01-bl2-obe.outbound.protection.outlook.com (207.46.163.209) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 27 Jan 2016 08:09:27 -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=HnOepfET9/SjDfqSfMegx9IF5I/4N0VuPvTJWE83YDo=; b=HWvX6bMjrWIoujSsisnIxaaBRUijFtNVisF/1oM/L1LDPSIu+0XX4imqYx4Pn6SUTFUW/dnCtcgqUZ/SGHMasBLyztJt4C0PWiNbqpG3JcQ7fPAVyphaZyELYgzWsbIYGuLL4ySTCGdNSTjXILAMkJyqknRW7inE3a1lrokkhn0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tthayer@opensource.altera.com; Received: from localhost.localdomain (64.129.157.38) by BY1PR03MB1484.namprd03.prod.outlook.com (10.162.210.142) with Microsoft SMTP Server (TLS) id 15.1.390.13; Wed, 27 Jan 2016 16:10:18 +0000 From: To: , , , , , , , , , , Subject: [PATCHv9 4/4] ARM: socfpga: Enable OCRAM ECC on startup Date: Wed, 27 Jan 2016 10:13:23 -0600 Message-ID: <1453911203-30202-4-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1453911203-30202-1-git-send-email-tthayer@opensource.altera.com> References: <1453911203-30202-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: CY1PR20CA0112.namprd20.prod.outlook.com (25.164.213.166) To BY1PR03MB1484.namprd03.prod.outlook.com (25.162.210.142) X-MS-Office365-Filtering-Correlation-Id: cf145c98-57e8-4ed8-d69d-08d327345d67 X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1484; 2:ag1X+88G95aIYjCbvZcvSlkNZTq9XJTSimuXxkN6TFZ3AzVq+ICc4Sc+jQBBr/vekyLT0KNfWTfZs+SsoxQimC5aejHSs5TH0UiPmtWDajhnTqlni2oG0arm+E3uQNwZO0iX6t0VWWezbEykSI/gkMEEt+tE/79dJKTxeFSqq08Rf03QCi8DwCG+43SY+h4t; 3:oIQxNGndmikoMb5JJuPwzi54q/FZJM+8p9HQNFToIs/kCfhBT4JzV0HsGY5Y9cvnt6HieNcGg8G9Nd2SeoaOjlINprYXtNHkJyz22wvp8R8vrDcKeoGnGpBIO1IRLD0N; 25:0+c7xTqMwpeEHu4aqn9FNIJEKiScJfZASOesq/jrTpBu1vNi602AlX+L7tWB/jiflV93Qx9EBrPUUtnITIq+YdoqwW7MxT/11C6oLdqC05R3K64WbFB+2QDxRjruYAzDd4vO58wqbDfAg4RULJWhauVm2fsZx5Hs1mDxp0OCPbM8wozjpHsUvJpraPnldNslK5i2VDLFGZEuKdNWifIpLiT6H4ogtoI5cXWs6iuHFM3FTXpUWYHZLBMNwY0zjkwh; 20:BeCceUn4x7GbunhBqzXsn2PifhOuoKu7eYy16a5tPh6R84KaA7RJ1Eln3BLko0MUB5rCJzu005qYeB4A8rFB95/EgSO+NRWMzY77RBCj11DQNi6mv/DAPKbgcKovObEWoqAqJ+THXIWnW3jlHgnbjTCd6DTwQ1UvPedCD485zKU= X-Exchange-Antispam-Report-Test: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1484; UriScan:(80048183373757); UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:DM2PR0301MB1311; UriScan:(80048183373757); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BY1PR03MB1484; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1484; BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13015025)(13024025)(13018025)(13017025)(8121501046)(13023025)(10201501046)(3002001); SRVR:DM2PR0301MB1311; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB1311; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1484; 4:L0v9jzn4wnfnoskv82vTJ9wzbo/ciUs/NRrO9LYOaauNqXJZMRqoZ0wz5i4AvhbsimJ6Ps3iYwIls6z2Y0HOUH8A0xi/fP2knkvFN6OFeS0KH4F5axD2IzyXTbGciu8P8xWuzbw1zKYSNc116mLiPQUF6WEDovZZpZajlw+Ga5zdyWfACSvmevPvq6VaR64J+ZBo/D3kEWmP5vrFc0QFEk+QLzD+1aZaga1osQFi56c6fXw94ypBcb9w6Op+cad3AGhqHf/Q1dhEa72HcoE3TWBwJK87Q7EQZVprpxDudaoEu5FnPlpG9IXruEelMHM2MHOVnRB16n6jzr00RfINgrAR2UD7PLW8yD3JpEj/f/8hSMe8VGeknDYMzsC6LsGyvzWuJeAWTetEpAlGff3ufGVh07bN8+iudAHPvlR0Yh4= X-Forefront-PRVS: 0834BAF534 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(199003)(189002)(2201001)(50226001)(86152002)(105586002)(47776003)(66066001)(33646002)(48376002)(87976001)(50466002)(106356001)(4001430100002)(5001770100001)(5003940100001)(3470700001)(229853001)(5008740100001)(81156007)(4326007)(76176999)(2950100001)(19580395003)(19580405001)(2876002)(97736004)(575784001)(50986999)(1096002)(101416001)(86362001)(15975445007)(5001960100002)(77096005)(122386002)(6116002)(586003)(107886002)(3846002)(2906002)(40100003)(92566002)(42186005)(5004730100002)(189998001)(921003)(2004002)(1121003)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1484; H:localhost.localdomain; 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; BY1PR03MB1484; 23:EuLYZQcahSUj9w0XLWy+cZ88Sx5vKzKp1ALVTbkEF?= =?us-ascii?Q?bKJXJGMVKnCNzc4V1qSKwMKFvLEzmS4WTmCBUW8cdfarv8LYZ6rAgBCZ7HZA?= =?us-ascii?Q?zkz1nlcHX2/ZZp40h/nZLdYvSAbNP5NeQa2w+AvLlM/hhKjexZmMhy1V8PoC?= =?us-ascii?Q?H+FnmgzxYITM1S33/5UflYUYVHi/eXGECzJVbr3/3Mza6XcazO8GJSso6tQd?= =?us-ascii?Q?KqPWemx0TKGRmgJZO5LXT513QpoyMj1wiO1SD7jclx0wmrjxoyk0E8yXU/It?= =?us-ascii?Q?TFtemxCpYPpxOYmnWwuc4ivxgHfUnlVbTtLRBcUvUaiqJpBz8DjewUZV4sov?= =?us-ascii?Q?o8q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sef/Gop7eR?= =?us-ascii?Q?lrIUkcYG7aUZOcRQpGta1aIbNXFOLvgulrRXYG5wpMxxnP6fl+dx4NmMGR88?= =?us-ascii?Q?0bIK8LMoro0Cp2+HzpWYq2IhJ7sQeW9YuhrpFjX4RcB?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1484; 5:4z6nDgXSaX/sIsAa83x6EmFTOcHCV3vnkMDBHDfWI793ptJVlQX7NpeTC3roIM5a7H6IEwtA6vq5X6te4t3YOqvixIj+PF8tgera4ABTlzUiyrw+SxELKEBYM2HfIcxP4CRTsQSdF0B3bhto8ATj1w==; 24:7pn3rpeXpJko0bb8dh7WOgn8pEfQoFadrhXlYRaL7VcfERAnKb5dWCVyVFQ68jQvE9NzEBYOjAOGhf/+Aij20Ss3SxwozynwFu/lJrg1DPg=; 20:rGDvAMNOfH5iqxiYFmhceYKreBQcGW7+XO2DhHMuWgadfjjbciC5m5j7/yOghCmuM9jS4ERLn3GCpU9VCOPI2GGWH0eipKbCD7sMs/+68lBbJsmrBC70vQqtqKSPFijMV0dK9JSwI6SdqU1tVsatF08jhHGDmhHY9XknuIWf9mE= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1484 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BL2FFO11FD033.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD033; 1:ercQmUvEzSwaJmxQcLS3fuHyZ7S+2N2FhjpXNUfTouCMmaG1bKW17vUvQhy7EFBUNHt3N7h4di9BkkvcZvrfunYSKOCUsDxqNSLTi451X6cC7hoKd2+x61MtXZAU7OM5AB3tnXB5ZKJal5ISg3R+80kqGIKcoAR25DaW660aupRxXlHF6u87wVPXhu5q8SA74I00YFDVTswjGO2T0uDyLEFE5CE2LIZkXMtJnl3Fe0W90kfm9a6OaOwo2/yP3dXJMKLsrkKybSh8xTThUMTP6J3dFM42uzm8HSnlh0V6xPhwu4bCo4VtiQPK00HJEPuCw/zS9PdWQPtmwJm8oj4EhnI909+9JSfwq+ESEypt5C6Up7s7gK7k1fZcI9IB/SkFFpdoa1ZiY2ddEVZSEFxCUAarhw5xnC6iJqx5Cui1LA7LKMBDo+53QxmhbwLoe0mm X-Forefront-Antispam-Report: CIP:66.35.236.236; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(5001960100002)(15975445007)(106466001)(3846002)(2950100001)(49486002)(4001430100002)(48376002)(77096005)(1096002)(229853001)(107886002)(85426001)(6116002)(11100500001)(1220700001)(81156007)(5001770100001)(6070500001)(189998001)(3470700001)(5008740100001)(19580395003)(956001)(66066001)(586003)(50986999)(105606002)(47776003)(6806005)(97736004)(76176999)(21840400001)(2876002)(2906002)(2201001)(87936001)(122386002)(4326007)(19580405001)(86152002)(16796002)(92566002)(575784001)(50226001)(50466002)(5003940100001)(5004730100002)(86362001)(33646002)(40100003)(7099028)(921003)(2004002)(217873001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB1311; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1311; 2:BlxVdPVxll4f3lR+mm9IKosRZDxHoc7NVk3tRHPi7BoRDzHJ5SuzmLwn3UdSrP6/47lUFcjq1sMM+FTJ5yjqvwYkHA95bPIXfBC12jI9EC4IyNnfj/Rqkdof1TuW9joy50/raXd/YPktXDJZcCc/psvPQ9ujgXCJ260TNQjehnI/Hdv75aBszh/mH59JTv3j; 3:GNRvMPsp1StiA0Z2EE1Ob9Wbi7Rqhs8lnS7YO2h9IkJ7/9QcOQF+Pt2gYby5z/CH8lMGHtLxH5/6G0rhlEnOxgw0vidcWuU7txAPAZrz3f0WqGOEmsEY6di9ozYuUdfegnn8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9eMIwMH8h2HT+Kz9N8Vase/Tns3x/Cepvm8cE1nCHrBr1 X-Forefront-PRVS: 0834BAF534 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB1311; 23:+29k+lp4qS9cZOwTMWwWf2ErRiWgo6670aJKAfp?= =?us-ascii?Q?1injr0z/2rNUkVBu6jhN+pnnhIpbi4DmnhaE0gcCYUQREZtK/aCnVCFQMWqY?= =?us-ascii?Q?WEwWL++RPNpVzV/b9BjZ+Fi2F8lpVgQ/BTJYiXWXDAmdCtOCsfq2pQU13WYh?= =?us-ascii?Q?s01yqdUxpdxfs7kwoJteiNQBDRFYoNt6jgou1A8UoTO4i3KYKHbjRxKI486v?= =?us-ascii?Q?8TtC/cvoXpH4hJubJPUDxpZXRGGrn2UwugcASm90Chnja5GHouH4XNQwzo+u?= =?us-ascii?Q?XOrBOBG5ZtyaWYGiEurXpeWvrLLJv3AngoO1feuwj7cWIsc8GEm/hcxuNp3j?= =?us-ascii?Q?F0rFrnHSZ7NgT5XWpU6PsyIyrwaAR4d1BJn3pI3q5wt+BgVbs6cm2Os4v0Yn?= =?us-ascii?Q?V7ntIA/iQrnn17rvoBFBfI85bLZ6dPoWy/Q209NpHQjiJdTwnTk8N8Yjl9H9?= =?us-ascii?Q?4ftg2/yLx95oTLiD2pKJpQmT+VS7qLsVGET/wULa4UaKbjc0VmO2ew1qfIdk?= =?us-ascii?Q?GQ9jc+YTO6m+cp3FleYtE7GUJDef3Odd+MifRbz2ViGUJIyK3zTCgkyjIXsK?= =?us-ascii?Q?7jomqiajeQsNVEUJ2ErXnM4E16kdxYegyiH+WuXCQLsFeuRm0fVtVQxFfku4?= =?us-ascii?Q?rLaJCmJpY3eA9+Pz7KngAUMyBD2P826zg0RWzt27qThlxBoOu7mdu331ZjYw?= =?us-ascii?Q?or6ozxh+EXXHxmqyuauY0OUwWg5BFGUVQW2taIbAOhfafeKq8U877Mn4SU7u?= =?us-ascii?Q?ElwZIMb2bbfDbC5OuvLTh1bClAYHWk+IwtL0iAsg6AxtHQHxEAEBST1NR7My?= =?us-ascii?Q?ufdFNv2K0v8lsI4zoiCnkwG+eywlE8dAi0cJIi2yWJX+MbDD3bzIY7LWUWEy?= =?us-ascii?Q?Or26aztoUwBLoRw/Mnu9As4tXESMkrmhWX2sRGKzD+lglaIrOgu06OLHhrEv?= =?us-ascii?Q?m7s4p+FHkrFCpZzmOZeKWNsrKXpuIW674dY5bV+ZV+lOpGI01upzGe0FEdeJ?= =?us-ascii?Q?X5O1772HCRxTEpXMcFiMuSa+YTrFaPrZByQ70ma79fJo0OKLi+SWO86ed3K6?= =?us-ascii?Q?MSimyUj20g99cAZgZxC3Jf8nTrQjdalM9XQZozv2sJap/lq0kp60ov5Bi00S?= =?us-ascii?Q?CCbSJKlPt6lDMBIVWfANsSs7qPruMZplmlz21JSaEwqP/bE/20a7OyZVu2E5?= =?us-ascii?Q?5DaZVQyUiUqyJQdYdhRJOOoGQOCnxc8GCkaA1cFgh2OePJD/4FnZHJXp9LZl?= =?us-ascii?Q?8R7E4lAsGkhrX5H2RfXt/UuFY08wrZJIfZp7JIpZWUiWrvSO9qH2UT8OH52b?= =?us-ascii?Q?qWr2xdM68Tzq8YiwMHjvsc2HQ1+XVRTLji1jIj10u4KRDoN0gYh3kmjtQd71?= =?us-ascii?Q?immHZd3AfxqMOCXsYeSXEBeaN3Nkj1lTfgkYgAQznBBMWaSbIUsIMQEjbx5o?= =?us-ascii?Q?lS71Rgrfc8RdHnjVJ4NDb6+YuM3dMd0D+9Ezn55UtGSv2jeuTnljhl3dLoaZ?= =?us-ascii?Q?7635ifHTYUNFUJtwTwp4XOlRMlLGoJZ8+eDw9yo6vA4xaZiXwysBoMAQ8uET?= =?us-ascii?Q?+LVjjgVr03t1rDIYdTam5zziv+Nq7dIHlf29nay4=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1311; 5:JBRliqzPvipKjUfbSJ23lIETftCw5A80M8cwcZhNvzh0btigo4S1EEQufnQGePPMfp019H0PIqwCGqZjzFJYNGmjcQv5uE29yMfUV2Dt09IIBtbLKkg08//KpOUmFXEXFXVtrG8/0yLxfmX5dL4NTg==; 24:4iy8IsX40FZW3OZF4nbgjJbIIpDBkxfN/n54GIsag3MDxFaC9hPo0GlqxnZRszZPhr55AAvQuXewFSXghVnZ3ntwJK2DD/q1Vo9kXsa3v+Q=; 20:mV0ZhVJokq6UKawDjRqNP5MFmOmBcJOXfryB/k7ciyEDs77ImGZo6GYp1yWVrF0TdfXvwrecsWBg70JZCjgLCITYr4awlBEVXOUmAz3FLs2R/KvHHMKlTk9HW7nQ6rgRStvVNCh2RaDoC1xwoXgOl1+2c79FMG19JWXL5gfDu/g= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2016 16:10:24.4808 (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: DM2PR0301MB1311 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160127_081048_363269_E83CDCE9 X-CRM114-Status: UNSURE ( 5.53 ) 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 This patch enables the ECC for On-Chip RAM on machine startup. The ECC has to be enabled before data is stored in memory otherwise the ECC will fail on reads. Signed-off-by: Thor Thayer Acked-by: Dinh Nguyen --- v9: Improve node release handling. v8: Address community comments on strings. Fix match strings based on maintainer feedback. Update year in header. v7: enable OCRAM ECC during platform init v6: Implement OCRAM discovery changes from community. Add of_node_put(). Remove be32_to_cpup(). Use __init() which allows removal of .init_machine(). Update year in header. --- arch/arm/mach-socfpga/Makefile | 1 + arch/arm/mach-socfpga/core.h | 1 + arch/arm/mach-socfpga/ocram.c | 49 +++++++++++++++++++++++++++++++++++++++ arch/arm/mach-socfpga/socfpga.c | 3 +++ 4 files changed, 54 insertions(+) create mode 100644 arch/arm/mach-socfpga/ocram.c diff --git a/arch/arm/mach-socfpga/Makefile b/arch/arm/mach-socfpga/Makefile index e9ab7c9..ed15db1 100644 --- a/arch/arm/mach-socfpga/Makefile +++ b/arch/arm/mach-socfpga/Makefile @@ -6,3 +6,4 @@ obj-y := socfpga.o obj-$(CONFIG_SMP) += headsmp.o platsmp.o obj-$(CONFIG_SOCFPGA_SUSPEND) += pm.o self-refresh.o obj-$(CONFIG_EDAC_ALTERA_L2C) += l2_cache.o +obj-$(CONFIG_EDAC_ALTERA_OCRAM) += ocram.o diff --git a/arch/arm/mach-socfpga/core.h b/arch/arm/mach-socfpga/core.h index eb55d66..575195b 100644 --- a/arch/arm/mach-socfpga/core.h +++ b/arch/arm/mach-socfpga/core.h @@ -37,6 +37,7 @@ extern void socfpga_init_clocks(void); extern void socfpga_sysmgr_init(void); void socfpga_init_l2_ecc(void); +void socfpga_init_ocram_ecc(void); extern void __iomem *sys_manager_base_addr; extern void __iomem *rst_manager_base_addr; diff --git a/arch/arm/mach-socfpga/ocram.c b/arch/arm/mach-socfpga/ocram.c new file mode 100644 index 0000000..60ec643 --- /dev/null +++ b/arch/arm/mach-socfpga/ocram.c @@ -0,0 +1,49 @@ +/* + * Copyright Altera Corporation (C) 2016. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +#include +#include +#include +#include +#include + +#define ALTR_OCRAM_CLEAR_ECC 0x00000018 +#define ALTR_OCRAM_ECC_EN 0x00000019 + +void socfpga_init_ocram_ecc(void) +{ + struct device_node *np; + void __iomem *mapped_ocr_edac_addr; + + /* Find the OCRAM EDAC device tree node */ + np = of_find_compatible_node(NULL, NULL, "altr,socfpga-ocram-ecc"); + if (!np) { + pr_err("Unable to find socfpga-ocram-ecc\n"); + return; + } + + mapped_ocr_edac_addr = of_iomap(np, 0); + of_node_put(np); + if (!mapped_ocr_edac_addr) { + pr_err("Unable to map OCRAM ecc regs.\n"); + return; + } + + /* Clear any pending OCRAM ECC interrupts, then enable ECC */ + writel(ALTR_OCRAM_CLEAR_ECC, mapped_ocr_edac_addr); + writel(ALTR_OCRAM_ECC_EN, mapped_ocr_edac_addr); + + iounmap(mapped_ocr_edac_addr); +} diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index dd1ff07..7e0aad2 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -61,6 +61,9 @@ static void __init socfpga_init_irq(void) socfpga_sysmgr_init(); if (IS_ENABLED(CONFIG_EDAC_ALTERA_L2C)) socfpga_init_l2_ecc(); + + if (IS_ENABLED(CONFIG_EDAC_ALTERA_OCRAM)) + socfpga_init_ocram_ecc(); } static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)