From patchwork Mon Mar 21 16:01:45 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: 8634031 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 751519F294 for ; Mon, 21 Mar 2016 16:03:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D770C202AE for ; Mon, 21 Mar 2016 16:03:30 +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 5DC0B20328 for ; Mon, 21 Mar 2016 16:03:27 +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 1ai2Gl-0007hp-5z; Mon, 21 Mar 2016 16:01:27 +0000 Received: from mail-bl2on0070.outbound.protection.outlook.com ([65.55.169.70] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ai2EK-0004Jj-Kb for linux-arm-kernel@lists.infradead.org; Mon, 21 Mar 2016 15:59:05 +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=w67MS8NHkrfooqi4R5rKtZC4Jw7guvnoXa7WDSGQNhY=; b=ME4esA2c5S/K2uJc3Ec5bH+Q/ao3uFxOr9ibNQ1KRA02nwKve/BwWdOr6E1+U9753aPdK/nUUt8oS650UeKXq9i+c/M/eNFtOWPJa/LdZz068/2H+gbrsweC735rYL0/affc+WUoih9HsXK83bPD1JeaIv+CdQdTWUw40MUmCtA= Received: from BLUPR0301CA0023.namprd03.prod.outlook.com (10.162.113.161) by CY1PR03MB1503.namprd03.prod.outlook.com (10.163.17.21) with Microsoft SMTP Server (TLS) id 15.1.434.16; Mon, 21 Mar 2016 15:58:33 +0000 Received: from BN1AFFO11FD011.protection.gbl (2a01:111:f400:7c10::181) by BLUPR0301CA0023.outlook.office365.com (2a01:111:e400:5259::33) with Microsoft SMTP Server (TLS) id 15.1.443.12 via Frontend Transport; Mon, 21 Mar 2016 15:58: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 BN1AFFO11FD011.mail.protection.outlook.com (10.58.52.71) with Microsoft SMTP Server (TLS) id 15.1.443.6 via Frontend Transport; Mon, 21 Mar 2016 15:58:32 +0000 Received: from na01-bl2-obe.outbound.protection.outlook.com (207.46.163.206) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 21 Mar 2016 08:57:28 -0700 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=w67MS8NHkrfooqi4R5rKtZC4Jw7guvnoXa7WDSGQNhY=; b=ME4esA2c5S/K2uJc3Ec5bH+Q/ao3uFxOr9ibNQ1KRA02nwKve/BwWdOr6E1+U9753aPdK/nUUt8oS650UeKXq9i+c/M/eNFtOWPJa/LdZz068/2H+gbrsweC735rYL0/affc+WUoih9HsXK83bPD1JeaIv+CdQdTWUw40MUmCtA= 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 BY1PR03MB1481.namprd03.prod.outlook.com (10.162.210.14) with Microsoft SMTP Server (TLS) id 15.1.434.16; Mon, 21 Mar 2016 15:58:27 +0000 From: To: , , , , , , , , , , Subject: [PATCHv3 8/9] ARM: socfpga: Enable Arria10 L2 cache ECC on startup Date: Mon, 21 Mar 2016 11:01:45 -0500 Message-ID: <1458576106-24505-9-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1458576106-24505-1-git-send-email-tthayer@opensource.altera.com> References: <1458576106-24505-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: CY1PR0601CA0028.namprd06.prod.outlook.com (25.160.162.38) To BY1PR03MB1481.namprd03.prod.outlook.com (25.162.210.14) X-MS-Office365-Filtering-Correlation-Id: 8de96184-331d-41a0-e6c9-08d351a1a722 X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1481; 2:dpMMX36gg59fEXzl2hnbV/imax6gGtChjQVTSjagEWmUX1vj8cEPN3gTwu5OoA87dDyNfLguApJaBRDzYJbWCfKYouWvXKJjrn5ijfw3hMVBzyv4w32cb6SKf5CL8Joih7rJOCmp/MxnmEWgsx85weaSZaZneUYZuILn1kWdPrAocJv41L91EUhFutv6ckg8; 3:/dA9zluNGKdDs7jA4Qt6BA7YWJ+kMdRIQPU0Ndg0+H/2URp61MyzUrteYtRODGB2wrE3HTgwLFbKVBqtOn/o5ak09znLiFbVjuPIQWVaYm4YqfGilf/NJs6hMQrB9qcs; 25:54Lni1eIgzoabNflS/v3GES5ShK7B6pKOAwh9M+45iYdkmK7/WZ4/FBzChtdymnVAP58kii253zd/f15aotUFY4MoBF7x4w/kN1/q8TpLeOB6Da+pUpe8oLYM+N83AqGw+rCMYIjbuL1UbETabuWBNvUA2ZFLu1lI5STJvdYtZOYvDhNV87Johfx56NHMTSxxnZuibzq9jHfr0k0knYPLS+mXakgmK67yM0HvcsSvoXTvxraEk4sDXKcGMIA77UcKH/GIQQTVSiGjuvSqwlQAbGnb5K0J6ecJEfEnab/JomjNKg9UgyWQruCS4wTR6x82QGq7FU0VTmA7HyTtGBaFBJBoGjEIiyMdrU6wsrNnsEfKlyiiWHqjCDkCxxSCirVrZJjk/UBT+MT9JwKS8qcgHe4CW2qM2eiTEKAURiQtGszeqCeJUrZAt6zUHji2ciXDPwD7nVUMpYaA3na50P6CHRGikCbtU0t9S2Y+nQTJcM4Z2gH4aafI6SUl3vkxPxj0S43xxkDmZedS8Qa3u/N7g== X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1481; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1481; 20:FFkniKJt9MQOgKYqJWllMlUE049dW41YHHLNJMAc522pxp5XKzTCzRsOp4JmDDRCVZENEEufGI1OskjQfLP57DUUvoMckKJAcje0jbS/lx1RWGDiocqwTm43rS7prS+IvU6Lu4B7EtgZkMWE/ps/pxO6Haz+dCQONqpWOPr2hZ8=; 4:OkEs1dGJKBUGA3mA4Lj98J2/FkHFpWZcawvRHrahGtajeA23hNHJq3dzLtlzhSF4hCA50C9u4smSLwxrqZ+CL+oHGuoe+yvntWk42zm+exeCSEUGD4PbieeU8Drsbwcw0oIgEefivSZanez53nRZpurcrpX0OANylsHO1rOAoYQgAmZ3DQaJNgJ53YfJG0SIvtvwzJUz7oVJVVvaqj70jNyrYpFGvsuf+uP5eMHL5QCSO5jmh0SrN8LOFW5ej3+e1aMeS1oGMZrK+nLahYiQlkizUziADaTHcnTxk655uyGaUL37yIKGsSKZuRIDG/Ra21W1Tkd7aJRpwFEDxW++vZZR8fOPeRXz+cYO3BYn9j87TaHf68BAwvRO1ozobO0q 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)(3002001)(10201501046); SRVR:BY1PR03MB1481; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1481; BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(8121501046)(13015025)(13024025)(5005006)(13018025)(13017025)(10201501046)(3002001); SRVR:CY1PR03MB1503; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1503; X-Forefront-PRVS: 0888B1D284 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(47776003)(575784001)(66066001)(86362001)(50466002)(2201001)(86152002)(81166005)(92566002)(50986999)(76176999)(42186005)(5001770100001)(19580395003)(19580405001)(189998001)(5004730100002)(107886002)(229853001)(5003940100001)(50226001)(1096002)(3846002)(586003)(2950100001)(4326007)(2906002)(6116002)(4001430100002)(77096005)(5008740100001)(2876002)(33646002)(48376002)(921003)(4720700001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1481; 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; BY1PR03MB1481; 23:KEtX+BEvRALDNk3CJUgtjh/AH8Up2mo1V6dstUfba?= =?us-ascii?Q?UkmU2rncb2WdsF9gScmjdd/VrVXUuw6dzsAyDHkGG9rOqpf4HWvRKiwB347i?= =?us-ascii?Q?jwqJREYsAAf9MPie1xABGePGOpaC/9PlA4Hz3CqYcb7mbMqKlLZPMlZMiTG4?= =?us-ascii?Q?x8WC2H7SHXx6E9+dcOtgCdsiMe4Yy/m/Nj/7RaYd3JgJ5FPbYT2I3G6y1Kuv?= =?us-ascii?Q?Yn6cZWSVlaMwlh4/AuGhv1eLYJ5aK+q7D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pih0Vp3OdlM8rjMiDaB5D0jQGad8Fhpub2sXMYoE4bdc/ZEzt8zae9MPfwPbUBQ8ANAoEg31Lm+YSadf408NnBkPglv2u7+h5WdL470hY+QGue6UN2g1FyD4lOzOYd931mld/obQwfno6e7TgSQBg==; 24:nN+4v5m9JdQbpRghLdd6R4wr410ONcnQ20UrZxDgbQOVuD84Iv3kVvxrkWIceHjqA+GIqFH8XSZXUwm4JbfBCujArnDQkr8Y+mW4LlvSY/A=; 20:8WmGxgjiilaE+e0f0iOK0P9Nb+2ZE1sB6E2jAEiAqIGaHZ1c+6DpsKU9DT4K+a9hcI+lStBvMOW6hBKcHVurqgcIs2Rzb3pksrmryvO8xuuSXEm0hXrboj7OwqLstBuov7NSxQC5IBr/UvAdpCpaLoeFSNxuDZuwAFp3+ZTNTg4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1481 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11FD011.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.227; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(5008740100001)(6806005)(4326007)(48376002)(11100500001)(4001430100002)(189998001)(575784001)(86362001)(2876002)(107886002)(5001770100001)(956001)(2950100001)(77096005)(106466001)(105606002)(229853001)(5003940100001)(86152002)(92566002)(76176999)(50986999)(33646002)(19580405001)(50226001)(3720700001)(16796002)(21840400001)(50466002)(6116002)(19580395003)(47776003)(2201001)(81166005)(3846002)(2906002)(1096002)(1220700001)(66066001)(5004730100002)(586003)(85426001)(87936001)(7099028)(921003)(1121003)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB1503; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; MLV:sfv; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD011; 1:9anfjWOUk8ZauXlHcnCYxmBsocBJmP5lonqJjKgPefZPKmfAcN3mFLa8AzyUJnX7XciXbA3drV/fO9SL/hssGlueE4B2h6G/2v4tEfSVvCKuAX8BH42VRNo/N+4xgrWOTq1FrUf/jWmNqt5mjMbOvmiG4w4FqE3nBC9iwJiOJvF9vvDnDwWugIoNJCwCYCxTV4/F+Hn/eAssJNMhXOatEnCkEuKFSyy13xPkeNZ32x0iY3w/y4jYh/6v646yhlWnC2DFXkGhbKfCCbximeAN0LACky7mRhUAwnQMVsCNn9enZu61GOTlQFtQ+AeZVfbCYfp7wF18nBCWTtCyrTUsMrUiUKMQj5u/qY7tcUIGHkzPBeIKnYIhTSZ3wT8FLVj7Um+IcFGRUb2fZp4ZJjFWPSlZT4PHiA9Rt3sDUH7tttMYZZL9u/8MOyc+g7RaLmCXUhG/OKlsV5+9dorm86ewdBUsBKb0u0SZHiwUHGs9o5vOElY5WgBoGcWYBFp14E67 X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1503; 2:be6+vU4TKQMISU6PBk4o8h8MqcO9X5cDCVD3KdIq4gKIZcdehKPSLN0OGC5HUByyPieSE64dZMyKUuBeaXgRGnaVWqRKYqtEUx53Me8Cub8eGSwGJAa/hglpvvqMAlebAUKExlAAGK2vkhgDnQLfzM7Rzz50XFLwSO9qMgvyKBfOBgIwSMnSXjDOHkOQaImQ; 3:68HYejY27R4baOgy92fONRSGtLgWPznJdI1STSGF6r4b0XCq/meS+/EqsX1ZONlTUYoSNjKWwlHYUh9WekNYkG7PD5NPZeCU19rdiDFmhJxfs1iS8LT6NZdB6fT9vUPr79Q7z/o9yJKrnoaxHsAhTDbkmeyQORMe2TYLr/Syeqkw15CDc2om5UejGGNT3CIr1R05wxT0IuIEgZvhtGa6pcpeyqI+oBmcrmITrCH2rIzSGLAnGs5RTATKv4RQYm/5 X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(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/IBEu9BOwxVRjVu6O4qdfZncIDFwe+Hor10TaQIuIkiEH+xNKfdjouSr9KbeW7KnKQ2eIAjjBM1B/eOeJgghVVlDwE4APlALA5e5kM97tyP+7WhrmpHiYeyLjcDvV/2a2b8BDOufmTwNSYpi3b4e6+pfRkopd1QyAbU4UD5rlPgNAfdcY/blUMbFtgvvToWG1C2dbLrjO2O4gpxJCPMiWFt6w2ka4m+hf9c+sedKQ4sl6OZmLQmuIGzpfKuQ== X-Forefront-PRVS: 0888B1D284 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB1503; 23:baKJHaLBzQfO34klJugbOtKpxJQZcyGmeQ3pBVP+P?= =?us-ascii?Q?qbF4oM44IiecqinJ2NAcbfevUjDMdZMwwFPCuuKDuIiD50Axh/W9jkqGJqJ/?= =?us-ascii?Q?rP0rMaZetV3XDK1DwZFn8e17ZBf8s2nR2zlE3y8IbCaugR2sMakxf682gZRo?= =?us-ascii?Q?H5BZOWbORVCYDIO8ZkziAkI1ak6Me9FeZFbKFGzJJyzbGO3XJNeITR7CcSb9?= =?us-ascii?Q?qvv2lLs69XOFLue9cLtH9yXthsatYCeO0Xv4XGhpep9brlKeQ1y41H0nXJYm?= =?us-ascii?Q?5wFjW6Vvus5Aav7XqYhZnDQpu0kppzB4Jk2+L+vf+iFJZYRdPnv5cPSBlknc?= =?us-ascii?Q?+oGxhYrzOu68g8iZPyA+0CqNbYdzMy0WGRe37wU4s79AoiEKz1le3ZLzJN4X?= =?us-ascii?Q?4RDkNi8b+ei/q43XvNVQp8nnBWqUN8xrC1ouTTeEJOzEqzI4nT1hK9Az0Xn2?= =?us-ascii?Q?Bj9DywMvloj6l8gGr4QuknNNMYMCPxktkIYj24lp715H1BhsKYCGt3RqZf2W?= =?us-ascii?Q?Pbqd4SxmuseH2AXUMsrqnGFF06zEgZpUDixdPh0thHVzFq3szcfOKS7lKVCF?= =?us-ascii?Q?ch2TkYBygespt+ZvcnfiX6lUZR/71/XPA0SE4iDA1a43DT+m8RbGrZDCoz2H?= =?us-ascii?Q?r5gqx9UdedWvFOSxHfuTKeEMIWzZEh9t56wulIVg14PaawB46iHlSfb8K41q?= =?us-ascii?Q?DoE4OZVVc6IWBDtxeeqTKHmnKoc8G1RnBH5awn0eiQy7MeP2vJ0L4M0Dn6VH?= =?us-ascii?Q?SUdvBaaAGyW5ve97dlzGz0NSzfNjvEl9NVFuiUE+u+hi3gg2TgjtoawRyRhE?= =?us-ascii?Q?rN+TLux/VqeobsT0rt0UU+d7Nc6YV3FuuArZ4upIY7+LjZI/F3tJ5xI6WdQh?= =?us-ascii?Q?SRZtd9fMA4PRRFaEdMjdPdsGTaEKRndZRM0AkxTrOePFQrwksI6DBwzAglp+?= =?us-ascii?Q?6CSkrlkPp4qwm28begJUIJcMWP7kA4W0la0hHURc1iQh9/AWHQ6LVZmGOhlp?= =?us-ascii?Q?/aKm4PR3YADRSznNDbwiTAUs9J6xObXF0+iN+Yd0U6NxlqqiVl+HNI1Z8kBo?= =?us-ascii?Q?VkFQLaM0HRQuZnvW6GdrDYy6u0DRAa9/mMpln93KTehFGfYYt4SNVZWqdyLD?= =?us-ascii?Q?CjxqWK9kmLyFWi2h4CVf6JDI7VaXe1Mc6pg33VbQHABbHvMSFY9IZbDeS3rV?= =?us-ascii?Q?4NsfEUACIIUZduPZp4bnAUs6Y08DJ58y6kw39eyBJluk2A6NeL/Fq0UY8Hni?= =?us-ascii?Q?VRr0i03FsChpzZrD8L2xoJdDYyfoO4ZRAKE6H9susdPLYx/+YMHHixUyUQJk?= =?us-ascii?Q?LWrHsBTs7qcCm/pU69+6W8qdLfKlCN+ixER3NO7f2BBZZ949lflF4ccODP8B?= =?us-ascii?Q?IboAGEhxDypKL0AJHlMw0y1s5Eqr1ftFfMcadM8lHUw/kZK?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1503; 5:A6pNJnm2y7euzYddRYFDE+BS27NFrID++XrafSREUgvemXJhi/lFwGMpoELO4lX6iJslTMGGfT5E3EzfxxyzYKFDOAKNjYPpjT+FoCORJvHut69LiOGLgcOS4NF1lH/AI9+K4adK8Fd+g2n18Mp1bQ==; 24:YXEX06gt2gN3F7GroJBMRBrRB81WBmaHmQaVyp4u+8BKVhogS62ZZ8YFf2Tr7JLcvs3EeiOqW61EXMhDFrF+yb5vtqX5YHHaigaJRhqONu0=; 20:kaauUkT+Oin+uaOxHCAlJ74quEKAEKnSAOWzzkr4hRo6P030KMXJ0Q8ub2547FkE9BO0lF7JUASMINeTivPy8XaKaCJrVFJcqcD/zbIsHyF7d7FWiPM9FD/5EYt4HsM9bOQ3l5Y5BR4lSJJG5IkkZWmEvZL2XHj3pchQGjNaNPY= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2016 15:58:32.0826 (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: CY1PR03MB1503 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160321_085857_375021_1181E190 X-CRM114-Status: UNSURE ( 6.18 ) 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 Enable ECC for Arria10 L2 cache on machine startup. The ECC has to be enabled before data is stored in memory otherwise the ECC will fail on reads. Use DT_MACHINE to select Arria10 L2 cache function. Signed-off-by: Thor Thayer Acked-by: Dinh Nguyen --- v2: Split into 2 separate functions selected with DT_MACHINE. v3: No change --- arch/arm/mach-socfpga/core.h | 1 + arch/arm/mach-socfpga/l2_cache.c | 49 ++++++++++++++++++++++++++++++++++++++ arch/arm/mach-socfpga/socfpga.c | 10 +++++++- 3 files changed, 59 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/core.h b/arch/arm/mach-socfpga/core.h index 575195b..bfbc78d 100644 --- a/arch/arm/mach-socfpga/core.h +++ b/arch/arm/mach-socfpga/core.h @@ -38,6 +38,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); +void socfpga_init_arria10_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 index e3907ab..4267c95f 100644 --- a/arch/arm/mach-socfpga/l2_cache.c +++ b/arch/arm/mach-socfpga/l2_cache.c @@ -17,6 +17,20 @@ #include #include +#include "core.h" + +/* A10 System Manager L2 ECC Control register */ +#define A10_MPU_CTRL_L2_ECC_OFST 0x0 +#define A10_MPU_CTRL_L2_ECC_EN BIT(0) + +/* A10 System Manager Global IRQ Mask register */ +#define A10_SYSMGR_ECC_INTMASK_CLR_OFST 0x98 +#define A10_SYSMGR_ECC_INTMASK_CLR_L2 BIT(0) + +/* A10 System Manager L2 ECC IRQ Clear register */ +#define A10_SYSMGR_MPU_CLEAR_L2_ECC_OFST 0xA8 +#define A10_SYSMGR_MPU_CLEAR_L2_ECC (BIT(31) | BIT(15)) + void socfpga_init_l2_ecc(void) { struct device_node *np; @@ -39,3 +53,38 @@ void socfpga_init_l2_ecc(void) writel(0x01, mapped_l2_edac_addr); iounmap(mapped_l2_edac_addr); } + +void socfpga_init_arria10_l2_ecc(void) +{ + struct device_node *np; + void __iomem *mapped_l2_edac_addr; + + /* Find the L2 EDAC device tree node */ + np = of_find_compatible_node(NULL, NULL, "altr,socfpga-a10-l2-ecc"); + if (!np) { + pr_err("Unable to find socfpga-a10-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; + } + + if (!sys_manager_base_addr) { + pr_err("System Mananger not mapped for L2 ECC\n"); + goto exit; + } + /* Clear any pending IRQs */ + writel(A10_SYSMGR_MPU_CLEAR_L2_ECC, (sys_manager_base_addr + + A10_SYSMGR_MPU_CLEAR_L2_ECC_OFST)); + /* Enable ECC */ + writel(A10_SYSMGR_ECC_INTMASK_CLR_L2, sys_manager_base_addr + + A10_SYSMGR_ECC_INTMASK_CLR_OFST); + writel(A10_MPU_CTRL_L2_ECC_EN, mapped_l2_edac_addr + + A10_MPU_CTRL_L2_ECC_OFST); +exit: + iounmap(mapped_l2_edac_addr); +} diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index 7e0aad2..e9b5b60 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -66,6 +66,14 @@ static void __init socfpga_init_irq(void) socfpga_init_ocram_ecc(); } +static void __init socfpga_arria10_init_irq(void) +{ + irqchip_init(); + socfpga_sysmgr_init(); + if (IS_ENABLED(CONFIG_EDAC_ALTERA_L2C)) + socfpga_init_arria10_l2_ecc(); +} + static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd) { u32 temp; @@ -113,7 +121,7 @@ static const char *altera_a10_dt_match[] = { DT_MACHINE_START(SOCFPGA_A10, "Altera SOCFPGA Arria10") .l2c_aux_val = 0, .l2c_aux_mask = ~0, - .init_irq = socfpga_init_irq, + .init_irq = socfpga_arria10_init_irq, .restart = socfpga_arria10_restart, .dt_compat = altera_a10_dt_match, MACHINE_END