From patchwork Thu Jan 21 17:34:27 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: 8083661 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 A2727BEEED for ; Thu, 21 Jan 2016 17:35:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1CF3D20328 for ; Thu, 21 Jan 2016 17:35:13 +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 B880E202FF for ; Thu, 21 Jan 2016 17:35:11 +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 1aMJ6v-0007Sg-4D; Thu, 21 Jan 2016 17:33:29 +0000 Received: from mail-bn1bon0058.outbound.protection.outlook.com ([157.56.111.58] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aMJ6h-0007Md-8m for linux-arm-kernel@lists.infradead.org; Thu, 21 Jan 2016 17:33:17 +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=WqvYlGoLRea9pDQ7lTkLZAoospMu3dHYEvbn+AMwdy8=; b=Hh1pbZ8J9+A/z9RLBoYcX1QW39XNWaWjJGaVuZ7qV2uExw56mcSbveZ4U48LgYIe62DaYSO2F2o4JCcJ659G3cx8bGTeGjCSMc+f5LLLNKoGESClSpmB2+gCVLwGpk1OPcIsF+RAysw7GmHIFIPyPvYob8crlwvjvX92b15tYlA= Received: from BLUPR03CA004.namprd03.prod.outlook.com (10.255.124.21) by BLUPR03MB423.namprd03.prod.outlook.com (10.141.78.150) with Microsoft SMTP Server (TLS) id 15.1.365.19; Thu, 21 Jan 2016 17:33:01 +0000 Received: from BL2FFO11FD023.protection.gbl (10.255.124.4) by BLUPR03CA004.outlook.office365.com (10.255.124.21) with Microsoft SMTP Server (TLS) id 15.1.390.13 via Frontend Transport; Thu, 21 Jan 2016 17:33:01 +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 BL2FFO11FD023.mail.protection.outlook.com (10.173.161.102) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Thu, 21 Jan 2016 17:33:00 +0000 Received: from na01-bl2-obe.outbound.protection.outlook.com (207.46.163.205) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 21 Jan 2016 09:31: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=WqvYlGoLRea9pDQ7lTkLZAoospMu3dHYEvbn+AMwdy8=; b=Hh1pbZ8J9+A/z9RLBoYcX1QW39XNWaWjJGaVuZ7qV2uExw56mcSbveZ4U48LgYIe62DaYSO2F2o4JCcJ659G3cx8bGTeGjCSMc+f5LLLNKoGESClSpmB2+gCVLwGpk1OPcIsF+RAysw7GmHIFIPyPvYob8crlwvjvX92b15tYlA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tthayer@opensource.altera.com; Received: from tthayer-HP-Z620-Ubuntu.altera.com (64.129.157.38) by BY1PR03MB1482.namprd03.prod.outlook.com (10.162.210.140) with Microsoft SMTP Server (TLS) id 15.1.365.19; Thu, 21 Jan 2016 17:32:41 +0000 From: To: , , , , , , , , , , Subject: [PATCHv8 3/4] ARM: socfpga: enable L2 cache ECC on startup Date: Thu, 21 Jan 2016 11:34:27 -0600 Message-ID: <1453397668-32094-3-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1453397668-32094-1-git-send-email-tthayer@opensource.altera.com> References: <1453397668-32094-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: CY1PR08CA0036.namprd08.prod.outlook.com (25.163.94.174) To BY1PR03MB1482.namprd03.prod.outlook.com (25.162.210.140) X-MS-Office365-Filtering-Correlation-Id: 2a87cd2e-bb00-4751-fb4d-08d32288e902 X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1482; 2:mzi/bh6GY4UzSM2IHj83/9ziuvduU3Sas6V04nUvYTrE96QuztNcrvL+zHpVgB2VzUIvJFRGZsh+B8XK6rnpiFyQV89LLNcEbOaQ/Ye8wnZ9HKLIYfgweOc86tuPYDhZ48vAvmYmUDfvtCA5KF3f1H/6FBIkqe/oBrFaHnu7xCTkTv4P7T06XlH17Wv6k7EW; 3:FKo094Re7Vy7AbYste2XBlEVkYeK1MnkJ0qkiib0Y/XRGdQ2/ROtrKUcoj+nTwRSyhUm+uZy/DpuhWZhZJ7Y6qqSTMUmGE7KLCNQF+CRFYEkUd6MOo76YyaPh5q9lTxW; 25:MJcx1EJADlHGtGChZe1OaXw9tOo6gqZ2wRFn46zZZnKuGmg13WGBF4dHWm/Ri8gQlLf37xrRoQKqJzdv2wSchI1GBMQ8pkZY3pzUQtzow5uJJk98TSsltIf2XtRv4CvXHzAqcaf8daUJFr0ACCyftnWrnZUvHacQAhVYZLTj5Ujp4/F0IlYpl4nfgN+92s5YaiCihm/njckbDdk+chsPDiLbwWzN6h3a2NcAR8jPJHVjtR9JWDPEOTyVe/0jfUge; 20:jS87ciPMvjspMRCMzjNXY9RDg+IYhBZa0ayJMlWqdXYsvQsUPr45oCj29gS7k2hM8tOaFWgwUgOLmKTz88pMmSBxW3EauxumbQbxqwWbHMj0qRyIHrZgq3QuyrqH+X4mc2ipWWlpfbjXd0hD7US+//atqFoaCkEpoFuwo/gncSk= X-Exchange-Antispam-Report-Test: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1482; UriScan:(80048183373757)(204874498639787); UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:BLUPR03MB423; UriScan:(80048183373757)(204874498639787); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046); SRVR:BY1PR03MB1482; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1482; BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(13018025)(13024025)(13017025)(13015025)(13023025)(8121501046)(5005006)(3002001)(10201501046); SRVR:BLUPR03MB423; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB423; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1482; 4:PxkxVMGeGEG83GwUJB4DM47tS8t6Pq9/suZ133OT47/3fpgQpxOpRvEMGJpL697xTZgbI2UbfifRuy5qBALtenrG3OjegqZQRMXag0V4Qv/9aTuAZivCsthA3fmQTVEPEn9G5g/m9XhHqdu0vgOhai74WPhlnPxfiYuFPmTv4WaCGBkweR1pCcxme+UvSZFiAJbhk33hYDuDqFOel9OqYMPyPcVjdnBs5OtSpcBCbuk3QWPb6J+QmwrlH3LQI5cv+/m+FgjbRDbchJ4Wwk7pZpwAxsJMd0OaY49xvV3MSvt4T6vTfFDVer0jIcbcbNvSiu8Tjb8NzTp6GTw5LTYSDKKv087CJMtpNmp93J/F+vJjJCFhG8stcC42aZPtT/sz9kzQG6OQ5sVQgbYWkzfnYMKeqi/3dXYhBbprlNEEPwXv46WHnqTMd5r8pRPdfT8DvH9bYZ8XVae0E7jdFHqLQA== X-Forefront-PRVS: 08286A0BE2 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(586003)(2950100001)(47776003)(92566002)(4001430100002)(1096002)(575784001)(5004730100002)(42186005)(3846002)(86362001)(4326007)(6116002)(106356001)(2906002)(15975445007)(77096005)(105586002)(189998001)(19580405001)(50226001)(5008740100001)(122386002)(229853001)(53416004)(33646002)(5001770100001)(50986999)(97736004)(86152002)(19580395003)(107886002)(87976001)(2201001)(5001960100002)(40100003)(76176999)(5003940100001)(101416001)(66066001)(50466002)(81156007)(2876002)(48376002)(69596002)(921003)(2004002)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1482; H:tthayer-HP-Z620-Ubuntu.altera.com; 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; BY1PR03MB1482; 23:C8v9lrJMEUW9EH+841vuKvdAdTqkLpnKjfWf2cAZJ?= =?us-ascii?Q?A7xnCwi2LMSI6Uv3tyaccpD3mU8XFayXI2ofhhTwkI09iTGl0rrfsbBbG6HY?= =?us-ascii?Q?zkizsalom/DAyhKoULcFT50EVg2Lc3Ivs8GBZa3IDrAah6SUW4T6CwdpSp0d?= =?us-ascii?Q?yeXG77fVxxnWlUAx18Plb4LdfcVlsEYpcpBo0QKBaMX9mHouGwMSPsqtOvmJ?= =?us-ascii?Q?emaWo1H6/teEXxvol4L3nEP3CGo0etpPUrikT/1syStcEOq6W7s+TU4ks0Wx?=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idWTrK72EyG1d+N1k1+T5WIP9RY?= =?us-ascii?Q?Lh1Z8SNryjm7S5uf/NCaw4EeO2twOja6l3ny6odiRrFtmxyOq/O2s/BIYH3P?= =?us-ascii?Q?8OB+bVuUYdki8pZBzKjlvk4ZKSRm20taK8Iccr+r6ue1B1IcdYUlAdgQNGGG?= =?us-ascii?Q?v+y8K53OaVt0CWvHDG1c/U=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1482; 5:1I53l67IhPQLX9n5BbMD4R5Vn36W3j3FED0Ua2bMkzyp9N91ONPVVjNJt+vQR/a74Vw8Q70dERWmpx4R77BXDe1bUZVzoGuRgvDVooq2qspHknC7Tc/1EvUGSB2RHtEAjtaQ4AJ0RTwLx+FHMqv85w==; 24:15N1QczGYTi/k3f/vK+ZMs2Z3WoE1ooMTTrFpkuIWcRcjxAT4OMNe2GkTuswxCqblP9y0eulgk5eUx9SZZ2wJ/+kvdMkJbHF8w+KJFBHXKc=; 20:iA+/VXF4mv30oprHl4HXtZ+s7CCCIqbcS8IwNOVWc4QyuVrKwXf/lKVUAVbLlepEWMBzbgz/z3VQrvlJzIq/S+2AALXTi8s/rG4BO3gZLuBnztBIV2JUpioBoDYIcC/NbnbwfkFCphpKGBqyudgOHQnIfxIpLnMiIktpELRKbcI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1482 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BL2FFO11FD023.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD023; 1:OASfBOpcqt4jACZsmXX0YgjnpfBU9GMJEX3yPhEAMIo1gLH21mKVI2giDRHY/Y9qWssx4tXblPjaqZFvHVVnNLsVQMvDnkjCbYVjRAD7QP7oIn683wNb5S8kFGfpL5YvMsGRMifIGRhOLIsqMm+63gqcORb88JeUiPWPwNY+DPCtlHlue2MNssBH7U3hAZOJ5Gavz+wShL7r8VgGfU0jmpUs2Vt6Mj7yG4Kd3nLJEz3lzWG47LbWAba1BL98yg1E1KFLvyg8r3lM/Anefp3NA1i6433zjix57fLWxzcLpY70N/rdi3L3GhCuun/UyOqcQc06Cm9Xf248jMOBfNTRcxAJeVO0NvhbtzFCOk1+wZgGjJb4dY/vwZ1eUaF8XzKiigq1ezbcojrP1sPXuKvii3F9it/CdxZUbvg4xuYAceS0I2g863OX/DBLNVOo/7CPFzsNmJN6UtY7Wwy0npbB2g== X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(97736004)(92566002)(21840400001)(107886002)(1220700001)(1096002)(6070500001)(40100003)(2876002)(122386002)(189998001)(6806005)(81156007)(50226001)(77096005)(86152002)(575784001)(5001770100001)(33646002)(50986999)(66066001)(2201001)(86362001)(2906002)(53416004)(5001960100002)(11100500001)(15975445007)(105606002)(956001)(6116002)(586003)(19580395003)(48376002)(85426001)(5004730100002)(106466001)(5008740100001)(87936001)(47776003)(50466002)(3846002)(76176999)(16796002)(229853001)(5003940100001)(2950100001)(19580405001)(4001430100002)(4326007)(7099028)(2004002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB423; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB423; 2:xfPYwOipu3J3Plu5m1qL1RTKDoQmR+1t04s+BRhVi0RpyeZSghWf+n8vFBidOYGPsdC3+gxrPr85LnHR45eqL/Y0BLVrf4SrZKUGdG/wLRsGkU0HsnIO1hsu+9ktIvToeASm3hk9ZuVh9jVnXDrAZ/1jZ8xebgMyDBeMjKqV40GEbCG4QXgxPvCZKZZrpvQ2; 3:TUPjZM3ihMHZF4ZyCURrb0pYl0dOa5duPz/igG2brKWfv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W5WOQ49CvBo+zumTwvvJ0gNKeoNFUNmXFGqRC2eOGkOMkcatm1M2vbF6KGJBsOgtb2+FCcEZhDhua3fHEf/pipDt9ga1RNH7KWKQkPu1rKOjD7So0WN02oomq2pkPu5X51NCY/Rpv/n4wtgHA//sMY7lryP0eDmb8c01q8f49KvgKnwSCUVy2Hm01c4Me8M X-Forefront-PRVS: 08286A0BE2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB423; 23:GViQiB5k4fF1KF5GCg42yDC1S+PahrsuLrRUG8qiEu?= =?us-ascii?Q?HN0ZWurJ6Yt7HpwYseXXWL+4nxKRgPdO4FmCVNUrWFj8bzK4szJmbXpAMSpz?= =?us-ascii?Q?HxMV/HGbDtbJDnAY2zR/OgWhg0OyneBoZgHrHQzr82oxMbNBZqCscZ35yQfv?= =?us-ascii?Q?t6sZFme6bRATXhklV/elA4kZsnUrIEBScTNLjl3uRKZTpBkatBW06EfLShX8?= =?us-ascii?Q?7qVk02jDHjvoAAb66XcnuUsFZPI6on54GTwLvWIZgUtYIBVr/vQ/4KRnxlfN?= =?us-ascii?Q?aYPwAE5Se9IGQrUF2eRHJmKaMKAzyIJ3Hp/U0bka2GMdmP/2uSSgWMTvaNf1?= =?us-ascii?Q?N9u3fp/ShMVTJICeWXCeZiR8TmQG4uDsdZ1IsD33Y6HkfIhNh8X01f6vyOkM?= =?us-ascii?Q?Vyk0mJJQCy3zCG71TGQ+BLXrItAapR6cVja8m658hv9oV9cV7PpL/BFVg/yT?= =?us-ascii?Q?FOsCz/pbHAS8Biipc9NzvUzIwnp50c/QQEQ24ziia0fCkx+sA1JiAF1pa0pU?= =?us-ascii?Q?lXCcG2UVzPSTRFVdYgw4rUQVVj6wcDOyodVX9kVemKXwRtBfmjb52wFGw9gG?= =?us-ascii?Q?Feec06HM8rRcIBdeJRW7XpIxBIxGAnUh7WFTVQR7KRUKkD7t6gX29hJUdrr6?= =?us-ascii?Q?L74EXOJwM7qnbBAq0ceTdKrlPzWCGyvkGxsBKEjOwFCwIGc1iOAx/qKcZBem?= =?us-ascii?Q?d4Mj2ql5MRyfFwNms14KBlZy4H2DIZB1n0u1WHFYijF2JtnX3tCZipIwxONV?= =?us-ascii?Q?GduJUg4P0FMZByMIrIslXEZz3jaxKC7f0Qqkh923QPCL7sYurP3WZvrcEG0G?= =?us-ascii?Q?GA8qwbxQFJ2+Joo0pb2xyMD1oPeFdMq9FI6CenrfzgiPLe12HQcnDbQP1GBp?= =?us-ascii?Q?j8Oryu9w5Mx4tPVVWDFRE69U0jJgo4MXZ5HrGnn3HuNG9WPudmUN7QXRDyzD?= =?us-ascii?Q?BK6rXnd3rosOcC3O+TIDnzK20tpV2wvBqXNVAwGnfTGaQgrEZALY4lSFnhU9?= =?us-ascii?Q?GyC1rO9nIffIX8Dfgq//WiM3hP5xPlugX78bJCfoEPYzLi6itypn1jsRQs4D?= =?us-ascii?Q?tFHo0snHLcyeh8+BTogzSPRTaIDYYvr+CxE5KMN8+7EO9ym9f635jPZRZv2m?= =?us-ascii?Q?gIs2xuANCTQaCJcsFK0v/ZrT35j4CgZz40Vdto6Ehijay7GkMr0To0hGfyuC?= =?us-ascii?Q?5mZPzSYj3u7RNMNF0n5q1l/md9QljqSaFMte6mqHxBDXM1Sr4nsfJl+RoA/g?= =?us-ascii?Q?522Ge1LQtr0WnSFEcHvvwhI8CHNTnjP+PU7AANKyF839hLO6kasN4R30EKGZ?= =?us-ascii?Q?4qRyIfYE9BcJ5h3mLIO2kaKYp4p7z7XjCeCC4iO9kdoFqiMyfHscKra8czyw?= =?us-ascii?Q?Jp9U8YtMg7g8XRcKC4FwQMg+osOR3HaFosdjhn4GktiOYsPla86+42xRtgii?= =?us-ascii?Q?VSTujhiUe1niqiVV/s8xQRwadO/lo9uByebZNPY5ljXn3BQTCxPRx6gAmihS?= =?us-ascii?Q?R2p+nRrR4CQ+bARHF7O8nPebSDvktCILqd9xjg0L+DOXLfmmmeK6Bk?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB423; 5:EqN4tCNRw/l/r+3wxerWKE2a76DvbOo1JInHMNReK9Sf1pBY/VoJqWhZ+lWBBN+obe1Ix9maRUQrE8GCvIlUlZ/FKnr3v8OENg5/zDO+KQVOeHnK6sHWRGc/OFwEDTBtj+IYTlukT+8qNpqiQSwZYQ==; 24:KrWhTq9WJKsCx4SgVQ3lb6eqdeziJYp5maDYS8BP83PlGPG4Lbjt1Vmb194c6A/C/y3b7PgT15k9pvoGZtutmPW+chDxG6xL3FDH+5s0LNM=; 20:wpqs4/lUCzcBlxW/X4iosNv1MXO8ETdRfIOzvINmHsOINmnd0nNtlRCFJ+r8TM3okRbO+V7/OcKjUQujlwe5613O6FXR6XBYNR/D6OJhRWvnyC0jtHsHFOIMcuE3ZMaw1PZBiZak8Qz1bJFrFNje6egd8Lxi9+4YKHIiGKRpiPI= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2016 17:33:00.5031 (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: BLUPR03MB423 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160121_093315_543131_CC11C198 X-CRM114-Status: UNSURE ( 5.35 ) 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=ham 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: Dinh Nguyen This patch enables the ECC for L2 cache 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 Signed-off-by: Dinh Nguyen --- v8: Address community suggestions for strings. Fix string based on maintainer feedback. Update year in header. v7: unmap locally scoped mapped_l2_edac_addr and add of_node_put(np) v6: Remove pr_debug() & update year in header. --- arch/arm/mach-socfpga/Makefile | 1 + arch/arm/mach-socfpga/core.h | 1 + arch/arm/mach-socfpga/l2_cache.c | 43 ++++++++++++++++++++++++++++++++++++++ arch/arm/mach-socfpga/socfpga.c | 2 ++ 4 files changed, 47 insertions(+) create mode 100644 arch/arm/mach-socfpga/l2_cache.c diff --git a/arch/arm/mach-socfpga/Makefile b/arch/arm/mach-socfpga/Makefile index b8f9e23..e9ab7c9 100644 --- a/arch/arm/mach-socfpga/Makefile +++ b/arch/arm/mach-socfpga/Makefile @@ -5,3 +5,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 diff --git a/arch/arm/mach-socfpga/core.h b/arch/arm/mach-socfpga/core.h index 5bc6ea8..eb55d66 100644 --- a/arch/arm/mach-socfpga/core.h +++ b/arch/arm/mach-socfpga/core.h @@ -36,6 +36,7 @@ extern void socfpga_init_clocks(void); extern void socfpga_sysmgr_init(void); +void socfpga_init_l2_ecc(void); extern void __iomem *sys_manager_base_addr; extern void __iomem *rst_manager_base_addr; diff --git a/arch/arm/mach-socfpga/l2_cache.c b/arch/arm/mach-socfpga/l2_cache.c new file mode 100644 index 0000000..d390602 --- /dev/null +++ b/arch/arm/mach-socfpga/l2_cache.c @@ -0,0 +1,43 @@ +/* + * 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 + +void socfpga_init_l2_ecc(void) +{ + struct device_node *np; + void __iomem *mapped_l2_edac_addr; + + np = of_find_compatible_node(NULL, NULL, "altr,socfpga-l2-ecc"); + if (!np) { + pr_err("Unable to find socfpga-l2-ecc in dtb\n"); + return; + } + + mapped_l2_edac_addr = of_iomap(np, 0); + if (!mapped_l2_edac_addr) { + of_node_put(np); + pr_err("Unable to find L2 ECC mapping in dtb\n"); + return; + } + + /* Enable ECC */ + writel(0x01, mapped_l2_edac_addr); + iounmap(mapped_l2_edac_addr); + + of_node_put(np); +} diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index a1c0efa..dd1ff07 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -59,6 +59,8 @@ static void __init socfpga_init_irq(void) { irqchip_init(); socfpga_sysmgr_init(); + if (IS_ENABLED(CONFIG_EDAC_ALTERA_L2C)) + socfpga_init_l2_ecc(); } static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)