From patchwork Thu Mar 31 18:48:03 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: 8715471 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 3D4EF9F39A for ; Thu, 31 Mar 2016 18:46:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 55E91202E5 for ; Thu, 31 Mar 2016 18:46:45 +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 F3BE1202F0 for ; Thu, 31 Mar 2016 18:46:43 +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 1alhad-00036w-Cz; Thu, 31 Mar 2016 18:45:07 +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 1alhZz-0002Z9-Dk for linux-arm-kernel@lists.infradead.org; Thu, 31 Mar 2016 18:44:29 +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=gESBxdAO58qZcQy+KZx7fJXV9VrSxQKJHoKkNctjpYQ=; b=O+o9bGEMkFZrtEoC01VeqVkLdAkdhZYHL7JHer6bSd8UBfP1gmaIXdT6iQtDhKoDPrjCQZ79KELgPcoLYfZZNiB+Q7HS57FZGH0FsIDDjNP+PX15Md1W1hDrnxdvmKPad/dnc8il4e5pz+UYjjB3rwwlY13bh5ljOckL6t9xDYA= Received: from BLUPR03CA010.namprd03.prod.outlook.com (10.255.124.27) by BN3PR03MB2275.namprd03.prod.outlook.com (10.166.74.24) with Microsoft SMTP Server (TLS) id 15.1.447.15; Thu, 31 Mar 2016 18:44:05 +0000 Received: from BN1BFFO11FD022.protection.gbl (10.255.124.4) by BLUPR03CA010.outlook.office365.com (10.255.124.27) with Microsoft SMTP Server (TLS) id 15.1.447.15 via Frontend Transport; Thu, 31 Mar 2016 18:44:05 +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 BN1BFFO11FD022.mail.protection.outlook.com (10.58.144.85) with Microsoft SMTP Server (TLS) id 15.1.453.6 via Frontend Transport; Thu, 31 Mar 2016 18:44:04 +0000 Received: from na01-bn1-obe.outbound.protection.outlook.com (207.46.163.183) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 31 Mar 2016 11:42:41 -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=gESBxdAO58qZcQy+KZx7fJXV9VrSxQKJHoKkNctjpYQ=; b=O+o9bGEMkFZrtEoC01VeqVkLdAkdhZYHL7JHer6bSd8UBfP1gmaIXdT6iQtDhKoDPrjCQZ79KELgPcoLYfZZNiB+Q7HS57FZGH0FsIDDjNP+PX15Md1W1hDrnxdvmKPad/dnc8il4e5pz+UYjjB3rwwlY13bh5ljOckL6t9xDYA= 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 BY1PR03MB1483.namprd03.prod.outlook.com (10.162.210.141) with Microsoft SMTP Server (TLS) id 15.1.447.15; Thu, 31 Mar 2016 18:43:57 +0000 From: To: , , , , , , , , , , Subject: [PATCHv2 3/7] EDAC, altera: Make OCRAM ECC dependency check generic Date: Thu, 31 Mar 2016 13:48:03 -0500 Message-ID: <1459450087-24792-4-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1459450087-24792-1-git-send-email-tthayer@opensource.altera.com> References: <1459450087-24792-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: CY1PR0601CA0035.namprd06.prod.outlook.com (10.160.162.45) To BY1PR03MB1483.namprd03.prod.outlook.com (10.162.210.141) X-MS-Office365-Filtering-Correlation-Id: 6267f9bd-158a-40d7-4f99-08d359946fa6 X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1483; 2:juLX+1pFidmmcbllWj2+edk57K9X7plG/kArv9uU0eMN+oooys8flV1t+fqVXpYLYN/FV2Gs7VKAwvdr8aIiZgDs5bc/hbDYfLZ+ey6CsS+IY8+FJSdJBqMtC6p2cfC/6FpcQOMMdXXOHNKqqXoJsRqFZGuJdezOqymBA5PAerzS9c6w67+AuQiLF2RRGyok; 3:Bs2C4/xX1wsxSOLgvg6BDQiSHwacB2FOJVG2fyebwmhDYVaA6t0IeIJBcDPwGskznILcN/eg5Mioh/CsbP/vlFDhA4UCKOU3Zrec9F8+t4Sjz0uWwnHBBPiDl1niVYJg; 25:jkc2ZQQ6ZEhF0le/bVWr2pCy1xMb+CNqTH9qxp+XybAxnFP/dTPKHMhRAflgTL4jOkwuJ1QZ0lz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YJql34HGF4HbaggMA/LC96QQOUQWObLzk7GfscEgz0MhDFN4dxAaD5rsRPK/TvQ5JPiuU4rXkCe3MMx42a4BPJCcbx2vFNZPkAUGL5LV7DOc5agerE3ISjzXVMUIqli12QZxyd7TA1JpCEyHn64sF/VG3eecgD0 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:BY1PR03MB1483; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1483; BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13017025)(5005006)(13024025)(8121501046)(13023025)(13018025)(10201501046)(3002001); SRVR:BN3PR03MB2275; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB2275; X-Forefront-PRVS: 0898A6E028 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(66066001)(19580405001)(19580395003)(5003940100001)(575784001)(5004730100002)(189998001)(2950100001)(33646002)(107886002)(48376002)(42186005)(47776003)(86152002)(229853001)(5001770100001)(50466002)(2201001)(4326007)(92566002)(2906002)(50986999)(81166005)(1096002)(76176999)(50226001)(586003)(3846002)(6116002)(77096005)(86362001)(4001430100002)(2876002)(5008740100001)(41533002)(921003)(1121003)(4720700001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1483; 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; BY1PR03MB1483; 23:wyKO7CEqkXB0MpenbxZK+o6QMaJl7X96NscVlmCrT?= =?us-ascii?Q?CZN79jx/lu0V2FRWCc8NwDG6fvBp9/7Qu80COQEPXHUOo2xnIqUFS/NpIliu?= =?us-ascii?Q?7bnCrU1YqSp7f3lJzC2nVQsaZuHEtzVyIHA9fZ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/tFxaW6x9tl7MDnt2FWnK5emgFv4H/oRBoVIpXZBAHrOhM6u3pfjNErYj?= =?us-ascii?Q?1tHA9kuGITlBqFolHL8VvkxYi8umc5gELhGiLPEyi79dgsScONiRULkPHm64?= =?us-ascii?Q?1UM56uQPng=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1483; 5:cef5PMVkdUoCB9ubEb1Hy6iU1c3DFKS07Dp2Qt3FdK0nMbvz8D9N64/vtg2OW4XklFkOYCaqy0i+ViOQY5Tr3Wj3EakMXut3OdwNxinGyuCzaWbBg4GzRoGL1Jzy+BIbiiefsJ3py+3yopD0fJJn4A==; 24:2nhXauhlqWBTsMBo9jhGUc+I2aa4hMfOteJm3WTMfAcFf+tbRFv3i+PS2cyz+qzwncPMl5Ar+69O2nyxli13dLPPzBVR6KqJKhr+0vYdrfU=; 20:MqjxjXTR8XCv3Wj54kEUYk1DIO2b6LJLBVY9IhdxsbaKJ49mP1yJD+Kdcw/lKdDlZLXVqCggOK3CQrWqhrMD1+4hxcBsXRvT6U6FWLR0XSq5D57CQuNpVRIi7o0X+t2eEFlamC7PYhjhWrvTl2g4q5urY794gjT8VWAxrcuWvW8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1483 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD022.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)(199003)(189002)(5008740100001)(229853001)(3720700001)(4001430100002)(2906002)(48376002)(105606002)(5001770100001)(16796002)(50466002)(85426001)(33646002)(11100500001)(956001)(87936001)(1096002)(21840400001)(77096005)(81166005)(76176999)(2876002)(4326007)(50986999)(106466001)(2201001)(86152002)(189998001)(2950100001)(107886002)(6806005)(92566002)(1220700001)(47776003)(50226001)(5003940100001)(575784001)(586003)(3846002)(66066001)(6116002)(5004730100002)(19580405001)(19580395003)(86362001)(7099028)(41533002)(921003)(4720700001)(217873001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2275; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; MLV:sfv; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD022; 1:UUBgdn6L5JfIupgpqr4CS9OPA7g8+XSgfe8FKeyJJYQzKA4uzznXWMASNO61CSafCeb1Jebq9mxtnKhLW9g9GXsrWTvT3aHilQjET1FtlKtOP58ElY7FjGlhbBQaYk7asN2f6H4sl2es/I0VxQ3Fn0NCXtaF9+KPI1kOVV72FP3Kpu5b/3Dba9ZD9f8l+llqBMCZUo9DkeVupyEmIK6YGZPc0Xc1qkBOJScfCaddLdGxYuG0VM2ffmF9o44M/j6eqOe3yo+/JnNp27VLC5LVhj5ja2jijph1Pr8mYjA8IUWf6aahc2ZtRmgPE1EeLv3asf5h03+6dAzac7rYSb3i5ErbVGfo5JeLj9IBWqk9TMKDNVmlAqWLDnPI//oge+6JJiyeHOxfn12c4WWjSXj1S0ehk0M9cvtya+jDfJ8i/Mip6J5aZpGuPOdn3l/+YKNADmF0lzdmjuuBvmgjBVCyx0sz/ZwENnWjaXQsdhcAA/NGO8ba8++i4yMqw78qzonuJR8pd1uL8ZQA4LwSdeNtRQ== X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2275; 2:o7uLCZuPvR82K1Sqy4OpEbN0O+2VUXpNE2qZYLNQIadLlCxQIYRlt9fp76sYPConuGpfkMw6SOuco6e5QBK2ZOevADXfdjC76vvSHoELqSCaNn5XjFkEMlbr1B+D4lNxW0R3X1LJmQt/m+h39DRbvWj/69puzFlTNEzt41QJ9fUc947xCjbZjKQD04uXjTtg; 3:QEhrV7W9zut8beBsBTLReb6PSYHXtBKSPBaDfw+GaltjLmqFUkP9wopSa/oV01eIkmEmkDv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UvX1eZYPDhlI+wFOjx4gyfIq0nfNDQz4e2p4/fuCeZmdoi1bg6zfGJ6LpwqUtGynEvr4YcUWCTd0= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2275; 4:KPN4ECSWXFJGKKoxkZEgyGIRSgEr0hZRZoFuMTpNMKQ0Xo8xlgJN0cqZyhFMbM/XbBLmyWsQKIoZfOCUn8diOdygZOBulPU7LoiAvTCufkUI97oIGlwxp+k7Yiwo/CndzFEn4Un7EJnJps9cibgMI1GQqXYamDuCjxei+3x6ADYYT1iXF8sbmRWV01kT4q3xtGLpI/1h7ZLziE4qJjyONWTanngeU6Gg7D+c2nC+1xqQPsa1VjtrCWtM7WtjIkrB6LSJkz7lDJnZPC8iDfnDCNL/rAwAq5vyhYF47xyLWgGP2awNW6onMrQxIYgZVRum07RaS8Ope2uB0FcmS1SpKOR9RaozjyoEpeuxA41EUALSi8vghgwVo8aPtyKSGOtycJoMDSG7i0yiTVLZndZGVVrIGREkt/Z9ABr3NoatbF8blsaoSh538FtFBswKgKH2dYqevbmXG92U0XTpI8tV/w== X-Forefront-PRVS: 0898A6E028 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2275; 23:hGD8u4GGlJ6EsocYLXx8B/YwwOv8qXX3ziAFMyKMW?= =?us-ascii?Q?pezeFj5zFrXs679/UX58NH/7WFy6tDCz3ev2rIQT3IDr3Lw5xBKVC443a80J?= =?us-ascii?Q?c91pv6nMFUalI0n0CItOvuvVlwMntCNOCB2MJ7LzhLBzxxq11fABWH7Cf5FH?= =?us-ascii?Q?Pp2qtoO1LD3UdqlB3q+Tet7w63oGTArFHoUrMGPa8YQCF08Ws5ls9U5YDLrx?= =?us-ascii?Q?ipuluR81JCGBcnN04C980dBHJiv1Bh4LONxANPEL0ivyefx20UUOzwW4Wnoa?= =?us-ascii?Q?3LETf0SQ54QI7QEDlbMTYoPYjVLxZnPq4ZWvueVdhp+PcNSNyOdqRj0JypmH?= =?us-ascii?Q?/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SXCsmZUMWHCZTxB8spKrXp?= =?us-ascii?Q?lE4oaXhaHk24Jn4p5fk3WB/ncZr72dYD9N6EFDGTc/QBR8HvdVIBWAcstBvQ?= =?us-ascii?Q?iBYDtDuvGRVw1DjFux5ZdJ6NXH3NK3PntCDxQ+x40YWAFV+n4SckaKexVLbN?= =?us-ascii?Q?AxEG46mzf4SJmDffHTXdzQ+iXdf34EOPSLGbhgmDs/XHHgyw3Ehr2sVEI6oF?= =?us-ascii?Q?mNfYJeZKlPU9r5MURrGdkeqjPzGY8Y=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2275; 5:1oIFROhSKTZt8fQnUjNrgQmNCf/tYAhhFneplDdjIkP9PyYSQ+P+oJnNirfoIv6g1bNJWxRmoskQ2haosYFq5xTnrDNvInYrMNfrbSYdxF+nKDqzuJ/qAeQszYPGoljigVh8jOHmwxE0qh0ywWAigQ==; 24:isgPCKf65Neg+o9xZJpJXDDXLdDKrGRgLIZUacgEVeDjkOQQZ34QFzlAHWTJ9ErWRrlpDrUOLAvDTLG7Iogmxzj+2ilKFbE54H4yqpKMoXY=; 20:vXzr8R5jWb/UqEAQRgUEI/iaS0aRgTDYrdZ9CFLYlmF/pNTBZbOkQg44OUXhbVRXHOdF42oAFJhXN5dIMIcP5hv9kSaZKFYpOmlGD054SnzMUEaE09muRKIr36ypPS36Nm9RRHU4f1VRVBfrDZObzl4qAo3aigV7rtb/AqZReKQ= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2016 18:44:04.8986 (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: BN3PR03MB2275 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160331_114427_901760_963B916D X-CRM114-Status: UNSURE ( 5.00 ) 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@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=-5.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, the OCRAM ECC dependency check was moved into the general ECC area since this same function can be used by other memories. Signed-off-by: Thor Thayer --- v2: No change --- drivers/edac/altera_edac.c | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index f0a6de7..f7ffc77 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -648,6 +648,26 @@ static ssize_t altr_edac_device_trig(struct file *file, return count; } +/* + * Test for memory's ECC dependencies upon entry because platform specific + * startup should have initialized the memory and enabled the ECC. + * Can't turn on ECC here because accessing un-initialized memory will + * cause CE/UE errors possibly causing an ABORT. + */ +static int altr_check_ecc_deps(struct altr_edac_device_dev *device) +{ + void __iomem *base = device->base; + const struct edac_device_prv_data *prv = device->data; + + if (readl(base + prv->ecc_en_ofst) & prv->ecc_enable_mask) + return 0; + + edac_printk(KERN_ERR, EDAC_DEVICE, + "%s: No ECC present or ECC disabled.\n", + device->edac_dev_name); + return -ENODEV; +} + static const struct file_operations altr_edac_device_inject_fops = { .open = simple_open, .write = altr_edac_device_trig, @@ -853,29 +873,8 @@ static void ocram_free_mem(void *p, size_t size, void *other) gen_pool_free((struct gen_pool *)other, (u32)p, size); } -/* - * altr_ocram_check_deps() - * Test for OCRAM cache ECC dependencies upon entry because - * platform specific startup should have initialized the - * On-Chip RAM memory and enabled the ECC. - * Can't turn on ECC here because accessing un-initialized - * memory will cause CE/UE errors possibly causing an ABORT. - */ -static int altr_ocram_check_deps(struct altr_edac_device_dev *device) -{ - void __iomem *base = device->base; - const struct edac_device_prv_data *prv = device->data; - - if (readl(base + prv->ecc_en_ofst) & prv->ecc_enable_mask) - return 0; - - edac_printk(KERN_ERR, EDAC_DEVICE, - "OCRAM: No ECC present or ECC disabled.\n"); - return -ENODEV; -} - const struct edac_device_prv_data ocramecc_data = { - .setup = altr_ocram_check_deps, + .setup = altr_check_ecc_deps, .ce_clear_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_SERR), .ue_clear_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_DERR), .dbgfs_name = "altr_ocram_trigger",