Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754467AbcC3PXg (ORCPT ); Wed, 30 Mar 2016 11:23:36 -0400 Received: from mail-by2on0083.outbound.protection.outlook.com ([207.46.100.83]:14982 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752619AbcC3PX1 (ORCPT ); Wed, 30 Mar 2016 11:23:27 -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: [PATCH 1/7] EDAC, altera: New file operations for Arria10 ECC modules Date: Wed, 30 Mar 2016 10:27:42 -0500 Message-ID: <1459351668-14622-2-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1459351668-14622-1-git-send-email-tthayer@opensource.altera.com> References: <1459351668-14622-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: BLUPR11CA0019.namprd11.prod.outlook.com (10.141.240.29) To BN3PR03MB1480.namprd03.prod.outlook.com (10.163.35.143) X-MS-Office365-Filtering-Correlation-Id: 3447cc1b-41c9-4d01-5cfe-08d358af3bb7 X-Microsoft-Exchange-Diagnostics-untrusted: 1;BN3PR03MB1480;2:LnhT55JRri9jbj70DBr+FRQqxtewrt/o7UTihAZTxitc3zrpiix2SLThIFw/mJ9K8rHDTIS8OZEunBuTFO/Y6Vs4phT6F/tRIIXqp6tW0T2HAegl1IZF2QvgJFmZgCxWLE9SQ5EsrCjbxNXD73xpv6FzLoIuNBJvURHngGEp2IKvfvXvieWbUjU9v5zIVhrq;3:JwzlK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k2cJQxef343+ojCIRFTMKgt1++/PMLloJe9g6CwZ7HLOA75xefkSzGvRfU87v52LRROtnDfFVenXST2AMdJx1a7TuXORWmil/xZoCc8OS1NptmFn3oYWWptawqqOCICLFrv9VCq2wy5GPGL1wo3D8cq3kdQfJ3yhyuXoEgte3M8l5gnMXvCgIHUqk4fwkzzSdMZAQ4FDgaWdEyKDfVJN0UkPkixDhdO2If2W8QqJEE31Atfhu03LQCNGBD6ll/UMfvU0TlcFXyTRApSjXvUk588RZ/BgqTkwQiS1vcvhyPilOINaMFdOr4oAVR6tc4MhlSQKUYWUmsybSgWWQjxQW2RmoAtx914 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:BN3PR03MB1480;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1480;BCL:0;PCL:0;RULEID:(601004)(2401047)(13018025)(8121501046)(13015025)(13023025)(13024025)(13017025)(5005006)(3002001)(10201501046);SRVR:BY1PR0301MB1285;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1285; X-Forefront-PRVS: 08978A8F5C X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6049001)(107886002)(5004730100002)(5003940100001)(229853001)(50226001)(2876002)(81166005)(6116002)(1096002)(66066001)(3846002)(575784001)(189998001)(586003)(92566002)(76176999)(50986999)(86362001)(4001430100002)(33646002)(86152002)(2201001)(48376002)(50466002)(19580405001)(2950100001)(19580395003)(2906002)(42186005)(5008740100001)(4326007)(47776003)(77096005)(5001770100001)(921003)(1121003)(4720700001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR03MB1480;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;BN3PR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qeUifzBeSJUUT94/CH?= =?us-ascii?Q?rPgmNAbYzX6GUP/SUO/fzQ3um6nAwfhfxPGKR/wwWJ34HP56w0xtqfVD0NFO?= =?us-ascii?Q?doHFF4wKTp5OjQOTxGOvMMan4pLFemZtN+uWe/oUnzX+pvP0YsQzyGFL1GK3?= =?us-ascii?Q?Fb04F81T7xn5Q3oUNJw6H7Qp3P4tm8yKwD1h9DWzf0qUAjagDLTnlPXWam/w?= =?us-ascii?Q?WeSJM+38GU3AnWHUWpU1uFrDA5f?= X-Microsoft-Exchange-Diagnostics-untrusted: 1;BN3PR03MB1480;5:UY1Qv2Q09u45Sjk8XPWS5wD17oRaaKk9pgbbzCj1YqfBZHksEDmrJqdCabpTOtSCYC/eSam5fH4lRng76JkGc7KZNe+JKJLX257nAEcoUTSlRM5B9Rz+QwWrsvPcxAlecv9905nwDxurnZAguv2aAw==;24:PyYvYVPazlpe/DIkATPLMzsouc6GHDTY9J4hY+yTLk6Y7IMl+JleXyVeTeVRqJHtWzNcj5DCOATwcjwqehLwzS4Kqh4awV4ztmW6f7xws3Q=;20:8wiM4EUsqID/6WGALHnK9KJJ+35D1F9MmqC7QEv4qwlKC3j9ZanHoTAvFv5x919e7iv5FNsdWpKQrfpAEdVnoJGNraUaBm3qG4Q6S+0JALeU5vwKf2alwVQqcVVNTLfZ3aOz5lLMUm1RLVDvo0uTyF87+8eCOzmMNzBtcQPIk6o= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1480 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BY2FFO11FD036.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)(229853001)(1220700001)(5004730100002)(107886002)(6116002)(3846002)(1096002)(50466002)(586003)(2950100001)(5001770100001)(956001)(16796002)(2876002)(21840400001)(189998001)(50226001)(4001430100002)(86362001)(575784001)(77096005)(5008740100001)(19580405001)(105606002)(19580395003)(3720700001)(33646002)(47776003)(50986999)(86152002)(2201001)(85426001)(6806005)(4326007)(81166005)(48376002)(2906002)(106466001)(87936001)(66066001)(5003940100001)(11100500001)(92566002)(76176999)(7099028)(921003)(4720700001)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0301MB1285;H:sj-itexedge03.altera.priv.altera.com;FPR:;SPF:Fail;MLV:sfv;A:0;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD036;1:LfCCHUagDNlTUNkkNS7NfNJWAWzQT+7S5zSNJvFjjkyKAautwvfDjugzRVjM2Qo8fQZLZV5PV2p06CwKQ6X1wT3JttrVKRm3Anu1bDFouGmWA1GYIc2llovJnA3aYafCxCfgdn3aneuCVRmjnin8SDI5JQQtGxf8BCTeknom6rPM7HURzSYFx7DOvPIhyM0GGP98u8ET32zzPRlOM3QFLdgacDMZewZw+U2cVs/iXBcta38O/tmmY4AfiSnJJNHKSejj8Q/zlglD7GSq1aIjMD2hL38vgo2iDAGW+G3jJAx7shNm+0T8ULfPqzrUce20SvujUfOJr0fGwF0S8LozmY0+ou5bGZbohHt5LtEIkU4tj+cvl/9JOfmihJgJnx6D3PjGSmKOl9N4v/NljmcQvpJzAZRLKpyZr9Dr20rAdyUbNBnYtEmIOh/zf2AUnEOzBRgKUmymq3o0SFQ1f0W4Ztk7QUy3HijLaeO79ZMtv+/gVG+H32FhU4tjE5iIToGq X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1285;2:nTZE0HCYM0gz+GdnNzxYOhUP4+byj4MXJPwNQ4cDKpLl/6liuTdoVrOsUdyxxQC3NGey/vbqz7RTKtD0Wc68COBUuM9B4bql7dFtxcDm4YHIJGP3/FGEGQunKOZhAF3L1zEXtjFGy3OLfvIKmNjuVc/Co+eIEAb8XoySF6mihP8DcKXm/eQCWdJH7ZhSXQTz;3:gBzbdwl1Sd43H1KGF8IHAKYOnKkICmxG+AwM0uluKGvOFSXAjJObXNmDgX36hdDw4on2nbZhktnj8sF5VWRvDP4l+7h0LxKPItCJajJhqBMx3IP2pPUIi78XzBUVrUadisK+rJEWUJ9Z7V4xj/0a7eJpOmuovTfYLB9AOztk/A9f7pAHowJnBkI8UfzlcekYE3AMak4USMIvoniwK0eydpawY8DH2mdTUNzcy+68m4sWG/P4CrwXMbA0/PTJg+XY;25:muFQ2YDbSLQrwZEwWCm27GdCBbe3TDRY2XLBzp5ydGzALM3OHbOxo6/v+pRkfVcyEhLhShvHJAwNwJJdsKjQQ3saxNSMki71sSqIKJu9fvOPN4eK6keXfxt+nxS4b6cqwkIStlE1WBrmGuX/aenf8OsZuktDaQhdweTgisH94mCclDtD5tN14xs35aV0RV28g9suPJP0gusfDpp/iaU9qwPar/UBR21imSR9m3H7XCTtsGJDP8Us7po+wfxRcmRvvHbt15j8artHvbGqoPHSYUEmet9DzovoPx7BmXOIGqSBn+VRK4He9iFhSpy9ofIsEz/bNw9zKQz69XSYiAbpZmNvzcoCAAlUpghgW8IS/p0= X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(3001016);SRVR:BY1PR0301MB1285; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1285;20:tvmsBjivta3WA/Q/TmnLCC1SC/ZtqyGb1UZ8bdrqnlmm7KIw9IX0BQyF/b2/bGZHrPXHkcoYOgV1/BltCK2PCHxH7dbOMg6VUn7kuKtP0c2tq9OYyK3GM/kvH3haEBlYOCu9qY4gSY2bQz5CLQ+2Pwp3HD7pOMLsNtqsSN7hxjU=;4:iL6fMjr4M6r0Xc9SuaMzclD+eKciB6I2d6N5gpS6io6OVT1DStLvaQM1VGp4AAwlPcDdHL3e/bxyTwL/av75gixEVNkPZWdYvQXeU8yOqrj+z8UCCai2HtOappxyqGAGxytf+8ncj4C/7JvWvOtff5izK178h2rIRXc/oUYu3NzNnpdTzg7jhyIJTkzo1c7ohXxP+Odecnr045F1GC60S0Pn8MdmZan/DgedNGUYHeE/xC3Aa7EyRJiNcKXPt7nruJQK536jpSw+Y7oHW7deEg6m8pZSgjDkPD7jPiGRFzbLlpIK+BHb0PnXTuZkennNhjcbMuUFX7YqAPrzhWdmvwIeyDeiUf8kpLIeh7GlWsW/BEK1nDrYFcw9NpOdo4JmV38KCxhURJyaQFs87wgH4tYB4Cuv/960anTsubrqppa/cIsJ7M7AnFVbMYRPtTe2VyW8P3saGIzZdEgIZH5TsQ== X-Forefront-PRVS: 08978A8F5C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0301MB1285;23:DuCb6RD5CBTZ6IxBBQH5MIXyzfIOMMJcWKmZVy1?= =?us-ascii?Q?qBUj28RiYM1c+qc6aJlvscLdONiT6e9XysKBquQA0Jp8cwfiRa190YfKuzXR?= =?us-ascii?Q?I094YWu3Mm9xMTW6uLrV27aiGfKstbfGYVKH722AjPNIyKwkaF749wp1PsPn?= =?us-ascii?Q?Eosy2qUZe4j9EptxP6dUDB//zHaLSO++pjhHG8PpvtTHeCJJ5u409b1UFRsu?= =?us-ascii?Q?OMKOiczTJTUf+ZBs6L6plhED6cmttLBwyvASvIRDyoMoAEy1R0WdyS/CuUik?= =?us-ascii?Q?ph7OmnaOOJMpigck+8L7MttvGiK3ncUfyzRWwEXtFZZQ+VwivXwVdoDLZ33J?= =?us-ascii?Q?eHYLYQsLOMnxKjvujsydL+RVeAXyyIYZ6VZEiM9ThQMq+Pu+NsqTwunvTeVU?= =?us-ascii?Q?2g+m9VBuhU/D2d+ZvnxP8i6WoYhdKXxbXqWMVouxdl88GUe6+VqRqFamvlTQ?= =?us-ascii?Q?2G4qEHddBHymOLspZ2SEe4oEKL09DycXFN+BA5sasjR5EQ194o/mAukTAYah?= =?us-ascii?Q?imi/iSBBhzNWB6AKJ0E/vkaKDQeLVp4O+ad0rLoAREEMGMrJ4yTSajJQ1bg+?= =?us-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fQ9ZQ4RVH0DVZ44V4SeXIAKpSoxlaR5ivUuS/jY1l3hot29e+3u57ru9k89RdaGaF/IhbPTuCgbV1hMc9OC9lHKr4QZ0cDMj58vvDh0rKFAjxrKxVFEq27X8yUEVU//d4e8OOwRXE2w==;24:4i72tqAKk7Cc3GXe7qWDPzeHqsWwgk4RkRqo+5hDSoVzO6DvVOSoFHdd7RnKms+RT4V3eNJm+n8JS//Ug3xQyDOvPfjjFbn8WQRQ/xJqlmc=;20:bF0myYcNeJ0i2H0CXyoX9z5dTo68X+xVdGLDVlKRFP4RKA1h7vpyFLs9q/rSiDW4770XCTax/U1xuw5N0HYnx34ib8gWJ2EiGkXce0EQJ0I+J6s+kqlF+uWThTz57tIowPPx95WGswwpg0qGbWFD+I1i9+niOqdzzqdsjMHrEoo= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2016 15:23:23.1737 (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: BY1PR0301MB1285 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2370 Lines: 66 From: Thor Thayer In preparation for the Arria10 peripheral ECCs, new file operations are used because the Arria10 IRQ trigger mechanism is different than Cyclone5/Arria5 and Arria10 L2 cache. Add new pointer for file operations function to ecc data structure and point to current file operations function. Signed-off-by: Thor Thayer --- drivers/edac/altera_edac.c | 5 ++++- drivers/edac/altera_edac.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index 0afdc58..fb6fe56 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -668,7 +668,7 @@ static void altr_create_edacdev_dbgfs(struct edac_device_ctl_info *edac_dci, if (!edac_debugfs_create_file(priv->dbgfs_name, S_IWUSR, drvdata->debugfs_dir, edac_dci, - &altr_edac_device_inject_fops)) + priv->inject_fops)) debugfs_remove_recursive(drvdata->debugfs_dir); } @@ -886,6 +886,7 @@ const struct edac_device_prv_data ocramecc_data = { .ue_set_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_INJD), .set_err_ofst = ALTR_OCR_ECC_REG_OFFSET, .trig_alloc_sz = ALTR_TRIG_OCRAM_BYTE_SIZE, + .inject_fops = &altr_edac_device_inject_fops, }; #endif /* CONFIG_EDAC_ALTERA_OCRAM */ @@ -975,6 +976,7 @@ const struct edac_device_prv_data l2ecc_data = { .ue_set_mask = (ALTR_L2_ECC_EN | ALTR_L2_ECC_INJD), .set_err_ofst = ALTR_L2_ECC_REG_OFFSET, .trig_alloc_sz = ALTR_TRIG_L2C_BYTE_SIZE, + .inject_fops = &altr_edac_device_inject_fops, }; const struct edac_device_prv_data a10_l2ecc_data = { @@ -991,6 +993,7 @@ const struct edac_device_prv_data a10_l2ecc_data = { .set_err_ofst = ALTR_A10_L2_ECC_INJ_OFST, .ecc_irq_handler = altr_edac_a10_l2_irq, .trig_alloc_sz = ALTR_TRIG_L2C_BYTE_SIZE, + .inject_fops = &altr_edac_device_inject_fops, }; #endif /* CONFIG_EDAC_ALTERA_L2C */ diff --git a/drivers/edac/altera_edac.h b/drivers/edac/altera_edac.h index b0a17d0..c995388 100644 --- a/drivers/edac/altera_edac.h +++ b/drivers/edac/altera_edac.h @@ -262,6 +262,7 @@ struct edac_device_prv_data { irqreturn_t (*ecc_irq_handler)(struct altr_edac_device_dev *dci, bool sb); int trig_alloc_sz; + const struct file_operations *inject_fops; }; struct altr_edac_device_dev { -- 1.7.9.5