Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933313AbcDYRtC (ORCPT ); Mon, 25 Apr 2016 13:49:02 -0400 Received: from mail-bn1on0086.outbound.protection.outlook.com ([157.56.110.86]:7386 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754895AbcDYRsB (ORCPT ); Mon, 25 Apr 2016 13:48:01 -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 3/7] EDAC, altera: Move Arria10 IRQ function Date: Mon, 25 Apr 2016 12:52:44 -0500 Message-ID: <1461606768-14404-4-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1461606768-14404-1-git-send-email-tthayer@opensource.altera.com> References: <1461606768-14404-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: BLUPR05CA0052.namprd05.prod.outlook.com (10.141.20.22) To BLUPR03MB1476.namprd03.prod.outlook.com (10.163.81.18) X-MS-Office365-Filtering-Correlation-Id: 32142dd9-fce9-4158-43a2-08d36d31b981 X-Microsoft-Exchange-Diagnostics-untrusted: 1;BLUPR03MB1476;2:2DvtPcvMfuStK5eN4Ku97+3iOzDlGln5lsPUsXBGJSVfklDTzHcUXnlAAHeVIk0XNlv/CO3baExwNrJ3sZX/eERZTFic5UqFITaH3stWsHKHXEMMFpoppOcgjS9p7GAAewgGW03sIZFNU776UZSwncD/Lixfs3WZRVvaZzKU1xmuvpWTO9mOMrciH10KdMwu;3:bBMwmbmelqKFFnEfwH/Tmz0OwJGRSU+U4dVOIB3QRYDrCER4Jb7eyNxmultlyL8/eTju0m+c0nePdK1iWTRKzQjdrxiY+hIy79iB2u2VbJjCHT3CjbruSjeJ9Vvpm9aH;25:MshsNaILsTIB6e9pZqxUeZCuQpIcJmeg7Zm2kTVEsVlE2r8/2N3S0pXXBps2MA3RJLEiltr3DpabJAmLCfX0QSVJQzDt6i7uxhVLVKHq6+qDFAItF7SXnZFQ7FSVsQjwo/CrBlkDBHW+XslwY7IuV1YR54reXT2How2gOymAgoPK58/HMjeOLE2tveXveeBqiAZLFsoSZe6pu6rhOtdFtIdP1Aijxg2fcZJskK0qG5ttv4AfcoQKy0CcaQRaJOBZvrRvu2I4jjmqSg5t7xvdzk089ZmtgH6DNvJeVhClLOVyrgJ/G4x6hbswybHjoGPy9JFKQqWOQc2RHvdxSmRXmg==;20:xLLL7R7zOkEDGP1B79GBe5ELgFnTgzijg7QMxdx++YytnOdzhfG5qjUddNQo7Ac1SJQYvEhOH1NoMbULh/Ujq5NkQQVmzjbmaR97mJEElia8JWcBLLMy/vdt6f+yIPC0fg/l5SJpRslXjlXoWSZ42lzZXKRhcTTAzkBjhfJnwiA= X-Microsoft-Antispam-Untrusted: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1476; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(9101521026)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026);SRVR:BLUPR03MB1476;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1476;BCL:0;PCL:0;RULEID:(9101521069)(601004)(2401047)(13015025)(13017025)(13024025)(13023025)(5005006)(13018025)(8121501046)(3002001)(10201501046)(6055026);SRVR:CO2PR03MB2280;BCL:0;PCL:0;RULEID:;SRVR:CO2PR03MB2280; X-Microsoft-Exchange-Diagnostics-untrusted: 1;BLUPR03MB1476;4:tW/OaZTNbwlMMvYP80hkB7U3mNs+HX6vV9odNwxM4ghxh2rArDry0BrOb4SvZ94gHX6HNEAzGL2UqIbEGZ9imHhEfqyoxx2WWRC0PfYGe5cC/RciQ9C11jo8U0ZApIDVsGO4WA1xGNu/UJJuk1Z8qPzh+O1NyaapC1em4wF1/lQSGgXTHNtfs+RzN4vKYEBm6ptsg372emeSMpK8Q6sXtvKqeKoEp0z7vUip9eHiESA2KlbAb5vnVm70Yh3ZmzBOSZmQsvHFsSdDlsxtVV7ajEF453ZHyPteDO1JnZZaY63FHR11cXFbdWl9q5j2kDdNwPOUTXTKi7YidK+3Uom8VMc99fpVocQ4pJcVH6oma+Q4W+3ezEuDtyS7leiKAQykM3sI5QxFbpcTAs2KSzk1hVve3fJIDT/TosnbRVLI3wY= X-Forefront-PRVS: 0923977CCA X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6049001)(4326007)(2876002)(77096005)(2906002)(5004730100002)(42186005)(86362001)(48376002)(229853001)(5001770100001)(66066001)(3846002)(6116002)(1096002)(189998001)(2950100001)(19580405001)(19580395003)(586003)(92566002)(107886002)(5008740100001)(50986999)(33646002)(4001430100002)(86152002)(5003940100001)(81166005)(2201001)(47776003)(76176999)(921003)(4720700001)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR03MB1476;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;BLUPR03MB1476;23:TKAstN6NLZ0LEdSG6w+Sh79TanbnedUzXFwcfnfUQ?= =?us-ascii?Q?XGYX1j/JpBinFMiRMaz1Hmime1R0K+s2LPhdw5hslh8rh+UXv1r/5Y2S/usG?= =?us-ascii?Q?tvnx2sTXvYacNet/9DAD1pV/DnXBt7NnorhFCuF7ulHMcmYED8arNap0DtAD?= =?us-ascii?Q?OLzOPGdU9FgQGM5z+DeoMxvEXHvHJDxW/0uIpgSible+bEZitJ/P+vjnw/iq?= =?us-ascii?Q?zbutwOK0r0bvL4J0yGK77LWjKM8qoGbjCPujSSqBxSMsP38TNOxAgY8HYO+A?= =?us-ascii?Q?CcCqNqrOfsD0y/CDyE28SrDktltV2pG9KvEnh27OnMpHb9xvF9GIBdNQwJxz?= =?us-ascii?Q?FbofUstTLPi4hlkKnfUf2puzdto0U2RQ5FrO7n0lLJoxdBCSbjEX0S8jEPws?= =?us-ascii?Q?c21zk7RQ6Pz5RdpxXNgjDMMWRh1jT55KglgosL4m7skhSCbQKAOripFAEOWp?= =?us-ascii?Q?FUiBJK5thNgNLSjj0eWchKIzPGnAid4UaRfsrWfFCmjMWIt3uq4Ue0TDFZNS?= =?us-ascii?Q?X/zAT5NtHNvAcFuCOcmn2feYG3xHmOV7Q/AFmBfXV+v03r5kIug6qDMJ8hhw?= =?us-ascii?Q?z7oL03QGDP2lANhVkTlCEn5pLnW5IpT2c5d8rE+T8io8pDz+DxUgzkSJpCuv?= =?us-ascii?Q?JJzO3AFJqco4i9QFjCewcz0qGkGKK57DCyBDIaNCR1VDWveWXyPQHQ+ZBIuL?= =?us-ascii?Q?3E0UdwdHENhWev+pBaBbRyPiU9fNHGh6uMyRruE+yAOxSxqDJqkZr7hMJfWH?= =?us-ascii?Q?MYhn4nnCrIR+HqXvs6isHWhlkpy2nEhYrSIA5jHjGeE1bbpWp+Bwe6fWhGsX?= =?us-ascii?Q?lM0JK13euuEE2waQIxwPhsBwJ+WNsRj0oqMGX3q2HuTcF3tGcZIn1sBWgU/9?= =?us-ascii?Q?VzRxrXjSbVK0AxvCif1lYYdo5f+onaKn1rCBCCW4TcsKKMIUHzvWS3J9S/DD?= =?us-ascii?Q?2T012hWMtZBOYqIjub3Wv7N+9TK1qfIsE4SxZpk+yvtXXEsh6U00xNFRqkGb?= =?us-ascii?Q?R2hYMBIxiSgMJLN2qdw917W?= X-Microsoft-Exchange-Diagnostics-untrusted: 1;BLUPR03MB1476;5:P8H15CU4EVMwo/PW0FywC4lu30Uads8ydreuSryMqGV4j3Cb6m1Mj1zT5MdJ1aRYS38+t4Xvq/w8CPB5tYs9QhqnyX4hy58nG30R70UV3E/NHiGsaCMKiiG0sAlxzBcwgrD3WGtmEsPwTNUyfFRvW9zlNtkTqO5FBQRA56aGr5PHYc+Be5O179gzdwqJNGdH;24:48Clk9B9jpbvbiDnEQMFw5LyWOmnrjCGof0AxkIGepzsirOZwrS1guUJBnbTYnYxoc4fmKNXx1SorughK5ItwCPlGfRwUiIiMAAYE1sKjX8=;7:GJ5O1/l5gf6/IBmk3KQyGjspd+oSPvybERKFfkPeh/4FnfozqylPV1KZ/7csRLICgHqvgJQBF6X7WjGrVv8DdvTMH8/+/6CtIDM3hFwr5MHeEZrffxouBy/1QiZ560z1FpXnwPesBmjaefraKDJGYNlZ0EVcD/6MynmHD4odP7irZKRjTnSrCtiv7odwq3xjKJZTHTJsA3N6MpH7wBj9FW/a6iFwBrUodgLgbHGazN4=;20:0pbuirImhrQIu5IFeqE6lrc4EqhcLA81+vFtrrv3YDhpTZm1/dDcVeU4MOnlNUd8Ut/aL8d7yT59gLoBPqXSTAqG5MBlkcXh8SuLu3K8hFII0XZ0dVe3FdmnclrDRH2X0YbYIYzS6r6foy71qhSFrtjEvwzSiCBmQvda95ribDc= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1476 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11FD029.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.236;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(956001)(107886002)(229853001)(66066001)(81166005)(33646002)(92566002)(106466001)(48376002)(11100500001)(86362001)(5001770100001)(77096005)(105606002)(189998001)(2950100001)(1220700001)(6806005)(1096002)(6116002)(586003)(76176999)(86152002)(4326007)(2201001)(50986999)(3846002)(47776003)(3720700001)(5004730100002)(5008740100001)(87936001)(2906002)(2876002)(19580395003)(19580405001)(85426001)(5003940100001)(16796002)(4001430100002)(7099028)(921003)(4720700001)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR03MB2280;H:sj-itexedge04.altera.priv.altera.com;FPR:;SPF:Fail;MLV:sfv;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD029;1:Exxi7AdUds9lbkcqk81q119LShVlMNwPIyVF2UHm60/EZU8NVzj1BKkN+iQV6dw1dhNEEOy/ESeUdPSoK1r8fnexFCoI23gYpVyaVbpu46HM3nUrwjvqytw374f+n3rIJCSN7r+T8XeIu8a0RvwoaaLGhICyTIktAttBOVExPhfmcSPNpNt0DaaUuR1mlApzVZ0UxgmvZcL7hgw4+sxwkZwfCBU1ibhKuEuujQxwzK4mVFz88ivvhH5KAJua2OdkaxRx+lpYhYJFnvJr41QFXY3ncje8zMeJgurpi1SDox8e0E0kipyTF7Y5IQAudsFesBbSt8UM0P9FsAJShLm97IlZYFyvW40N81T9ziMAAFgUJ3By0Ya+tXJ/sidWLFkpV1VaD9rJ0NAr4Lu6fQ6ZHXkxLrc04PEMbVoWntYBT38ftnGN4IGL57TstqpzEwIm7bLZKeVBKd+3LfEZaTSzlKfKudzd87o5sbUJbsfKu+hz0q/viTvknxa1M1hPYjCf/aqbf120PK4LbsvJu8k7/M7KLYvFTgpoPsMWwZ4UBpswTLyYVYAcfRpftfad5Xh3 X-Microsoft-Exchange-Diagnostics: 1;CO2PR03MB2280;2:3gS1dH1URekjQL0I6N1CehI7FWvjHAWIMQCapgh/4hV1I4FspvlNjPDQc7bmv2FWuKNp+bVWmCnIVetXqtpzEdym+yStmHvX6LSIStV4fxrf8f8JXYwP7vJWoeCprZfaz8AkaaF1tNG7QYX4ToSLQBNEcnYFsrNr86rwWM8tNVYlnQHfHrpTneKXr7t2x8Zs;3:ToNgI22/yTBmazFGir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za7JwF6bmrYN8H+LaZduMNtnEMZQbbC2hJ0dYjqOrWAHiJ0E96x86A34QyHqwRYk+Rv8eipD1p7Xihrrr1xE773kPYCTEP0ZbfgX2jBNd516U0/mqdG/z3sOmoS0XA7mxhuTI0kmV+2ERX35Mtr41b6eRmICYCfpYpgzpWsohcXhEJkrpN2Sc9xW+p4xI+IAcu0IG2gcteilKA2E3Cutc/r/fmQ9471miRu3CjYyReiqaFbDjNGFd4y4Zmq4xhP49Vj/i/0yyfvYoj6BQfVPd0lE3f01Cx9BloFBR1vU1w/scJ+iwQFv7X X-Forefront-PRVS: 0923977CCA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR03MB2280;23:iFFKKP/Z40Q67bIWazr01/qGEZL96y1QpALhhR+HG?= =?us-ascii?Q?RLz98qlo+L3heZvj5+RbD8MYsOa76a4IUH+14kDAe7owKrVXULWfOCXVeY5K?= =?us-ascii?Q?murCtVhTyYh5PSdyx0L7P7UMwl0ME4Pc2fgV5LyrOyTWJHELxUOWXCrY4Edu?= =?us-ascii?Q?ZqffvV5GwfuUCm2Cr4gPPa9hOJITQuyjoqU2gH7KFyiUvEibjWlk8MbUfYki?= =?us-ascii?Q?firKZLhFnUPUIb298TFUl/jgUVVpe/0KRvTBlVhfUgWt35Ngf2t/ey6K9kyc?= =?us-ascii?Q?kY4KI/f2w2/AsodZBxTxY4ed3x7FjuVsBCBLB0LHwydUzh+93iOvUwQTW6lU?= =?us-ascii?Q?I9HhGIEq/LTtR/YCyAKKVUqIwbt5IHsduMmLK1dXjOo4wDSfxNVqAL1k5TbU?= =?us-ascii?Q?nuJaAmy9RSL20OHmCkn2LCQ4n3FQvnLaaJpcNpxoBdN2BjBaf/YsIaqczteC?= =?us-ascii?Q?zbDcb1pE1IeH7llY3m6IC0ueteySS68tIXVyhReVfdMQm07ueXN3rnlj4nAd?= =?us-ascii?Q?ODUyUwVIo18oe3xIZgGtWMnw/WuKZzzysA6FDUmKdwl+eAXiq8ImIDALF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ZqXzYNLVGy+Bxtando/aqr7ZLorQqw5JECuzrxPC9V5NFVSYBaqKZXnd;24:Nr3Il58UZkETldQtiBAPyhU4DZdAZmf7DONdlQczZ3RNOrh/58Ly1Wr2KibZX1yqr3Y0igVfDoXI3Ss3bdA5fUVjkrIkRs2+8Ojt8Oj1ioc=;7:7J67TZR4TI1UZcg7k6wz+8YZMJQpUpNTOogw77wpD54PWNODt42Ldqkej/3GcR9XtNd8Lv8npu6phBqdCt1ySpGxj8UYgpkkPf3BtVjhKAmh8+27okdegIvBj2BqTIMhzzjesgNQyB0Ln/tkbPNhVgmo7uWSK08jxQvW8RDc9xWFrmscsrIU/WiHUqIsboTac8wiM2ZN/PI8td+dxunIPA==;20:B3OjnEhruyknUKrx1JW7fyYniMoJ2U+5WLsNCVBQZL7I0s7d8DIDwdv54b1PTMZZQo7lRHN1se2sJFOSEsP6RrOoIO2/Wb0ZhD++jZP6p42XtW2cmLbObQMaEkbN24tk94K2n7zD89O5WB0Qy+FMf9zHXYWMZPd7tzRkvOFOkb0= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2016 17:47:51.8865 (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: CO2PR03MB2280 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3017 Lines: 89 From: Thor Thayer In preparation for additional memory module ECCs, the IRQ and check_deps() functions are being made available to all the memory buffers. Move it outside of the OCRAM only area. Signed-off-by: Thor Thayer --- v2 New patch. Move shared functions outside OCRAM only area. --- drivers/edac/altera_edac.c | 48 +++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index d4afecc..dc09627 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -825,9 +825,9 @@ static struct platform_driver altr_edac_device_driver = { }; module_platform_driver(altr_edac_device_driver); -/*********************** OCRAM EDAC Device Functions *********************/ +/*********************** Arria10 Shared ECC Functions ********************/ -#ifdef CONFIG_EDAC_ALTERA_OCRAM +#if defined(CONFIG_EDAC_ALTERA_OCRAM) || defined(CONFIG_EDAC_ALTERA_ETHERNET) /* * Test for memory's ECC dependencies upon entry because platform specific * startup should have initialized the memory and enabled the ECC. @@ -848,6 +848,31 @@ static int altr_check_ecc_deps(struct altr_edac_device_dev *device) return -ENODEV; } +static irqreturn_t altr_edac_a10_ecc_irq(struct altr_edac_device_dev *dci, + bool sberr) +{ + void __iomem *base = dci->base; + + if (sberr) { + writel(ALTR_A10_ECC_SERRPENA, + base + ALTR_A10_ECC_INTSTAT_OFST); + edac_device_handle_ce(dci->edac_dev, 0, 0, dci->edac_dev_name); + } else { + writel(ALTR_A10_ECC_DERRPENA, + base + ALTR_A10_ECC_INTSTAT_OFST); + edac_device_handle_ue(dci->edac_dev, 0, 0, dci->edac_dev_name); + if (dci->data->panic) + panic("\nEDAC:ECC_DEVICE[Uncorrectable errors]\n"); + } + return IRQ_HANDLED; +} + +#endif /* CONFIG_EDAC_ALTERA_OCRAM || CONFIG_EDAC_ALTERA_ETHERNET */ + +/*********************** OCRAM EDAC Device Functions *********************/ + +#ifdef CONFIG_EDAC_ALTERA_OCRAM + static void *ocram_alloc_mem(size_t size, void **other) { struct device_node *np; @@ -882,25 +907,6 @@ static void ocram_free_mem(void *p, size_t size, void *other) gen_pool_free((struct gen_pool *)other, (u32)p, size); } -static irqreturn_t altr_edac_a10_ecc_irq(struct altr_edac_device_dev *dci, - bool sberr) -{ - void __iomem *base = dci->base; - - if (sberr) { - writel(ALTR_A10_ECC_SERRPENA, - base + ALTR_A10_ECC_INTSTAT_OFST); - edac_device_handle_ce(dci->edac_dev, 0, 0, dci->edac_dev_name); - } else { - writel(ALTR_A10_ECC_DERRPENA, - base + ALTR_A10_ECC_INTSTAT_OFST); - edac_device_handle_ue(dci->edac_dev, 0, 0, dci->edac_dev_name); - if (dci->data->panic) - panic("\nEDAC:ECC_DEVICE[Uncorrectable errors]\n"); - } - return IRQ_HANDLED; -} - const struct edac_device_prv_data ocramecc_data = { .setup = altr_check_ecc_deps, .ce_clear_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_SERR), -- 1.7.9.5