Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758071AbcCaSoR (ORCPT ); Thu, 31 Mar 2016 14:44:17 -0400 Received: from mail-bn1bon0082.outbound.protection.outlook.com ([157.56.111.82]:6700 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753216AbcCaSoF (ORCPT ); Thu, 31 Mar 2016 14:44:05 -0400 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; Authentication-Results: alien8.de; dkim=none (message not signed) header.d=none;alien8.de; dmarc=none action=none header.from=opensource.altera.com; From: To: , , , , , , , , , , CC: , , , , , Subject: [PATCHv2 2/7] EDAC, altera: Add register offset for ECC Enable Date: Thu, 31 Mar 2016 13:48:02 -0500 Message-ID: <1459450087-24792-3-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 Content-Type: text/plain 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: 81dfa570-6c93-4a5e-599c-08d359946d64 X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1483;2:Pq2bEaYMCEM2fzpNlatK5LnkqlroWWkfSSWIahOehHbTcwZFGRx6evB9Q6Sjz68qdZgwSEhRldXU8JMPKAkBpc4vClFJ89Yf8eoOQkHcHP6GrNOCHfNbhOtYedJETFRSsQh1fMkxuHIsitvUap2s8Oab31nTvPx+bwO9n4yBsCoERBQnFp/joMjv2wgoFuYu;3:hp2IQnW73Y1ekxlLokHYAUzaEsP08Mai90awbVI+hgPWIcYQcSAvBUoKkiGhJZms/8QbRI0jqa+TSSsKSQB2ytlq1cNfIKYbp6ipOfjLFqwloZLmHqNWt+5L07PYwngc;25:OHoKBWrnjZWa7gyzxuQe/OcG6LONNs9fEWWINN8ZP7tZ7j6fochkwocxDGexvrEBJC0WCcbiMKMq3RFLIt20Py2JCvQnpwTO5IswtXaXCibQh/JX/4CeJAgepJFypwCoZ/5dS+QT2BahANBp4RqbeqVy4oXWcSa+nR1y/1fWcfVZ+l200U/XsLPHU78QcLCAWEi0XV0nQBTPryzKOgalspD/S0D+gTcC5e7ri2XQ29zsdBZe4VGZI46GW0iv8fDjynMDmGiQKGXFDRV4rmKXE6wyiEHfaJQOEl02JtqUW9Ndnp1VV0tXmtPJMJQmavc/OaTzl0mq1uFYrTe1kYIPrHveG/ePmgNf72N1CiB3DCU=;20:nbhKlDdefu0fE3gK3pe0Nj/r8aiIJRfh00xAFddtiAsuhY9J1LfG7yXPeAm53wLLAPe6EUYrg5hMTEpJfyuPYcSysysbfInpH6Vn6cg5iQ95vSYu51pBvnGLaHYOqzAHwCj7dYIhC0hinwD8vV4g96D3nqEZWZP1l+LScMzH8GI= X-Microsoft-Antispam-Untrusted: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1483; 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)(5005006)(13015025)(13018025)(8121501046)(13024025)(13023025)(13017025)(3002001)(10201501046);SRVR:CY1PR03MB2282;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB2282; X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1483;4:YRfvFa1M2BngDnXZNSZNhmrxmGpl/vVP7kmg7c2sAeL/E8GMk2rLcTvzDhoewZj7LS5FwQkvinKCGYLvSzfFfUlLHNvXh6BLGnyn+Wl55NexmMYAKuE2lAweNw/XVUb7EP70Ba1oLofVzKGytbH4HJc3rNEF8YALE/kWwGbtz/vIznGHt0c7+pTE+Mzg53unmSQNLn9IJ0PRJYW/o4+gWnznkKu+a8JUeLcFCzEhBNxQUoFm9xWLwSCmP6VSNVl1jRl/0mFpQaMPN+5lB0DPOdCdcVkPl2wlxk19RD5bY5r8QkdJHpYkWA2YUbmElNW593YsMPLPjtAJOSmu7rknO7JFpHzw3+hwbEDsTvwaxKIrTTTWmSowXKhg3SuG0CeP 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)(921003)(1121003)(4720700001);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:C3xuGP1XG7g4lEpkn96Osr7G7/Jvs6MBRovsVOoa1?= =?us-ascii?Q?3SG7Qq/JsW4QlrZYylyiY7xWvGcDJ2ahNMfDto7EQBjgrmH9SfGWmus2A3qR?= =?us-ascii?Q?3EHtzibwaYhNOTLGhVhXoeZJX+OAA51mtvrHpBh9+HM3KYpo2wC9LZt/tL7+?= =?us-ascii?Q?26uxpWgIlBWl6q7ckDGgYTCYCw+txAkPkkGJXBAAm3YEMZe6XBqN9rg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2L?= X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1483;5:dDwFq4AxIEP6xbqKQ1taPiwKUk82JcrqtlHljWH1zuPWLDC0pOFA7YAu8EbAvz/ROhyo7dE+I5un+RaeU9yHienDJUb2ZvK5/OwAszHW1kP9BFTy014dHRDK0IdVcQCVL8/RHh7tKPLS967SpJfDPw==;24:D6vzhmo5vuJmoJ8qhfOqTMA1HL6FKx1wdljyTFaws8tHFIKrvPWssV2bQISCqvttseNlyZNwao+cfWkiX0uf5Fq8dl14zj9GfEsaMQeiIQc=;20:SUHphDJlRFY5359CyWQaRMx9mFxsiXoUTICwZbHeMJ61Cavv8BXwqoNKaB6G4PnhT3N1CFRys1QPFqH5AgiwMHlYXHH8J641WSHo1tbC6KzoJZY3uYwzPnjRnkIum1MSQa+ZWANhQVVp3qrBHJLzUkg+x2jIUx8CMxmBMNnCAms= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1483 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD051.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)(586003)(16796002)(3720700001)(3846002)(81166005)(6116002)(2906002)(229853001)(87936001)(1096002)(1220700001)(2876002)(21840400001)(106466001)(189998001)(19580395003)(4326007)(19580405001)(107886002)(2201001)(86152002)(105606002)(11100500001)(33646002)(76176999)(50986999)(5004730100002)(47776003)(5003940100001)(6806005)(86362001)(5008740100001)(92566002)(48376002)(5001770100001)(4001430100002)(2950100001)(85426001)(66066001)(77096005)(575784001)(50466002)(50226001)(956001)(7099028)(921003)(1121003)(4720700001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR03MB2282;H:sj-itexedge03.altera.priv.altera.com;FPR:;SPF:Fail;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aO7JiL9rc6uVqn8LNpOOJz0rKPF8CzXbkiDD6DVYGAP787+ZeoDSWo21oeqXGgxVZhTsKsZpNDldSFBKcKd0Op5CHHJUUHRr4pXvsw6eUJgYUC/IKvfKuJgznQO87ny84fDe0V6w1VczsT2AdFJXu6+HmoUuiJrJB/2WcJZxB82sONOCvSUbRdJ1gBSrM39GDb0h6vY71VUOCrsB9v5GiNBkTqZf5W/CPrOafGe8XyoqJbFoZAWLsq2MqZFwR90nJPAEU9oO+cyttyOhZaA/UhjaUnpiWzAFFJNa2Tp2X1i0mzx+teJCl8ZDNAkfdavPC1QGSeSHoleO6Pfyb0H6kja9T1rP5ROScnu457ue0GblyOGtu/HNX+baq+CzXmypMckzPjqmQGYpECqgUHdoxGLDlzB2m2cn5C30A== X-Forefront-PRVS: 0898A6E028 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR03MB2282;23:AnY95YH5+hTDkdgh7B5rvL8Y/2hI3a0MfLFNoVlNk?= =?us-ascii?Q?dfhesJCCYIRGzU1SobfblMm3hSeVWoL5Io8nwQRLzIidnWn7PgPtAxIoRvAi?= =?us-ascii?Q?OcVslorhzuD26T9nuY35tMd35gWA7de3roSOogadIBXr8VtUXkXFxverL+Ti?= =?us-ascii?Q?aEFpbSIsvA94ptQKgqiEvne+SQ4kwCUyjIbCRUcSvy2YmdDNNXQdhAtdrdEO?= =?us-ascii?Q?+FnR/BjEMVJ/CSIjKSH3qaZ8f6S9z337Si4XqiPNqTfbqGkmB19UvXlEwHeQ?= =?us-ascii?Q?iUPMTDOk6Dvu4aO3L+HZbwnhI0cCXhCQLJtv84RoQJk1ey29aRWXebWtax0I?= =?us-ascii?Q?iyCKZTfllRpy1MiPJlPf0eriQbK2S6h05QyLXlkQqsyVScGyyZsQUCzoFnmj?= =?us-ascii?Q?nBdBWTHafzAiwtWlCNTrKK2eQ3rsnjK3McX+Ihj7ibKvup7tW/yW9qRfRILj?= =?us-ascii?Q?FfB9eShfrsc2qIXeHRWDSBuShFAESAD5SV3Qzwa0C+XxTCRxCk6rRjMj4ND+?= =?us-ascii?Q?VOebZCtvum0l5eOosnIoakymtdsLfRyW4RCnXMhCqLLZiffFEQtSLKBXKdmC?= =?us-ascii?Q?XrFulpJBlTNd9XSXLhkn1FP1Qtl61J+KExZq0guuIKKtEPmsXWuJOlB/svZq?= =?us-ascii?Q?PaQil4fGx6cC4nwnXXwGhpIo/T5QpSSQLPkNN0XSJa+aivUBDqlZRRfwR4kR?= =?us-ascii?Q?pMtKggw73nQSYbK6RGFwQMDVjLYktCjoZ9jBXZl2pEu+t3mZoysqYX3sn6Fs?= =?us-ascii?Q?bk8ZRFiCbgiDKWAgJmp7DY143QSfxM/hYzNCAimcdSnnygDdKXOPN0ZCxBp6?= =?us-ascii?Q?bSk8A/oGvUO/JR6g5JnzTaAkXxJNtEy8ouYnVPJ+y4IwR4M1w82AKrrg7y1+?= =?us-ascii?Q?CXMErYqN2hXkZSxKi1C9d/eZHK2EOFOEztKKyaDydNchDnCRxy7KtZ4eya4Z?= =?us-ascii?Q?7FSVXwDQbZqgwZhy8qWKdekgLOm+4bus4crGhp5IqEWZSp7gLq81r+TLmXEc?= =?us-ascii?Q?t6eK38viDQFHOeM3jkj7/+muXBVEdbsUxMF9rJhc8FIhbzCIek9vdue3cp1M?= =?us-ascii?Q?d9+bSy+KmYcB+alccrg0zmFSACqzv8SpJC+7jJip54BSyTgC4U85VPSEhQaR?= =?us-ascii?Q?dITM2syuowyOWZeH6PVpXn8bUtI1SO39R5OWnkDKIubGJDTGlnGxWPCW245E?= =?us-ascii?Q?QbyQfzsntgqcyBI9QlLQ1lZHlZA1/lM3OSoOcSkZBIw+l6Omup0387vYIHW5?= =?us-ascii?Q?IaX64pzR0gxn1flL5oPDGUu80ltPbQBF8xol+LqBAECVWisFCLCSwqodLCHc?= =?us-ascii?Q?bsV+7wovtyrla/fEq97SOVQCaE2uhBXF4t/68U/qKUYubR9wp2ssbShiZXM5?= =?us-ascii?Q?emFdBZXBMCaVVcFsLhT2+iyBoKmmgJE13hdNGXK7OaiPSdQ?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB2282;5:xbocqKGseJ3dqi6il12DBmPjl+BqKh71hT2Wwpu5NPoD5Tt/KWCVC73WWDl0MYk92tdVTWeGfc2Cf1oQPRO8Qc3Z/SV15R/RXi+AnQPy/47Up4Q3XhAmXvnrbIwM7WbkrD+qh9PsyKAmTpmXvB1LLg==;24:9LuqHFy1fZp4mPa2M03kkpc3Zs2oXV1neBlnSMau6clk+VUh2AOQvzh1i0BRuRTVfvdzNJ9QKvqeVoAUlQQfxqqBK7HQ0XPC7rOTHRxIzB4=;20:P56tX5lCZZ81Bff7dUXiTuLijBF+Fxt+0uM0acBYSz82GPjjq/iaFADeLRMI1df9B8Bur2GlzDRqPyhFKylyr8+UEXKw46kZHYAUDSw+na2q9QoaRf2WDWN7C9WZuISm3RILOxVtUzphYK0e8Jpct0ED4oLdFu5bfb9pRMYWs2k= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2016 18:44:01.0484 (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: CY1PR03MB2282 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1728 Lines: 49 From: Thor Thayer In preparation for the Arria10 peripheral ECCs, a register offset from the ECC base was added to the private data structure to index to the ECC enable register. Signed-off-by: Thor Thayer --- v2: No change --- drivers/edac/altera_edac.c | 3 ++- drivers/edac/altera_edac.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index fb6fe56..f0a6de7 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -866,7 +866,7 @@ 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_enable_mask) + if (readl(base + prv->ecc_en_ofst) & prv->ecc_enable_mask) return 0; edac_printk(KERN_ERR, EDAC_DEVICE, @@ -882,6 +882,7 @@ const struct edac_device_prv_data ocramecc_data = { .alloc_mem = ocram_alloc_mem, .free_mem = ocram_free_mem, .ecc_enable_mask = ALTR_OCR_ECC_EN, + .ecc_en_ofst = ALTR_OCR_ECC_REG_OFFSET, .ce_set_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_INJS), .ue_set_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_INJD), .set_err_ofst = ALTR_OCR_ECC_REG_OFFSET, diff --git a/drivers/edac/altera_edac.h b/drivers/edac/altera_edac.h index c995388..cb6b2b9 100644 --- a/drivers/edac/altera_edac.h +++ b/drivers/edac/altera_edac.h @@ -256,6 +256,7 @@ struct edac_device_prv_data { void * (*alloc_mem)(size_t size, void **other); void (*free_mem)(void *p, size_t size, void *other); int ecc_enable_mask; + int ecc_en_ofst; int ce_set_mask; int ue_set_mask; int set_err_ofst; -- 1.7.9.5