From patchwork Mon Jun 20 14:50:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tthayer@opensource.altera.com X-Patchwork-Id: 9187689 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C0974607D1 for ; Mon, 20 Jun 2016 14:49:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC3ED2787C for ; Mon, 20 Jun 2016 14:49:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0AD72793A; Mon, 20 Jun 2016 14:49:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 27339279E0 for ; Mon, 20 Jun 2016 14:49:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bF0UV-0000F9-6B; Mon, 20 Jun 2016 14:47:55 +0000 Received: from mail-bl2on0059.outbound.protection.outlook.com ([65.55.169.59] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bF0TM-0007YP-BD for linux-arm-kernel@lists.infradead.org; Mon, 20 Jun 2016 14:46:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GcMxZh31fKK+3KvXrEFT99uz0r5yOd4FyPsVVYf0toI=; b=X92Ebim/EGFEJS9UYvQm54NijBdrXWatxcws2u7jym0nU8wbpQIj+JZs4gts283nxQJyHtaSUBejlfEvVOEG5Eyr8f9+weDICmhoFTpMSDEOGLy2w+tdEqvM/ihGp2iQqp7/LB/mSfoZ96UWNWYx/VEZoXJgm4H4Zl+NwQHrmYY= Received: from DM2PR03CA0039.namprd03.prod.outlook.com (10.141.96.38) by CY1PR0301MB1546.namprd03.prod.outlook.com (10.162.165.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Mon, 20 Jun 2016 14:46:21 +0000 Received: from BL2FFO11FD043.protection.gbl (2a01:111:f400:7c09::103) by DM2PR03CA0039.outlook.office365.com (2a01:111:e400:2428::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12 via Frontend Transport; Mon, 20 Jun 2016 14:46:21 +0000 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; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.227 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.227; helo=sj-itexedge03.altera.priv.altera.com; Received: from sj-itexedge03.altera.priv.altera.com (66.35.236.227) by BL2FFO11FD043.mail.protection.outlook.com (10.173.161.139) with Microsoft SMTP Server (TLS) id 15.1.511.7 via Frontend Transport; Mon, 20 Jun 2016 14:46:20 +0000 Received: from na01-bn1-obe.outbound.protection.outlook.com (207.46.163.143) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 20 Jun 2016 07:46:01 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GcMxZh31fKK+3KvXrEFT99uz0r5yOd4FyPsVVYf0toI=; b=X92Ebim/EGFEJS9UYvQm54NijBdrXWatxcws2u7jym0nU8wbpQIj+JZs4gts283nxQJyHtaSUBejlfEvVOEG5Eyr8f9+weDICmhoFTpMSDEOGLy2w+tdEqvM/ihGp2iQqp7/LB/mSfoZ96UWNWYx/VEZoXJgm4H4Zl+NwQHrmYY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tthayer@opensource.altera.com; Received: from tthayer-HP-Z620-Ubuntu.137.57.187.33 (64.129.157.38) by BN3PR03MB1478.namprd03.prod.outlook.com (10.163.35.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Mon, 20 Jun 2016 14:46:00 +0000 From: To: , , , , , , , , , , Subject: [PATCHv4 3/7] EDAC, altera: Share Arria10 check_deps & IRQ functions Date: Mon, 20 Jun 2016 09:50:48 -0500 Message-ID: <1466434252-26107-4-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1466434252-26107-1-git-send-email-tthayer@opensource.altera.com> References: <1466434252-26107-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: SN1PR0501CA0022.namprd05.prod.outlook.com (10.163.126.160) To BN3PR03MB1478.namprd03.prod.outlook.com (10.163.35.141) X-MS-Office365-Filtering-Correlation-Id: 34accdd4-e601-4f3c-71e2-08d39919a4ce X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1478; 2:Qr4ihWG+z7nh7RjLPDZ9ISvSy2zkNCAlWwSiWYMQBpLT5w/0npZliPxbdCdQ3+yAABirfQbduJaNXW5yRlxUa8/HQBotqPtVkDd3Bkkup9gFgyW1pc+fmjuoljYCo0mUv4BopeTaBj+G+K9hNSA0e/TsqHFEJNUex2hIv57ySMTAoB4G21iDciW1zkD1O4uz; 3:tyzFs2W/sQLYRd1E5M29CcG6Noas1kr3ysG+ZJoxtRJrVtac3nmL3r09bZfZlq74n2sefy65SMlaEOGlLUF5h/oT9Pi2+fMJW/ILFLWUmPFMnP+eKRvbMqGQW55quXEt X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1478; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1478; 25:49gr4ZY0ji26pIJFH34078U3mLti5ydT2Wz7HMZALjIk+PscYRWStRu14QeiB8bllM/SaSjVjdywyhS+ERmQSVZyD4YOd50MTZCP/hSycsekc1XZreKxt8GfW5cCO5aeVn0i/N2/AF0nWJDcTRmWg7wK9e4jZv5BmrMOWGmh5ZfWlzrbKyQi2LXZCv3NR2MZfBFa488JwVWz/2WvK0AS4/OYLVm/PW3XjU3pONqKYj0Cj4TcnzTipDGmSPMBAt1enjlkWHVHg0HCKgk9hKM2oyQ+Q5vKOZn72FYDiAR9eZAm7W1rAr142jGFA+J6Wkj6IXjUjMv98kyH3j+fnj0e/r1+mzjuql6js6GhUmr0G+fB1+yO6TRYSumGVosEXjUrXic1HACfROIIS07rE+vYKUR8jXLW+1rUO89+cYSu3kNSELsuvCCx64zjUmBZSBV1nbTbt/XGuRRQsTDnK3J95Xr2SC8o3c3JYSQOvXvX+3HmkUKymVjdKanwKM7tgI+JRL3YrC+tYk3y9aGRqdrTDfAX+u7wa2oar2FVY/uNx2vEV28voMWUaCzwq7I8KeDly9jCwWHDwRtF0jgezbyY49KI9b/m27cHHFhVn5mfyraHdjcZQgE8qtj4bc+5BL1yJN0YEhrB/ZcRMa9S4W7Sqfn1SFxSbG7vMQt6Lalxu16CaBusyP4NgOXnSObas4OUl61vy84gbzLmqlzEk3GaV0ZgFa+A82HKHme5L34/46M=; 20:hA99ZWDyT2nqP8/UlbJ35Zq9OhnUuhsXto8JAlDea9g3TSQb1mkBYewM+WAASRv91c6+SUEwvm8PU073/jnK9g6XJcto68J/vS38+Re8eAqU+hN4hTKXu+YfNGWe21PV33FerWrG07b/EVQ8ykMRj89qS4DgTUMsoD+gq/BPJfY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(80048183373757)(788757137089); UriScan:(80048183373757)(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BN3PR03MB1478; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1478; BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13023025)(13015025)(5005006)(13017025)(13024025)(8121501046)(3002001)(10201501046)(6055026); SRVR:CY1PR0301MB1546; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1546; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1478; 4:gWe3MuEN4IQqoIDSpJwUWy6jiShhUzGESjbNvt4JbnX6FtNnEfrsY8MKAnJEowVxBRuMgQg/V1fG7UaWAHuo30wzo7yKmetHYByy8+cOLcFn2sAe0EDrS916MmVvpPmKGDmniFtYJVK68DzkikOJUh1mR9T/SKArCX469YrPz8srwkOfhCZqf9PEVwwfEiPzRBgQ4I7BZr+wgzS7xiEEDAb/8uZK/+7lASIuhQsLYSbS2L00M8h9xh6yPNYjgcEny6a3FT8xygIlCvvntUy9YHULW+cIy+mzLfirjH8UMLOOQZL4+/5YrwsUPS8nAzHV85r3p5Prn99x9CVUQ3m7PzYGv3jyaGyhCVffKfyQ8AORKpPDlsuXQ+yPhGCH7ATNUByWwwBr9q3GC/BdvH1DBkkvUPUra6apqM8klxa5DHYnridckMG5EHVdvGoQUQUPWcVn9w2eHog2nDpSyuvzsg== X-Forefront-PRVS: 09796A1B83 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(189002)(199003)(42186005)(97736004)(48376002)(5001770100001)(19580395003)(86362001)(86152002)(77096005)(92566002)(50226002)(2201001)(107886002)(19580405001)(47776003)(50466002)(189998001)(68736007)(2950100001)(6116002)(4001430100002)(81156014)(3846002)(5003940100001)(76176999)(101416001)(81166006)(7846002)(8676002)(586003)(66066001)(5004730100002)(105586002)(33646002)(229853001)(106356001)(2906002)(50986999)(2876002)(4326007)(921003)(4720700001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1478; H:tthayer-HP-Z620-Ubuntu.137.57.187.33; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:0; LANG:en; Received-SPF: None (protection.outlook.com: opensource.altera.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1; BN3PR03MB1478; 23:qZkjtzFA63JVsu+VwlJdYZ93zHzFc4Tme706BkA63?= =?us-ascii?Q?Ff5Cy+MHiroRPEjvd1XbQp6SqGRr0j/d81tad5oyH39T1Mdwq+rjXwgw9sf0?= =?us-ascii?Q?kRzjGjZLnlS4i7AAhh9gBB9S/EZYEyJkFs0uhEXdhJenPdUrGGH3qhkrkaYN?= =?us-ascii?Q?E3h6REMo+YZtyjswe1QWCHcjKuFxWkSNw4s02Y6vdJaZHS/Omr+mDvJuTaY2?= =?us-ascii?Q?Gi3/BTbTE3xGYtZx9JmnqSkghyEVJZzyZiaqJ4AqXVtqQqdBjWN6ntormsDd?= =?us-ascii?Q?J1nxubKHOwXQybVruIT9Q/kGtcfIaM5HVKOnOl6XICkzFR9KZBPcQ5tzD8eu?= =?us-ascii?Q?0h2BaycXjTwk6whJZMga7o5oojU/6/6RgXOnUpj2W+uJzxc3q+t20zgyZabl?= =?us-ascii?Q?cYyBqhKn792W9IB84usNITwuvK88zRGFBBiaPSHYO+ej08EO+kfisOoAQmxf?= =?us-ascii?Q?95H14gBXBP3zt06XynveInXM2WFyih7ZCBunQie/txp2qkpbeM8ji8B+N+ts?= =?us-ascii?Q?UBTFnT7SJKXzaHdLrL/GLq7LoJqtNctujczPt5UJNbvNot5cgLptE7KyErAR?= =?us-ascii?Q?fItcxAAEEt749kSHKKARLshLXlT+w3MNGJq1/2v848qqhV7OVUXWxKVGyOct?= =?us-ascii?Q?LkX+QveE5RUd8cMFfLMzu8C3L5cbw39cEVhu8QPnnoRVtJv13+I9cofrd+1M?= =?us-ascii?Q?9pfX8sNaKx1l62DReVkaqC5/HFQP1wQ6dyHXceU37cArnMDEGC8/pOC7xJ8t?= =?us-ascii?Q?aJFxmI7kGSeOy0eLRwiPmcpWRUriJbSucD151H9E3uTFNmUZq6yQXDzrXALH?= =?us-ascii?Q?tdovhGwLlD627rJROFxeQ3pB39hyI9DOAVJqgXhBv/aLzczFpeVFRM2bGsFf?= =?us-ascii?Q?LvNPIJVHRCOw9UgZfa5k4/s+6G6XR1430jycQibgbTWk4RbRb1m1mcA9YrfC?= =?us-ascii?Q?qALzeYAN6Qa62S9AXKVrcfvCk2cYIpXR63ULTSIyKwqUr0QUuZq3izpSdmqu?= =?us-ascii?Q?4l9Pzw6YUkhmcCzoKBx4Q+sOlrA8zcu5xNl08IeYnTh1/lZPPcQjx+UXS6zr?= =?us-ascii?Q?Y0bc8s4a9MGrbGZujFAbYp3cgS0c5rd5GlTp43hsBi13Pd0/aTMgCZQ/Q+G3?= =?us-ascii?Q?LLkGFGsL8MqqqP061IbUo91g5YmdISidmn1JTzmkjyjsLNa3oD+9Po0nAVtu?= =?us-ascii?Q?nk2AiVGnYwsbi8=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1478; 6:2YssIKCIuJf0NZiUDSnGFKn7t5IJCZeotS9ZNyCSO1UoxKqMTzSzW5bsnhH2Cp0HWT8CxPyElAMuqVIaQJbMFg3vMF6mTeYefdzEqK1Hr6MhM81HShF/2PrHUNfBLVFhi5WqfJl/fbvalWT8CELLy1BXmwffHPFkPJVJtNvWU7XZrfn6W/FEH4ByGyxEuEVb5jlJReHVV1GpS9ped0WpeqWbwJWc1lvs3S8EPw7HEC581tc0vtPe9HJbejJQ+JkwPIREuRI2hHv2GiPiLeVVIHBjxTd2WmrJ8/0ehi7/2o69Z4f9XBDMV1RjIevQ6Z5Y6eDLJWM9QGGy4nKrFKlA6w==; 5:H69qSxz+LqC5Ywxca4ijWpNql12JzObO67I5UiM9FnTn4bbs7EZl1eqOMXXCnizQzBIGY7/DeUyFlQOi5I41DFAsB5wA/JLx2i6Tgc6l+jrGMiOjcLBtSUTlGamPbzgjslf5uV17ao36JxtXXIVaBQ==; 24:JE6EjM0B0KCH1S3Ey8y2ZilVOeGS+aXicmvtLwkdTbo2o5mPwZvdJVIrkST4caxOGLWb5EZwog/f91+w0YRccIOoiG7O3TRVRtlnLtWFLfU=; 7:rfYI/o6S3/X/3afPc6zjFz/+fIVL1E5M5Lx4+b2BgV79fLTYdCwkRXnHi9fuRLBdxAxpYAGOOCAQcSb4zVG1CiywxaoTUChtTcIhekxAm4ObflMF6s9SIP4FlI4M0clSfrOTGmqKMCZhpI0xpZaKj4KIB6cfEffdZ3H2YKeL0Fdp5+SkhdtVVqVj/VUplQbGWE9W5aSYlFjKHj5COL9lYeWXboDpArW537VXyQpiyOhiQjkyaoNCdiP4w6GIbztz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1478; 20:e9/SKzQ29Y0UjuFPMpUN9N1/ddr5dq60+OFG62JUCyWU3OfLLSOU1Z4kX3qS6hZflTnhlVNUu1EQCDOgVN6tn9PB0Regzh3m/Kas6TmxPrdcNLcG6DM1hBiiSKABah+XX5KPdt51ePpAc2LhexPPsWjRIOPA6U77ofM41NDCUKk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1478 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BL2FFO11FD043.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.227; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(50226002)(68736007)(4326007)(47776003)(8936002)(5004730100002)(106466001)(33646002)(11100500001)(2906002)(105606002)(4001430100002)(2876002)(66066001)(92566002)(3720700001)(2950100001)(5001770100001)(7846002)(6070500001)(5003940100001)(48376002)(19580405001)(3846002)(6116002)(189998001)(87936001)(8676002)(77096005)(107886002)(956001)(85426001)(19580395003)(21840400001)(2201001)(6806005)(86152002)(76176999)(50466002)(586003)(86362001)(16796002)(81156014)(50986999)(81166006)(356003)(229853001)(97736004)(7099028)(921003)(1121003)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1546; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD043; 1:+6v1wV7z/givcE0JLf6uHl43Aa0uaxYsFEirtybeFGCd9jPpsgPDIAqhmUQer5bO6MPc4VrsgKQZusEmIF5oCRID21OjVHU8vFsNzKYpdqufn7GOYOwBio3Xi0hU2SYLfOmO1SDyKMDTU+xa4f2NXcf6FU8zrrWnesCVxHiEjLv+iSHVOPyTATLXlbflry+Xbo1qP8I970sFuYS2/rEfkiMeSdnlA+eyIwCSOfJiuAFz0LIvuJH+R3ETT93VQiWZrWWUNMme+AAAem4ia5ep3D7OWRr1905s1vhVj+ptzHBU8qtMkIzsnByEvzB/33XozF3JomyOErOTdpjRLUnNms1dk+u0A5w5KEqR5NBjPfVkgq2XF4UcE2UmEjPM78U620BDQzoC1sN0pf8ZwH8f0Pqby/4mq03lLHJcBvLVjJOkbXWxaU8Muqxw3gyUqV2LolDII51tusJibnncgMINPqrPzTaq5M+fGn8iQ2E0+qU/HNwOirn+frtFJS0tElofYPPdRkg79QM5TSsIuoPhVjCdEmZmkTz7ThMMLwfXY1M= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1546; 2:JK3w63lJ9dZBuip4JHehcSriiGzF6WfH7WFaWAyjJqZI1kvmFxERpowjceZEa758+AHxmR8l7ypX6TDyZzqWtK7BPx1gx5e2Bi4W1VfcaswugWd4MA2F+W4Fjr9p/NbQUxiWe71B3+bakg0r9YqFBGh0uOyPJX+W09ffW+Xb8nUAZ2DkzCtEo+CF9TVR+Z2T; 3:cbr6kjb9DpaowrpfQpxhA8+VIEXgiTfUKiiAGW217imVbgiHf+EQZz3mslGl1ofoD+lfJ3ToSax1aWXoXzskBI2NG5n+bEtikYMBbsc16BvQ7p8GB7DkuoaIl2895E8nQ6CvScjQXZMKx+AM79peIR5H4um5rPmA74D+5o+UhJRL72ZYsGaEH3mVNmtDDyQ2Q8df12uYM8ZzB+mtS79r/iUhVAwCcXR0V+118ciBxHQzzS6bDKeaHKXUpB2TFQmW; 25:m6XM8IzDI86HGRXH+jtPtuAJ2mawwEa8GQavVUhuttEdcwQE78VYTdd6XKilPB9oSptSqF3cx4vZxOG43aza64QzXJd8EIElb41Ru+h2VoSil3n19gjUYnwliAgwRjaSEdVwCY4JJbo9m/h04LcDJn/By1XxhoaM6viyBEh/1GXtiyD8yFGvIt8Vt9wYOl7yVBIGiKwsqZaaxyTE+/chqVThusuiqDpuJ7t8/ZA1PrJmn1rwcEM/cnV4j+gWbXM0FvkgSIJauU7QLqRcAd+1Ik21dRNZ1GUzO86UxAgl8iQWUD1+NGZonvD5T4f2NKAXtvEyHZYDojfCiXX9deY2RKVxskEm87zVKre6co+JH3YWJNt1WwiimytL9p/KfTIwi0XbbNBSb0VHtpOf2oMlthnCTnYNUGfqMJQ02JEtOLc= X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:CY1PR0301MB1546; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1546; 20:rx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p5SSo=; 7:56Ce5/qaI4Xt9czRLjgoRySGp1Pgttsu4fKZoXUSczJG6PrBNznz88ehMBXkqnnSCOr5DdtbsIgDac+ABrKu0xPH81RlIrH9DrxZFy/HurtxbH/ov7+k1EJHjyQXHaHveFCOHHC9sYx91tHAfn/RrPf/yoWF5IGptrBT7OUDza5aqMtCZH4RcBC4/dx2am3pGbBPizZBGgHcuHg4zqxzPw== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1546; 20:bHOxw6ZyFI2SYys0TCBB0nZ3g/8Iecn1MpAHbTX+PsYso8zDUQn81H3UzLbrR9B0/49mosLcNRD0MPwU6eYYaX44hVE//MubLEPOXH/aCc+wlt0OZvaLNV4QNLB1MVmrtRzqPDj0i99K1JBTTmbAgN3e4qk5Qf7HHHrRk4tn54A= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2016 14:46:20.4165 (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: CY1PR0301MB1546 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160620_074645_281979_D00106D7 X-CRM114-Status: UNSURE ( 5.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tthayer.linux@gmail.com, tthayer@opensource.altera.com, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 them outside of the OCRAM only area. Signed-off-by: Thor Thayer --- v2 New patch. Move shared functions outside OCRAM only area. v3 Change title line - check_deps & IRQ. v4 Replace #ifdeffery with __maybe_unused macro. --- drivers/edac/altera_edac.c | 62 +++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index 14c9248..5f01974 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -825,16 +825,16 @@ static struct platform_driver altr_edac_device_driver = { }; module_platform_driver(altr_edac_device_driver); -/*********************** OCRAM EDAC Device Functions *********************/ +/******************* Arria10 Device ECC Shared Functions *****************/ -#ifdef CONFIG_EDAC_ALTERA_OCRAM /* * Test for memory's ECC dependencies upon entry because platform specific * startup should have initialized the memory and enabled the ECC. * Can't turn on ECC here because accessing un-initialized memory will * cause CE/UE errors possibly causing an ABORT. */ -static int altr_check_ecc_deps(struct altr_edac_device_dev *device) +static int __maybe_unused +altr_check_ecc_deps(struct altr_edac_device_dev *device) { void __iomem *base = device->base; const struct edac_device_prv_data *prv = device->data; @@ -848,6 +848,36 @@ static int altr_check_ecc_deps(struct altr_edac_device_dev *device) return -ENODEV; } +static irqreturn_t __maybe_unused altr_edac_a10_ecc_irq(int irq, void *dev_id) +{ + struct altr_edac_device_dev *dci = dev_id; + void __iomem *base = dci->base; + + if (irq == dci->sb_irq) { + writel(ALTR_A10_ECC_SERRPENA, + base + ALTR_A10_ECC_INTSTAT_OFST); + edac_device_handle_ce(dci->edac_dev, 0, 0, dci->edac_dev_name); + + return IRQ_HANDLED; + } else if (irq == dci->db_irq) { + 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; + } + + WARN_ON(1); + + return IRQ_NONE; +} + +/*********************** OCRAM EDAC Device Functions *********************/ + +#ifdef CONFIG_EDAC_ALTERA_OCRAM + static void *ocram_alloc_mem(size_t size, void **other) { struct device_node *np; @@ -882,32 +912,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(int irq, void *dev_id) -{ - struct altr_edac_device_dev *dci = dev_id; - void __iomem *base = dci->base; - - if (irq == dci->sb_irq) { - writel(ALTR_A10_ECC_SERRPENA, - base + ALTR_A10_ECC_INTSTAT_OFST); - edac_device_handle_ce(dci->edac_dev, 0, 0, dci->edac_dev_name); - - return IRQ_HANDLED; - } else if (irq == dci->db_irq) { - 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; - } - - WARN_ON(1); - - return IRQ_NONE; -} - static const struct edac_device_prv_data ocramecc_data = { .setup = altr_check_ecc_deps, .ce_clear_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_SERR),