From patchwork Wed Feb 10 19:26: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: 8274171 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 05247BEEE5 for ; Wed, 10 Feb 2016 19:24:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06654203A4 for ; Wed, 10 Feb 2016 19:24:43 +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 080612039E for ; Wed, 10 Feb 2016 19:24:42 +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 1aTaMA-00043O-25; Wed, 10 Feb 2016 19:23:18 +0000 Received: from mail-bl2on0054.outbound.protection.outlook.com ([65.55.169.54] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aTaLt-0003u8-3V for linux-arm-kernel@lists.infradead.org; Wed, 10 Feb 2016 19:23:04 +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=0Oh84+pTj5UMcWVBZbvOYewCgzK5Vc3bPiZfOMluqYw=; b=mszqy8ph6872r4bUcDO7YEjty79oQrUokr+zJRbLemMsFJjVVJC2VWSNlNeF/DFxIb/Cx7Ux9u6DQxIp98KPMCp2Pim54fRHyZi0pyctFSXasi5FRz6/3R+doq7k3bjddeRIb5CaFFk25GgFOUguVmsNnBeaqnWOfm/qCnoFvg8= Received: from DM2PR03CA0005.namprd03.prod.outlook.com (10.141.96.15) by SN2PR03MB047.namprd03.prod.outlook.com (10.255.175.147) with Microsoft SMTP Server (TLS) id 15.1.390.13; Wed, 10 Feb 2016 19:22:39 +0000 Received: from BN1BFFO11FD018.protection.gbl (2a01:111:f400:7c10::1:175) by DM2PR03CA0005.outlook.office365.com (2a01:111:e400:2428::15) with Microsoft SMTP Server (TLS) id 15.1.409.15 via Frontend Transport; Wed, 10 Feb 2016 19:22:38 +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 BN1BFFO11FD018.mail.protection.outlook.com (10.58.144.81) with Microsoft SMTP Server (TLS) id 15.1.409.7 via Frontend Transport; Wed, 10 Feb 2016 19:22:38 +0000 Received: from na01-bn1-obe.outbound.protection.outlook.com (207.46.163.140) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 10 Feb 2016 11:21:43 -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=0Oh84+pTj5UMcWVBZbvOYewCgzK5Vc3bPiZfOMluqYw=; b=mszqy8ph6872r4bUcDO7YEjty79oQrUokr+zJRbLemMsFJjVVJC2VWSNlNeF/DFxIb/Cx7Ux9u6DQxIp98KPMCp2Pim54fRHyZi0pyctFSXasi5FRz6/3R+doq7k3bjddeRIb5CaFFk25GgFOUguVmsNnBeaqnWOfm/qCnoFvg8= 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 localhost.localdomain (64.129.157.38) by CY1PR03MB1485.namprd03.prod.outlook.com (10.163.17.158) with Microsoft SMTP Server (TLS) id 15.1.403.16; Wed, 10 Feb 2016 19:22:31 +0000 From: To: , , , , , , , , , , Subject: [PATCHv10 3/4] ARM: socfpga: enable L2 cache ECC on startup Date: Wed, 10 Feb 2016 13:26:23 -0600 Message-ID: <1455132384-17108-3-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1455132384-17108-1-git-send-email-tthayer@opensource.altera.com> References: <1455132384-17108-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: CY1PR14CA0031.namprd14.prod.outlook.com (25.163.13.169) To CY1PR03MB1485.namprd03.prod.outlook.com (25.163.17.158) X-MS-Office365-Filtering-Correlation-Id: 2a2793dc-545e-4f82-c9f1-08d3324f89e3 X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1485; 2:k1gYY8Z/TTzFeYFV5fO/6w5NKlkBvZS/jkNkzJTm2sviHSKFEI8QyXo4kBvDkequ9MvMB2iUWsDVXLKvJVMN4eDnHljwyoWmjHzx3sVMPvAttelFOnkITk/iswOUNG4/VdX24IlsHulyuY7O8jKZpRSPxm88nO52upqmvNY/HBuk/t/R36gvgo6HhS3Vt60u; 3:62F0cyDFKjA2oHF50Lqu3KKu6W7TUW0ijYWJggQYX5O21h7+Crbn+/6GITbmEVDpjvtBnYrUELMzF5J5+IlCf2Pzfu0Ta1ylECnvPEpN8e+mp83YflXjZ7xcs5lbZQ8b; 25:KTZHafWHlLuoTHvSLSTajLwQLsiQBZD8uy+RwKUqwLPCnckJh+3yiiykS/CCAdbU7GjHWnLlj/e0S/u/I85NWT23jHaj257RpAWyaiTyJJJeDwFK9cadh0/9iXWSI3lF33uxJ/sPZI1eshBfGvDMpjHZflrvFx1WWpV6L0vRV35+YoJG/qX+FODOU6toWyjdowGIzS6mC2zaVq5dxp+D8yO8ldoM/q6oPSQYJQtN3x/UQNCusqIcniBaWFFojJOXzzR5V7xeWn9evj+OdnYnRKsqUQx9Yo3WcwIEJ6CNRG+Xu31GgB3oQ4xQ/O6H6WWC; 20:URuv+y/YajdOaS37jQvjcdNEy6oxreCG/DAPkdb/cJxffJLGJ638k7jFrGFk77u/YJKwlWyyFTF9wUOAMXtZw2PpfiKdsnMfbVcDYlQzGyBTnjuxfaxKv74CFP7BnwE7anzukQ+HfSA/h4KthfJQgcE3prmzQNh5axXHgF+s+4g= X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1485; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(80048183373757); UriScan:(80048183373757); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:CY1PR03MB1485; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1485; BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13018025)(8121501046)(13024025)(13017025)(5005006)(13015025)(3002001)(10201501046); SRVR:SN2PR03MB047; BCL:0; PCL:0; RULEID:; SRVR:SN2PR03MB047; X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1485; 4:EgRQrZQ+LmaZRGewA+8nZlPEkL/8n321WE6++JcQY+EyPI/0cQBH0O+yXwzXu0EyFQKErfu36209ssHC7dg9slADGA2nF+B3cLvihL9fvD0QSRrvy8T3qgcU2jHWF7a+r/RngRpIzQd/ek9ycvhdMQOgA9S/JDvxexogcWYhwRcAJCA6dQ3kGGeYO+YkDt3FPuV6Sb1CcTr843+9UJVjrlYgvpSncKyytI0iOKsq3l0Ze2LWaPuZaCvyuYdAVjs83/5FFBskfq2Aupjmn1FI7wVH0derRhXr5DZ2ZusfMTrhsaqaaaVfadnXp8INCQb57qdxsZwfGIk1NJxmfEWZyAj6QPYqSFiVQUOpqoJRP91NPIR5m3UCynlovk+UtwaB7oLjchJvcFySkJ+nyoYhy4nvauQ/KIO7c15qtkpvcv0= X-Forefront-PRVS: 0848C1A6AA X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(15975445007)(33646002)(92566002)(50226001)(66066001)(1096002)(189998001)(77096005)(2950100001)(87976001)(4326007)(2906002)(40100003)(5001960100002)(42186005)(5008740100001)(2876002)(107886002)(3846002)(5004730100002)(5003940100001)(229853001)(4001430100002)(48376002)(50466002)(50986999)(586003)(19580405001)(19580395003)(122386002)(47776003)(5001770100001)(575784001)(6116002)(86152002)(2201001)(76176999)(86362001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB1485; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1; CY1PR03MB1485; 23:3CEFBwoJbRT9R+6l9AbZsxFxg3be1I8NqqiSDbNeC?= =?us-ascii?Q?lZNT9uegMrslqgXjJuf4AboDtO7lzSo7pBGN3iKhTXQQmgdXMvxDUjivwX3q?= =?us-ascii?Q?7srxtmebPYw7GN8ANlKzaUl5Z/y7B5n8X2Bzapib2gRVl1HlTh6ujirzetIq?= =?us-ascii?Q?wtvqRVS9RJ+4vyc/lEf3/2zJVkxI8S9wdzPFZ9qKAy/C1pXPAcgfn6VL5xcQ?= =?us-ascii?Q?ntN7vDXSYKJbcFS+f17L9ouhUlnvi0KDrsfG4LxqGeNHWzPJL3ydG9uMF5V1?= =?us-ascii?Q?rleu8hqgCuqocG7VU934XEnn2PupJprJEhKkxKfn/gI/CeBwzupgVjw+yxuZ?= =?us-ascii?Q?PP5w8E/N/MROe2400KHtOwAXK5wcWs+2J9p0u+3pjLjQvW+bvpLFrj5qUksl?= =?us-ascii?Q?qf8eeBWKpnSmbyBL08tuc/J5IOv6zqUvr6SQZSLI29gUkY+8yqnekGWdYx8X?= =?us-ascii?Q?HapMCpM6d2Cv/sftXQVLkjJqlcZfZD0XHTQHL8pM+RrNIgV69+uJ/KZM+hV4?= =?us-ascii?Q?bN8XyGDoU/YqV8xxETENhTKNs2lyoQy06G1a/KGhp+QddhkufqIYA63Siwmu?= =?us-ascii?Q?sNJRvFp+Rav8JVwecQVlT76UDkOuAkmseftITYKfGYc1zFI8qsY4YTzNrCC8?= =?us-ascii?Q?sQyGnKpk6Eunab9ZvwvQ1a49WYmV3QOi291NEsOVYheAAlDUJX59ORHtiEL9?= =?us-ascii?Q?wudi4R+jzAMP+uqsbhMTg7NICghG1f28xxycMjytW7sABDhppMs+hLdtYwQr?= =?us-ascii?Q?e0Q2+jFmqsvjkSEeqPtrglMNkdbe31U4Dpjmv+dHfzQuzfjz5oBciiCIevyp?= =?us-ascii?Q?okIj9j7AT14OPVkES1+n2ehi09bFIkwDPSzgvI/O8iVerCCMgEpsp/k0Td/4?= =?us-ascii?Q?MOQwmlCDzXn39DUFA5ezVUetfZupFELAq/GjiDQLeoeuY90MxqZ0tvFbQoVo?= =?us-ascii?Q?gc+RAwwvj493F9SUeamsLWXunhzjM+0Yk2+FPJeGhqcEqa+wdmtjq2z5OnjY?= =?us-ascii?Q?4K7eYySKVzUbHCnaXVQVHCl+sgEIENN9SMT+/SZoDe56ikQ/m2MQfJGgaLWm?= =?us-ascii?Q?cYolboFDgjMjv7RmmYusCYmq9W5CvSahkTQqlo73WB+zhrIo+PeWrDz5vIf5?= =?us-ascii?Q?GMNRPwAyac=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1485; 5:WCsiKT6pbqgxNQkelqtozBk5D43mK41dAnYjGxssyzX9keXC/fjMdsgmn2SQX9vwIgnuzp3UopPn6cud52KOWDfoKExMWszkPuQ5ORul+csvEzo4l/e7VdFTlmo0u06teeoL36Y4E9OlGuhYrLt8WA==; 24:FA0u5JfGYXw/xkOr65SkV/3AqV1mg1vM+dJ9JfC0z5z6N2Qw3ujoPxb/jDogMwoOrnOFe2lr0E9cwH7FW2U1fvAZiSGZEddSmirtVXYD/Zg=; 20:Hj2PJ7+WRUFmUznbViPg4mqQi5e/Fbj7mt4N+pwur8TFhRTehBNePQH3lpWOvBH7CgCxz7e19QyhGAoaWaxPJz7mi81tim0IBvgQXs74bJTHKYG8De9w8EEGRqCpJjf8zg+GEMWaYifyJuhXF8dLeM2QDfLaunTO7FgbpPfxKnQ= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1485 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD018.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD018; 1:dZCZjIH6R0IFrHtKbeaq0pvoTgngT/UCzTvPPK0PQn8IqDcdBqM5wt7Ss4t0K6GpJynoO/QdHTwkQ3be/sOyhL2AR/MfB8JdLZBAzWA0+poOOKUUNuxkhCWDxAsqb6kaOT5s4rpcUcQH4KAnxGsdkWkBmdtMWg04jozV+TLLuE39xxQOMYcfdKLk64wlHff3kAy+uy0luWqItYE0Qx+sKsavADio3cJejw2+DuzSOho+UmZJqi5mMBN+R8mdEtYhj/f0Sb/csXqhR4PBMPIldtchNpvu+GCFB94426jc/EjXOxDH0IU+QWrPhW6QYsbCAYHxhR59xqENb3SYSeA4fejPIIkcMZ+rMgco3nv1S5L2aqKqWXcz32W1EeZVJsKDhea8OtuKHh1AjcXGJic1hmkWFwa8L7M9As4pv9MBdX2DvDYK5ZrVxjEAQJ+POvgnno+EKTn40rHQvsJZSxQMGw== X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(77096005)(1096002)(48376002)(5001960100002)(50226001)(92566002)(19580395003)(107886002)(105606002)(50466002)(19580405001)(122386002)(956001)(66066001)(5008740100001)(2876002)(40100003)(49486002)(47776003)(85426001)(5004730100002)(575784001)(229853001)(86152002)(106466001)(86362001)(2201001)(33646002)(11100500001)(3846002)(2906002)(6806005)(2950100001)(21840400001)(4326007)(6116002)(4001430100002)(15975445007)(1220700001)(586003)(87936001)(189998001)(76176999)(50986999)(5003940100001)(5001770100001)(3720700001)(16796002)(7099028)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB047; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB047; 2:q+KxjvonYjbjZM3TgunqdWF3UWQ5R3MaMsPiIwRzSGut44xa8OroUXBZtoYC4Wp/cj62HZ0q5su7CQWP0KV9xJevqFMCiW7r19f8QhFwGK1tO5pquU44nkh9yTgRCcZFjg4PNfMklQyKeNiSmzOOcy9BrAHwT/JTjT41yZC0l5rhTHaIF5TU9fdxiLVCEZVr; 3:g7GoGcdpMEyQm9RVRcrsTrdCcdNM7NL+MwUYh7KVr215XUbb/kislBa423nxWsWM/xSL0vGW7tiMvF/2r0Vl9bz9cr8WLWyfjF12OeKoZiwEwJSqu2STKNYBTNEmf5lUmTGeivUOFLLcwTIevucWZtATQ1XbwYQYMuBWnbiLHC0+ycBZasHD7e88VEoUmsO8PHqS3g0ZH604xHCXfyG3DLoTaG2wTvdZGGI+krBdK4bISHE4vTdH/4/T1eV04JDI; 25:9omMAkX5NfsD5hN4NWrUfBOyeJPRqpNV9jruFUk8ftS9ce/3FiQjJVvM+Y0orvyzOfyrjvh/VJOH6BsGpRMk5w47K9Zr3j3jOSpdIP7dtssD9fXz/J4vFPQU3c9y8cxzCZR8hVRNJLkT+UH4kxt35YconqRrSAWRewnEDG1hhkfmdbTfmn+p6Fn1/tcfRtj1qQ7RJQQrVRUcmOMj934aQNpQebOnbuyhe/rjM75XsXFHymSazgaw0BIfDbRW/W9WMYJqoKtZmiOk9RPFBz8a8Tgn/YLmBXqk/yO05my2bhFh9jVhveRp779eQp7AdmZT; 20:wQMXzMlf5pPS7RxGzpbeI+e34j1bh4ZfH40jI+8QYJY7P1i4VzK5V7IoX9UysFym6pb2HeaS79HBh6WrFgMLU7q3bDtkVSCBuSog1XBGYUBgvjYSl5jlMqcGJPfrrToBaR5fltRH8guG8C9oGJkY4Xwjj/7ORGISQ63H9ZiWtR8= X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:SN2PR03MB047; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB047; 4:fZnPWwUm75Jv8fp4JHdPyr1Q6jEVDPa0mDjVBNennY2BlQUbcIjxLfBW0+XaAx+/Yr5frAP4gPT3cgiEi9RG/aBQfHF6I7NYQTRThdElf/4+RFFKiznSqhK7TLtlRlFBvtpC/1gBLCodP+rKEvGfwhUXcIcxyz6qlVP+tFnZiHkp+8PzxfW4sCxAKAKCcN8HSIJofdON+Excgwh2/5px5lRE9WxFoPH7cTLnAqnoQaN0VhB09gD3xZZZCOONw0AvsP4mrb/Y06eVgJb1rIqoyRcKgjHy+1EIXL4H1wQeYSddFGw/QXeKXucBv43eI4qXQpEshkHlGdcI8F83xw4ishbwtTI93a3iI0fsoqiQHlSxObOQbp0RchTFC1saO45DKBshRxZC4/3J6bte213C0cqC9cUKj3Ru5EVLtd0JAIYHRNYRknpFLSjspPTc3LwpmEtngTA1W1keCUGSnBnC9BBSEn+3Fn9T4SxaH7HUfgAfxTI5ZZQ5A9XOvbh0JXU7 X-Forefront-PRVS: 0848C1A6AA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB047; 23:Ze2swRggF4v5i0Z8wOonw8fzKTJ4wVm6P0ox1RoiBv?= =?us-ascii?Q?9gx5ryOpQ342g3fFz1wpuLOgyK/YpIl+6lfPuKo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GG5gltIbsS8V2/n+puS7C7YNY9GETZRHPOk4IGE= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2016 19:22:38.2996 (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: SN2PR03MB047 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160210_112301_621357_06B78C82 X-CRM114-Status: UNSURE ( 7.39 ) 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.3 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 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 Acked-by: Dinh Nguyen --- v10: No change v9: Improve node put handling. 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 | 41 ++++++++++++++++++++++++++++++++++++++ arch/arm/mach-socfpga/socfpga.c | 2 ++ 4 files changed, 45 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..e3907ab --- /dev/null +++ b/arch/arm/mach-socfpga/l2_cache.c @@ -0,0 +1,41 @@ +/* + * 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); + of_node_put(np); + if (!mapped_l2_edac_addr) { + 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); +} 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)