Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758041AbcCaSoM (ORCPT ); Thu, 31 Mar 2016 14:44:12 -0400 Received: from mail-by2on0099.outbound.protection.outlook.com ([207.46.100.99]:23358 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752462AbcCaSoC (ORCPT ); Thu, 31 Mar 2016 14:44:02 -0400 Authentication-Results: spf=fail (sender IP is 66.35.236.236) 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 1/7] EDAC, altera: New file operations for Arria10 ECC modules Date: Thu, 31 Mar 2016 13:48:01 -0500 Message-ID: <1459450087-24792-2-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: c1e9a003-6566-495c-8632-08d359946bed X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1483;2:zQrp7xYBEjIQMdNuZClhu2/25c5CHAQLn6BhEzbjHPmA8bjedWds5wsW/e+M7SYYCk2iW3Q7njpNhC2YT5FX8+RSjhm1J8UCv5DK+hcbUCNIGbw87QqCxPBZpJrqAGGJPrVoDqwHxczlOoO20Tk2CHeWVkzaTGNDCNnIjIAgeZtDk+xUCOuP5HNU2wB3zSoa;3:yyXNhimiO/DKUFPkRiCtJKPblI7X7NzekV259K4xPcsd+f59hUzyGT/4Zagc8vg/oC5OAZCavLeiQYypIdF29XQ2MeQ5kqfxJOZ/5pDLDfPSkHA5BO0D1F1NKdCnt6Ha;25:T9cmFP6CeLkmV6/gZnk/Gq/VnmAQcWPTCT4E6fRQBVUEPA6DPqamwGmGvdJIY96VjyeogCCIVDbDJZ8lIueKa0F2QspfZUFeyTl9dCn8OlAau+Xu9hcxxMNpW/HSMNNfXeAJpzzcmZRD3Hd/Lwx7jTj/Fdj9NvyumlaOKvvAGDjZTcfr39xK+vfvg94Djef720UF3FPN1qdvz/EDgDy9u0DT9P99ASuWqpfp/yLUoi/UCiha1wfdhxDiyv7h5yklWoWuNWV9WEbcA98NuxjoQT9UrWsL/WvbNZlCOLjzGHy3TDKpY0VChM9am/VwQAmoSHqQwNWyptp3m34IVaY7X8mnliNozIiA9erGQqoLfBM=;20:va7anZkcNe3sq9hczhnjCNrUoVpH8fF+scyrp1h3JxOyKFlsz/aMQ6I/LEoRBxk95Bp4FBFUBqomzVOBz879EDlmQhi4Q5vArGG9uJ1Vb9nUMOC+7SznUv2q1uM2qjFV/dpY6YLEVfllBjhuniczbk+5VhOyaYayTP42TMtAy48= 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)(13023025)(5005006)(13017025)(13018025)(8121501046)(13015025)(13024025)(10201501046)(3002001);SRVR:DM2PR0301MB1296;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1296; X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1483;4:o++OiyKkDZT4+Brxg3C3gqyX8AN7nJxC3/ciiOPBVeHsSrDSqREmEvPOA4sHc0/VPbmj8AodVAkR5uctLpQGAXk4/Kzq9GtoaBwz79S8Qx2PSLXCj+kgGYYO7MZJzb6kCsBE04YZ3JaRYPPM9xQbxcJ4ZiV51HKHOfz5TH/MIxmdkfHnORcVJ/qSlJcSYhXmqYX/GpwHPmwptPq3TPLDMQqWhoRGEq4dn0PaerPYE0RcvmKE92o+WLUW1oSjhzNnzjbA0idqT7fJnoT3p7x4zqsm9P4GdUWd0/Ry7es0LUMvo/Bf3++gWGhguLcdbfEl7LDCejd3Ve02DCsVVjPCmMQjA8YfrF2J83lkIvtvAM5Qmp8dNudqs95PLaBXk40R X-Forefront-PRVS: 0898A6E028 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4630300001)(979002)(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)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR03MB1483;H:tthayer-HP-Z620-Ubuntu.137.57.187.33;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1;BY1PR03MB1483;23:jmBcHM7kln2YmuAN9FF/WIfwWXKbh62U4cu6Z2U7H?= =?us-ascii?Q?5NPWjRrvK438Tg+MqEa9GpCBIkPwOKh3ppWUEBmrFlsZ3C2n/rLElZieWVpj?= =?us-ascii?Q?r+CCBxcYmQSl4ql+tIpgolPE36bmz0ZBWg1LERtrxo4rSug54ex2L+hncvAU?= =?us-ascii?Q?n9q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Y34yYO/0tmeToll?= =?us-ascii?Q?8sf5GJudXcGUv2lXw9UgwPNifpaI+s7wX/MvsJUi+L65rned+PVDEehnMK2b?= =?us-ascii?Q?30Cr0QIcsorcfG3GPRkDH3WCMoKjHIsRJISSk/2V2SgCH+8KlyN4N3GVVbXQ?= =?us-ascii?Q?xzrSssGRBjddiU=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1483;5:P1WJ0/LvqV3d3//BGEcsLMf6NX3NYuGgVjj9J5LQdUNvoiaowTrxNmoFIBTgLmdbAoL76QBI9SdTTGqxjgYmUmYqzGMEsOJUWFBlRYGGZIo/+ZZwhAPqpbsdGfzrKKEnuVWt9kboZZwrMColhI/KzQ==;24:9O53ddrGCMPM18jQIEib0PmEc+5dq8B69GPz514XWwRvBu8ptaMsGNXnktFiNoev7wlkjp7dVqNDDykdcYac3GwgtWrQcE/eISaVxChUGwo=;20:c7VInSCU/MxTjAd1DQe0IrzwnfvTiBZTlUqDMAb/CdopEONCprFFpeSrwNTeL1ZD70IaIbdAXQ3NiwGggqfFFDqpBQ/3U6LBnNrABHM/svxplVZYi99Gaoq3ZzRpmWZKpXBVwPMN9dmFm20mR8/qV/Pm0TkzpNyDUrQ5CMejGy8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1483 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11FD038.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.236;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(979002)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(5008740100001)(50226001)(50986999)(76176999)(86152002)(3720700001)(105606002)(92566002)(4001430100002)(6806005)(48376002)(5004730100002)(85426001)(2201001)(86362001)(11100500001)(575784001)(81166005)(50466002)(956001)(2950100001)(586003)(4326007)(77096005)(19580395003)(19580405001)(66066001)(3846002)(2876002)(5001770100001)(6116002)(16796002)(47776003)(107886002)(33646002)(87936001)(189998001)(1096002)(1220700001)(106466001)(5003940100001)(2906002)(229853001)(7099028)(921003)(1121003)(4720700001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0301MB1296;H:sj-itexedge04.altera.priv.altera.com;FPR:;SPF:Fail;MLV:ovrnspm;MX:1;A:0;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD038;1:NKCwuSIgfKifhcChNdMAM+uWjqdH8xtJ+BQ5gmmJkaxAQatanskHbNR4SjGj7bVjunbMcZ+zfWkNrJn7wF33c8YvbtEEspNDy2lPC5DOVH5nzlCYvQ1WfaRV71go9W/THc/JCfXQ+dPKnxMcMsqd8OpYf5jPti5gOWA6SUPMbP7+7SWa7d7EN/+3+pzO9Nd6zkyXYyJxe7D4E8YbBz2uwv7tu4DIVsyrRjtfv9tyuH23KcCuBKO3LhSB/2Ryio+u+li7Q9IF/952UjfTay4ESBXlYF767C5dB96tysVV7tvTLEWcO+5Teffb63UtmDBicc6zTDNep0ItPUKuNKRiA/Kxb+K7rtLXTQFC3/lMfMaKRatmtnUH0hgmbfpnzRDIzeZmqyVQ9iMxTcxHPap9zhHuq81DJxdj8rezlUGtez/LrIh5WbYUMUfcJkqDaGB6t5odX0mxvGkWSx5xtrMlET78le9dS8kVs2xqp1tVxLk4+Sh4Ut40tSL1/DjgApJ5RkvUZQtuiH9rRFVxDL4JEQ== X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1296;2:DurIxvO+1QDfQkQVylo9i7gAvA5ErvxXjpUCZ0vcDVHkYFM5zGJ3j4UTgCfkLIt1Rg5OnpG6V5hBSPycsrGCLAe4XHtoMC+u1e+fsQVE18Vo0trH6LEm3rg363Ww+P11aBdZAVKo7RSrjPeKwzbHs8jAJ+YEgnsopmxv+lotUENv8CDU1tdLnO74Ov71tVB4;3:/Qwu00/3SL0NhWAQ/gNP3yz9PFc+vz/Xl3ELFBVD5n6NppG68helGwU5FcG9U8JuEK7Fo+BfwLn00bO5Ds3hACjQi78UZv81h4ZBwRZIa2HxXDPYg4peDbZoLNOXIEjtZiwdL4WhhVtSdOGa4z/ZNwsTkuKiCzHbNhvstn/6ZahmsEhUy8RsKImUniAPhvfba6V8tLx+svDDUZxIquPTKtqK0OmWVzJamozmSSEDQzpHYl2uEuWDAEjl6/FvCz47 X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(3001016);SRVR:DM2PR0301MB1296; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1296;25:qB2746vvgloLuHBfBJ6CZ0i2tbH1+l6TKDtGwwjbK6fO3pqKJPYBQHrcZ+ToyU/QmCH961VFogOL5nV2SA5PophLqmqdDr15U+6pnQxpEQlyiXF9nyfcBR2gcs2P+MJ4JJ88VL2wAe44MDXwaTuaOXMntGlEa+GeAcsAhUtTkvMcSe/meR+Nig5mu8zBjly04VQ6Rgu8dGXPivexB0m3WFMuwMt0yZX2OxqZy5T0xDSRothY+WvMQKhmbNXgJFNFcOJll/Fd9W69XUNU76x83PAdlRKvOkwVswau3YMVxNHaMU3hCKCiJj2tVpwse8KQjkqnFbtLsDyiNKQMCl1RgnvCtbvE73Ly+VTcUD20OXhl+BByWjmJzhMMAhBTos3fQaM2k/GL3/odtwuXNcKLJfNCXLxs1ztdCZpfDFquDEBXdmAybGTSCX5kodH+ui/i6rLI9PTpUymG+f2/KN721IpBomGu4iYyBls7OtsoSCQMS3Gd00ZaqgkN1/DErYchO/hF2GcT3SiKtQTCAyTz4bDFSaploIv9OIwMpZTOYYkefvibXzDDD2U5k3zVH90l0s2VdUCPXdBIKDtJufzRYZUkHu6upAurDeVqBBoL8NA=;20:ZrE7sra0aBSXLrRfBp8rDnSvlyCVQtAs8U3aoI4H8EV3KiOB2q9QWeownS3ySqBb7m0NGPA1CV9vpgnW9wtavJ0jZZzcEHEiwvjMXjv10isb7L6Vtwa5jgO5AHUu72AyQ84gfIUgyAtcvJ81BJqDSf9cDbYVCT1hhkrXvMQvWR0= X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1296;4:T3Rb0fvNfA2IWu0wafvs1rHB2u89dIheR6hlW3s/zween3SqkSd6ukCPwY6Ei055dC2O6p1Apr4feJz0tHHNrZiV6ZTnVDLptwALnEZrQvSJvZCxzw15hF/07cQX2vFjyuUW9A8sMrHAS68QPTKX3LzeIBx23mwKN+T9nvvHP980Vtvf42tVzN40beRaZfiscYJIviB3Tu813SbmENDL/MU+XPJjDTX578usbg6mlrX0PT6+NkZXma7M/OZrnksvDAb0LoWWSNmNquhuXLfy/dsGiONV8VIAXjRs/Xs1LsiqkbkD54HaHy8/gw7VWQ//GVBYN2YQlEnUiaIDQ/sovq20khbNoNut751UEALAphG5ItXIFVEtfyQeJzr86LxbHLsSoOqBONLfhDbwwvvcyVq/O/nDzFOgDxo2tKECjyJec3vfCpCNSVzfx406/ERk8ThVIeZzBh9e2XMsiAJ0Ww== X-Forefront-PRVS: 0898A6E028 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB1296;23:7udp2HG5463lQJxKDccEQ5gDPKF97W1ULg52ZV3?= =?us-ascii?Q?+c77awAJO5xb8OGXY9n81n+coNCOPXfkyxv7sDa1ynwMHixqzF9hHDG52c63?= =?us-ascii?Q?JpHw7ojNGTFsTkEN9U6XlL/DayNSKMqAaiyl//qm+fgf9vubzzJleeTCUdAK?= =?us-ascii?Q?MyGeAEz1V1LGfuynlyG7DHDAHx8eaEuxJNWre+oy2wOeD2P/YiVSTxKUNP6N?= =?us-ascii?Q?lOVq+/MEgDUo3re26QmVDNiIAqVG8wGXrw7wyhSh1w+WR/QnF1GBnYB+W7NJ?= =?us-ascii?Q?F5PNs9cEP4fpySUWiH1kKcZSBikCkr3PYXNbjdri5kM+BgfvSO4ApC2DMBLu?= =?us-ascii?Q?nhVVbWflzBmFr0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sMF+N/633UrUAiIPdlqFwYEHxXs9xGfKWGEEgd6d1/0lGMDLFcsmR1d89SmS?= =?us-ascii?Q?qPS3pUZqPVC2sjC2pHBFPfxtjoUVJLNW97H2tDq5+XSLacJktAl4TYDK5zCr?= =?us-ascii?Q?/XzyjWqBNz48ZJvoAS0kiP1sZfCoMGKrGkD831x1IeyABSrHkG/Lq2t7KtDm?= =?us-ascii?Q?2MjIPz8pW9T7OKavYaZSPCMhRjl7dsu4nreX8R3PQtxaIunp2ZfrD?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1296;5:VOBmlU4RlSh1cNpoNcb9MPZ2PYvySwcroov8VKHBp69NAvr5l1ysoxROu1D4+qCyLPWWYSYO1vrKY0xxUyKBJmohf/mJqW1BlJKeRfBDPUbbJ6My9yJb/MM/o5Cs9aS1xTlndVH8WI1uXbCyx6UJRQ==;24:OOAiAiwNBuZ6mcdPi/vA9qhcuWIOxeRIovisc0euGYCMwPR3wyOJyvsvM3DKyWg7OlbYc/yNC2tR9wAGp8i2fVK1UhGQ8tvLn5qqHC7Ikuo=;20:AB82BNNIpPvshrZ1qUgH1HusqNUB6bh4L4qWvlFoYPL5kwT0hZBLXo+Rp/OrYLwlUFJlUIKHVXTJyWT5aAwuxoxz8+0hoeweRvIXOY1Nv+FX8SLUjrso96FYNQWplkh4csayxUq0MYQxV5P3VLDzWW4EToci6Cj35RoIvqhvt9o= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2016 18:43:58.6700 (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.236];Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB1296 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2388 Lines: 68 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 --- v2: No change --- 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