Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757047AbcCUP6w (ORCPT ); Mon, 21 Mar 2016 11:58:52 -0400 Received: from mail-by2on0082.outbound.protection.outlook.com ([207.46.100.82]:62023 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756715AbcCUP6Y (ORCPT ); Mon, 21 Mar 2016 11:58:24 -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: [PATCHv3 4/9] EDAC, altera: Abstract ECC Enable Mask in check_deps() Date: Mon, 21 Mar 2016 11:01:41 -0500 Message-ID: <1458576106-24505-5-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 Content-Type: text/plain 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: 657b0d4c-94ab-4142-1ecf-08d351a19981 X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1481;2:j6A8bZHAoI2MOT67taKif9vW7w23p5d2FEksZJ3mb8pXNPw4m2kP3c3iRYkMVDugTYNeadDCt8Ka/jteeQbfsVF57cnoHNKINKyd7KkG2EIE69lHH0KwdvJqho1l3Mb55Dls19wCUt0uZlmne36QVIRif5NAHKgtvKHq1tp/Rkpqu0xfhLPkyAGuI1h/mzvo;3:nox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umy1ere9kxrXl0iejE2l+LzFlv94ZqQy5hG2kM5R3sx54VcguBKFJBsboCs2M/p4hmh6ALa9pODLVw6LXiZpW1R/14DrHKMSFt3ccDDm9GvGhI7kjR/lyPcfyEyLfukcQnv6JYj5lVJPGhoWO7XFguNQd8SibmghIU2WUTVUYz6ltM6UOvOFcbHF/K7ln2P+isKQ+hBsdIGIW9ETkCEEo2dXtsxydSwpR0FpjFz1oAuQG9fgerFc/ 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)(5005006)(13024025)(13017025)(13015025)(13023025)(13018025)(8121501046)(3002001)(10201501046);SRVR:BY1PR03MB1498;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1498; X-Forefront-PRVS: 0888B1D284 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4630300001)(6049001)(6009001)(47776003)(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:YsICFn5CX5uTTpzQZCOi5EtRplc7OjWS3bqI068tl?= =?us-ascii?Q?avgQnm+mOtNrcmHaT2RiMw48C7qA4k5ITd9d6ZFeMtz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IUYlLB6RJbjGxdV0YBql96r8cTZinA7rJGVSsdXvWwQtKA?= =?us-ascii?Q?QeIxqqjSliZwcpI61FhhL0DroYBssESk7wHgOiyrPIq6JyRMSLH8D8SQSpX8?= =?us-ascii?Q?DYTyrw=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1481;5:sd0O9lrOiLywSHd4Mkf7h6hjapbZaV6mfHhch49Y+MDoQdSzoq8ZYQMtIbOI0akcNskyFcmsbrbdy66BP1moajZUwMBuFQXLq14tN4zaOFY5DDZvd2RbyETc7++odYCc2R4j04NEGrrS17+cae5BBg==;24:LWp+xRPNBJPA1khR79st9jhy/gNM+L9urG/MP8Jmxp1huXMtljqD0ZdVnKqP0JQTiYCLVZX4SYbRemecl1nXteE+y3p+Ma5gNEzemnNudOo=;20:bltaONMhzKTMTYctv7nqGnpKKZzgbqpWOS34xURSxbTsbLp+l+m0eoGpJEBQEqLofbRPBxyHQPo/c9pznZnVqiyIGbjS9FSFAy+HDP0uBfoejWfkU9zGowBeFlrNqDDYDWl8Xmly8xUi24FeuanU7h1zD2zUBBVJWodj1MQhIXI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1481 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11FD041.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.227;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(189998001)(107886002)(85426001)(21840400001)(5004730100002)(5008740100001)(5001770100001)(956001)(6806005)(2950100001)(66066001)(105606002)(50466002)(81166005)(3846002)(6116002)(1220700001)(1096002)(11100500001)(2876002)(47776003)(106466001)(16796002)(586003)(19580395003)(229853001)(2906002)(4001430100002)(86362001)(50226001)(87936001)(3720700001)(33646002)(2201001)(5003940100001)(86152002)(92566002)(50986999)(77096005)(19580405001)(48376002)(76176999)(4326007)(7099028)(921003)(1121003)(4720700001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR03MB1498;H:sj-itexedge03.altera.priv.altera.com;FPR:;SPF:Fail;MLV:sfv;A:0;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD041;1:u0ZGQrU9pQ9tcza+sKfndY75VNOXCyT1pIohSp+XKAFXUGR6AB0GkE6Z5QZd6O2aPATOdEkUA+P54jjWAJAC4HsE+HvHjyuH7O2KM0d87XHc9A6viou+cT3j11v7khE5jVkOqZCES+QbPQ2UoZVS8YoFAx1Nytg3Q6cYKkcFC1AD/JDPbiS0Enc0U7Unkr9Xa1c+TH83nVjWt7eYYI2nHMzZcScopumam+8LfvrwHxlx0VGOFU4st5FcpVLWOi8lOZBSfYWJW2bvl8IeGnktvC9mqkUgOzEWpZQCOIY71y2MSz+GRl/m0rU12Ozh93Z7vHFSnzTcRL9en0OGCdkLREsN/D7q/KRSVdr2RRdLEwjy9F/K7fWBJeJpbfFel06rKMKkTTedorTnkIe6TqMpeAnqtucvIAXmKLjWeFtjP9LbCVbxcoycPKLwUlbl8QWK35amJjBVEPD4TGglbf854kJ9TCDRBYta9i5Mroglon3UZbzFG+QTILygfNcbJMMv X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1498;2:wA7iJHR8NHV+lirGntUAEN6YQS/o7wiqmak1XQkoIKechsgGBBe500aFX5Ez4NoIXSQMZkdrBjQbTu7qGuuBzkv1PYk44C8noQwbTq2qTEywKImSFu7gnQH2c3XDUs+6iULQGbieskLz/Flyd6I8xa1P14alcH8OYgjxJ88A9WGo22jyx5G7CuDdRsJbRS7m;3:MOsLA9H9pqPyWa6R72y3v4Ap+qJAM2jOZQ1eyLc8gUMKG+OsmbkJu8zQk3haFIxvQPXAceSQUb9Klgs5OO2rXe+W9QPrZeMD/pJqqQ/P6QmLLtLbf3FeftN08kH3A/FadntkqVmxrvFw4CcS4DhJOZx6PDtmHS0I/p6uLghWAb/2KI642MnZqQDxzNtARl0yxBtfb0CHUefvScAEzwnjXXOoom9+xVpkOWD+fGIgu01KmevcoHi/8InBHIbfJpaC X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(3001016);SRVR:BY1PR03MB1498; X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1498;25:4sT8ItECzMEA89tTQVPjlQsOs4hs3/sbSIxhPMpPeSlGuGjvHI7ozVrkHT39X847NO6ky6+B7770IHbvtUq3gJ0GE4F3qMiMzpKxpSFKhBNlbw1V7/llOfRuOmn8YfE8YjQnLxGIy5rXZQMjp+v1G46H3N07Ybr8DNgwUibFemTAGGy2+X4460iph8kxiyK+gbizvxVacWW4Ow8DoiWMHZC8DQDk8IwDpDJr/K6zBxrQDsuHgg9be4PrpdLXverKhzBC2iAVGFUvVqaEgjQj77M2Xs+08eRujxUZDNQSUS2tInmM7Y5boqcLT3QBAv5sM2nFKitXID9V5WhRBlzZzey4/Lv6FiWI5pWuOoNdmug1Q/Nev7R7i2maE2D8UAGu/098PQubP70q6/bgGK6g3fhggll4lTLr6u2WjRIpStSK+ZuI2cv0LpHU9FkZxAEprUpEJHsWAmaVWGw/jdSpcDRjGn9IA9xS2Ij+d46CEtyg5yZXTrGhvgyWFOfPCEqEXhBzT2CC6PlpQRdIJfsmAw==;20:PYGHakH3bMjQqp5JuRC6g4V5rEn/NsyM1ca0WAF/fgW6FV0UyPBO3P+nOUh7UMhpw/qophA6Hyk67Uh0NULWvmh05Xwl53DwGBgdDGHCOi7ftWjptp/Pz7RuM5lSoz1d2ZzeI03LB5VJZbbyFaeBJOZO1glwdwKmCv0YfP/JGIA= X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1498;4:Df4FUQlNgUMBfCAmGtYGh/VsdKdF9pa6MTZ2HNzoOKbsveiRSDk7NNAIQ/IrAz6VjzFgu1rBev24Ulo1sCoC0c4uzsbt+Eh6xZBxxsOOrn3ixzXgtW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nostics: 1;BY1PR03MB1498;5:cIWUSOfpFk+E8Vu8vhyUPzol0Qvig5Z8ccTU8QfiRN8uESOgcB7jMqTptbnSgxAdeEZUgpcpd5EV6zJ766VlrgtO7AVzQ9L352Ybup9NShYTp7tRyo5yXe2qtM/YtXdVjSZtWbpZ3d95cvbEOves1Q==;24:7YPJJquhnZaK6TSf9rLw9D18r7D/p1Nn4sXEUaF69nHIr9t+Tr+8bYHb7EM+ekvgvyxrxA2C4gAtMVM6I8ptG5ryLH77/OvCy3MZtuOk9p8=;20:DplEDb+81lPQqwehkhw3ps00yPyFkt3DpUXHvaGHAJDyx749kHpj2W8iN2N/78+6n8V+/uQymYAdox7lexQvv69bdcVCB0PgR0gPPZhSJ0WpYkc4GeS/GbnRgcybRhbF1tsL7NYgROuaukSVbxVzwa88x+TPb5K/Jj/7li2f4qQ= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2016 15:58:09.2744 (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: BY1PR03MB1498 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1348 Lines: 42 From: Thor Thayer In preparation for the Arria10 peripheral ECCs, the ECC Enable mask is used in place of hard coded masks in the check dependency functions. Signed-off-by: Thor Thayer --- v3: This change added. --- drivers/edac/altera_edac.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index e20a045..0dbfa47 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -859,7 +859,9 @@ static void ocram_free_mem(void *p, size_t size, void *other) static int altr_ocram_check_deps(struct altr_edac_device_dev *device) { void __iomem *base = device->base; - if (readl(base) & ALTR_OCR_ECC_EN) + const struct edac_device_prv_data *prv = device->data; + + if (readl(base) & prv->ecc_enable_mask) return 0; edac_printk(KERN_ERR, EDAC_DEVICE, @@ -926,7 +928,10 @@ static void l2_free_mem(void *p, size_t size, void *other) static int altr_l2_check_deps(struct altr_edac_device_dev *device) { void __iomem *base = device->base; - if (readl(base) & ALTR_L2_ECC_EN) + const struct edac_device_prv_data *prv = device->data; + + if ((readl(base) & prv->ecc_enable_mask) == + prv->ecc_enable_mask) return 0; edac_printk(KERN_ERR, EDAC_DEVICE, -- 1.7.9.5