From patchwork Mon Jun 20 14:50:51 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: 9187685 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 DF841607D1 for ; Mon, 20 Jun 2016 14:49:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC7852787C for ; Mon, 20 Jun 2016 14:49:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C11A62793D; Mon, 20 Jun 2016 14:49:10 +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 442F92787C for ; Mon, 20 Jun 2016 14:49:10 +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 1bF0UI-0008U5-Fw; Mon, 20 Jun 2016 14:47:42 +0000 Received: from mail-bn1on0066.outbound.protection.outlook.com ([157.56.110.66] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bF0TY-0007eM-UH for linux-arm-kernel@lists.infradead.org; Mon, 20 Jun 2016 14:46:59 +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=583pnqbejjqI9jCAjspaaLzB/cni/llpUr94NEVOh+Q=; b=oK9dfIXjy2jJ41b0Fg88E6DVXaexETvyJBEcPCt8RSX+TbvwkuRVAkMsFrK4PVJNA11CvwxomgurEfQCbfkfXzruc+XEXzqaEOfEK7M7m41xBEYcO5HaLGqswN80HHqUJfX+v7BsBVp95bgzQEaD+Ao/y9Ftq4qte1UKx3O6Dj4= Received: from DM2PR03CA0038.namprd03.prod.outlook.com (10.141.96.37) by BN1PR03MB108.namprd03.prod.outlook.com (10.255.201.26) with Microsoft SMTP Server (TLS) id 15.1.497.12; Mon, 20 Jun 2016 14:46:34 +0000 Received: from BL2FFO11FD043.protection.gbl (2a01:111:f400:7c09::119) by DM2PR03CA0038.outlook.office365.com (2a01:111:e400:2428::37) 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:33 +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:33 +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:11 -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=583pnqbejjqI9jCAjspaaLzB/cni/llpUr94NEVOh+Q=; b=oK9dfIXjy2jJ41b0Fg88E6DVXaexETvyJBEcPCt8RSX+TbvwkuRVAkMsFrK4PVJNA11CvwxomgurEfQCbfkfXzruc+XEXzqaEOfEK7M7m41xBEYcO5HaLGqswN80HHqUJfX+v7BsBVp95bgzQEaD+Ao/y9Ftq4qte1UKx3O6Dj4= 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:06 +0000 From: To: , , , , , , , , , , Subject: [PATCHv4 6/7] EDAC, altera: Add Arria10 Ethernet EDAC support Date: Mon, 20 Jun 2016 09:50:51 -0500 Message-ID: <1466434252-26107-7-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: 05f7270e-3536-4bb3-b2ef-08d39919ac5d X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1478; 2:Mr8ndH0w8dtYrZO6BeNkoJvTRvN/5AYgZ3mZyVCxfOo1aJ8J/JS3invUY8q5i3Pj1/4dtKVLMJ1dBhCVNEYzP8quMLbm0YtgMBBCunPCOQbgvcd+LjzBaE2KT4u6LmiYCkqNxr4CZcoSkshyTW4VSIir7yYiBO57Fnk+T7fXO8aOufSljesZsyS0/pYyNlSm; 3:Nf0ThWAPwOUmCHv98vhED1HCSf+24ThrzyuCoPwYgPzu5u7V+ozkxgd4Hz3dQ5O4WTDlR24a3M25wm8Nkz3aPEPPnrHqW8zepBVSU1/DOnLcgMJLbitsOIKQEi4PLiaq; 25:5I1Ezx2CQzZhoIrdVWcgwiPyST+0MPBjmdOvVVgi/EK0DOga1WM2mvwIGAZrXWUGUzaeGhgKv6aw+aTvGxsbqIRLJIbYRDDIYprm9kCppN76qjxEsMROmYrBEfiWhiEDrNKmmYMoXvoGLb/67G85fHDpCK8yOx5teIAOPbWOECZ2NCFFIZniEpEVc+fmeWc1NJfF2FCGCsQEGq75uE2pxhb74Qo24ehMS10Jl79WjhKJus0e5qQywYq+Hha3sqY9rndnBc2Wom504o8gPlqSdY6Xu39kAHsU2E+y/UroyLJyzlHzC9rJ1lE73wCp1XU9lSAM9pWB+l+Rey4FR1sbCKKtFOtYsnYXifr2I1E8DKVfaIc1Zy5Ioh871/wFBHpcVUHnGLQpoyof2barP1NexbMb3cTevdsB/PABKH3ONnA=; 20:yKA+Dc0HVe464LouNzWPxhgpvAuaefGn6IuVyZOwtDachhdjuvwEZszM3hWeLIUnJo3zRSiwxvNEPukJE4CI8+7h+OG5HlEP6PGoMGM3jPY+PXjQOeC4EOiKEVMvCDlh38jjyTXgq29P1GemTT4JmT/Zw37LDdkAOggzTTtKtU0= X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1478; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(80048183373757); UriScan:(80048183373757); 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)(13024025)(13017025)(13015025)(13023025)(8121501046)(5005006)(13018025)(3002001)(10201501046)(6055026); SRVR:BN1PR03MB108; BCL:0; PCL:0; RULEID:; SRVR:BN1PR03MB108; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1478; 4:1D425uJ4RplIGA8vdGAVm22O2PKMHsg0+u5Nf7XCcjm7LLa5pspZ/jmjsjYwiXRhUAsPK+5ZhO4od/TpZRRzJB0f0klgqwtQu3Ed01ZALjotLobjKZZCdOp4LquDdn2Dyg1Z2hxBkZUM1U2Psj+N2klNB3inHO+GyfQDpTmvdWThv0sRjUFQA1/aiuPwvIplT77ok8nHpKTh4Ck0kx0MvQhl+U/RwaBb7f+JTcANrvyE44SmCfbqNgA7ovOvLgIOTVBWu94BbJdRjXImnvBX3x+lcY2pX3OCq/3cH6N2DpLbi27FTa6CB7AgGKPTb2A8kKzzzOYjEXwm6GB2viAWjZX8waSeO+PlttEW19HrmUdOG4BUrNygi4+iBKtxIRF4lOTUhlSLf8aIGV0peiIMt1O2bYtkQhlSm4SBdw5PwLg5QZoa9BkSKyluZt30tMvd 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)(575784001)(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:f/8sWIb7nlnd88KWXi1JXWOag2KFZI1QLSUePTWHz?= =?us-ascii?Q?dpwj7V6K0b6Rfl8s991g4d8ctMkMStuWDbfv6mHUJxJdLSQ1ZgicSDF7Uxyh?= =?us-ascii?Q?zk97KYbV214muYlk4tv7g1fKfwLB+rdQ+b1Yd1ifYEAtC7l7YlSI3d2xFkwa?= =?us-ascii?Q?V7iQm9zN5B5XqpnxRD5BzHLnn+1lMXxBmjYAGIOp+3XJ3bmc1q1ONabnfHom?= =?us-ascii?Q?noaqyAtPK8WbRubGlgHAogscWx55/aRo1RTwKltcJ/wqqYWlT6sUofwOhcT8?= =?us-ascii?Q?L9gZFXZwjUjmK1mqIYUgUtZ8f5sUjFiByivorE7pZ9oWn3zJttDmXTKgo0UW?= =?us-ascii?Q?b+H/pGIYmsFvb1/hG53tteSt0glz2b/yj2SW0JWkjLdj+VSqrUHubTlYRoCl?= =?us-ascii?Q?6lJtwWDGB/A0RBloeii/WwEQ95b3a0etNpHwbNavQtaK+IAqrsoopPmM0HJS?= =?us-ascii?Q?TDLdQMpXsPUT8LsDsPV16vEIgO+5LT/lWi5/8FL9gkmKHo/xyT1927zzLdx1?= =?us-ascii?Q?/mzcOg1FBpT9dH40h7maLvfSRw+mrP51BRHHlnCYlDSZ5paV8CNMdbTM7VRg?= =?us-ascii?Q?WQhKfdM6Ettb/9aUDMffMtcuiQmyezA1xdSVLZVY3M8iI1ZmgjW7WVnK1CLm?= =?us-ascii?Q?atQ53E4hsWubRG1/EOFeRGp6GTl6pFUIKxiQeHqVex+Z43mxmI65vQ84opM2?= =?us-ascii?Q?McVhIVoj/pAN9X0lvy18RF+cpykm7KQoVtaqvhXlD0trSmh749VDKdhkKaow?= =?us-ascii?Q?tHyees8UF/Onc3yW0IFki+5onLCS9VmdeBUD2ZHOZGCY70Y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XpCwI1WQltdKZ5TMGHJA4sgtZJvyKTkIEmpAs2HOJyCPK4MKOGjAV68jeML8TVk1XNcJ+NwvYa0E=; 7:jczf2xyu3mCRb64AmrPTI9kgZuzbMzl3SNbomw7uX51K+2oVbFM8hGLZ5OKV0aNzF/LYUbAel3UEKzzmiSfCqlGh5WMAcW+5/2lmAfp9wvmgvfsDxmVR5yxwGVcdb4YjSg19Y0MPbXZ+lWvSLVISYhTzkvLymJ1Hj4zF7ZSmN2uSsQ7CBs1MZAMp1XbTn6Km81jY6j073hLJeOYOonpmvbBVu6cPzCRFM1zJM0LcZucNP7k8UvleIUFi7gyXX0LS SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1478; 20:hgICF6x1a/99rBKYFZ88WoPNn50W9Ni1N9XtVx5ikCHdGLxUlYay5cXHaSjfRwH8ovLRoC8wEAjwi8OOZPFnPL4scTNgjWUuoKWh8GZ9W3qxkmSitJS1/Caz/7yJtwnGI9GMt42I1teG2mfh4TUgdUF5wfU8CTn4vpsCodQIb3Y= 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)(1109001)(1110001)(339900001)(199003)(189002)(2876002)(68736007)(2906002)(8936002)(189998001)(50986999)(4001430100002)(8676002)(76176999)(5001770100001)(16796002)(81166006)(6116002)(586003)(956001)(2950100001)(7846002)(6070500001)(3846002)(97736004)(50226002)(3720700001)(4326007)(356003)(81156014)(107886002)(6806005)(77096005)(48376002)(87936001)(85426001)(19580405001)(19580395003)(575784001)(11100500001)(86152002)(21840400001)(5003940100001)(105606002)(106466001)(86362001)(66066001)(5004730100002)(229853001)(50466002)(47776003)(92566002)(33646002)(2201001)(7099028)(921003)(4720700001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB108; 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:sIkC75asVxklTudLKHwivGwIcJItTQ9rcjO5khdMUHtQgv585MZPiTjG5BptLLK4dOpljd+xPN1wgA94h2jY4NP/F4QIZtVAAmdMnke5iJTG4w1mhoTtsYIWesOU8sSXKveHIE6129+oEJsF19ph74FO7ibd1BLN7YWyT3WtDzdLD3iZqUbYrHHb62R+HaXTxKRw/jEp5ufq82CPXsLrtBpCDYA1+e8JFEx2WiP3zQbprCv2r69UqN67t7BYo17AKfc/u2nPcHsZxSQZ2Wo2SwAmTsD1nocaO5aFc2G3L+OPOS6lFqT8+/iOGXKe/4h014tlM9IwSX+9ZYICTty+SJEmcd9DRzrXjRcDwBwizMWo3DE6qadb9tTbdCwO045SCtlQKVdH3yGDGkaBRQTSW6xCnMoDQpXJc7PsuCBcP1tebkLQKfGhtTUHeC9nI7JaJDqmeIOGfn5OKXB2I17PQttJqNXmXitIXtnFKR8OsVRq9mAFCOJlEV/KpQuqimxMnos2gCcbB67cF7B8vqOl6LhzyEc5sPzP2qe6o5/zs5s= X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB108; 2:N2wNAdaGqbJ38GhqmBiD6G1FY9n+Tm7hbiCeLYCwfc30MdG/GivmpAhil+PyS7kjgMtzSCAwVsc8hfzjIhUfK+3E/kkb5nDhjc9IfQIVxtHDm5xB5Srn7AkRb0WENFHT9+PkNn+LooQ/MuNOTfQWHeu1EqGiyAYMeYjXwj4Nxr29Eus75qrSPb8yc2w/NUy+; 3:v96Vh+cZb8tYBg29RK9U4EKZHlsSOtySk1mCSq8UAR/rc4Z2gFSCJPdm8uABAHPekzipcmUdNF+rtILjLOthxL6gfQmpyC5bxg2lVXK8T1Q2a8WlxqbMkX7eYv/oJlhzP4COUT11GgKlL+hnPDv/2dPin4Cu1X6VvYS/b62DSBlpph7AytzYFg5hxli4dEwmsv5L3A5P2wcHHHO790t3IeyUZxaaW8ieA9jXhsTw4es/UUmAM4Y6rXDP0hONhSxk; 25:ZM1wOgyijT8xK37deoMNAIdn7mlBEu3q7KmjKRHQO5O/XKFDW+pWmCZ0A+mzC4VfyzraciH0KoXlGmuFJkG73eaAjE2WszJU0A8zuxCrUYRQK5ZqsBUBu3YtIdA9dBljwN8UowSjZ19z/vwx2D9neQBLzEL0DIftlzcabsAc98i1z2Zl81iLiddBHoW4v5JGH3/2x9h8vTQrhn7g8NE0rdAOHn7F8eldfTzrkai86XVIpGt1RPRIxuPR4gzkzoUSFnSFEC9JC2Q52LS/OAuNdm2d1Nvlc+K6hmIgvjJhF7z/l5jrQBzrJ5gEIEybHoI6Yc6OihE4qBclGuAMq1UPJ+q+hVXzHENk65InEbK67zOPT9OkaJZQDH67CqNe3l1z/KGjctQvQOyOFliibuYeebKVNVupk79Iaq/f4hrA86g= X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:BN1PR03MB108; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB108; 20:TnfVfErx7aI6aoDDl3F+ag9iGZU0b1niMKaSAvAjA/Pgvjsxe9rxlKRo/jl34cqY2pq9//8hduS4Xz+BqeqJaYLMeRiFrwSaDc+qG0HktecQY9JJEZSQi2pP/eRZXt0AyYlyn9FADOwEEQT2HWEXlU55NyNuF8lGB1JsnUD4UHo=; 4:Dqf/Z36PAnrOJWvoSRxNoHxaOsb9T7T+j4lEXBCKujCWN1z5ikYIisKbv8qZqxchIRYtfHCR3KQO+kaLqw+IVpG5+2HA2lK+kPIKetDivuRGmFWNeT8af2/ONd3iqL8yXG8EzP1qaY0i47iy8YWqqkoLh0GK/+UGsaMpKiFDTa0IrP5bCSsafdV0MWGRAI6Ipsuv5xlpPBDIVXcxAoEs9IATHhvOraxWG69UA7PkYvPzjcQ8cykUM5NAdpu08e5xhXKEsv+mjuT9NapiNA43wSIsAASbhuqxZcCyFckcdp6Y7Lo21e5Me/ovJYeqoriGYfhleliUYmpFnsQA1MUjdwqZqMsdU362QoDV+i/0Yug+IyVHb6mz/VFu8cwLDrF6urm1jp00Iy0cH+u4USJh6VIIIlP3kYKpfKPauPldJvQBFQTRd3Zq6rpOXWozGbrTD6yzIcsKsEBcmEn5A3bD3mxirSnpHrGzCF71LswTQemoIC2Gc5abfQiBJMfM59iR5i4bCQEP5dTD9HKzGskdRg== X-Forefront-PRVS: 09796A1B83 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR03MB108; 23:D27UqRpoxnftgd20GPLGhRJCBvGI5v+LjV5ZaCj0XS?= =?us-ascii?Q?YvpLhlQNK7lJfNlOjEIGiWlkGr4zCf/nGUDZinJHUMJ0y9hEnBNT3jwfLJdj?= =?us-ascii?Q?jGmsmAkovDWSSlYtSOUe+9efavvawyZua8hJN+1tCLzBHvwAw+vCz/ltEh8F?= =?us-ascii?Q?J2NtnpPGMSF9tv2nzABaqgHHPAlj95VeoPvsJYukuMYqMGep2LFlAYS7f6Hv?= =?us-ascii?Q?2x6icDFea2faNytxb4ySkTITD8sM60JDFK/e7b2cBaQYzOXdg7h99/ZIxHOt?= =?us-ascii?Q?LYgRn0GjWa6jcP1ENjcv8NUP/JbfGUTFFbzK6dY4eXxZnQiouKfWZDpRgEIj?= =?us-ascii?Q?DRstXTXJf9ReqYacn9MvExI6Cgs4i+1K3ZDBQuq5LkoqcNSwx0v70f20ZNWt?= =?us-ascii?Q?uwhbAiY5gFXunSdzGcYr5eVnNv3omwLWfxtnBswlY3HA/0wM+OH84MwivxkS?= =?us-ascii?Q?mCQ/D8byrrugdQApiTH/yXjtE5hpoROng0eL6MSItsLnJhvk1IHHpyk2+Yos?= =?us-ascii?Q?/X++Ho3jyo1QJHVXc6r4ZRnPndMJ11/y0QIX/Bsy0Afu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1rDT5NhwufCiGCIoosTwqzt4bPvMflrQds?= =?us-ascii?Q?jvfYzM7VmYSfIuUz1H4N4kMghTbSA7lqU=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB108; 5:7ymvQyd7lDentJozOTUgjBUoXJ4VOXg7NqMsOilF57/jbZMjM3Y6mtj0HAToLWPQuxuYkJZ1NzsNlWGzeoZMMdf9L3RX/57c3Ovc/VU76sxJFk3O3U+GA61/pE1fA40t7F8a+L8VqWatSqe7+Vwxyg==; 24:LP3ji393ek7KvSstzc5JAPTUhmUmLXj9upmT4aCHQKVGERd2E8XlBicY4MTTpxrqMg/agGGSfk7OFuSoNisv0vKUzUv2m/ePrIdalguk9As=; 7:CZ9FgnLHzA8iSh2F/CzzfIoTBpe3hnA0aGOkSLePnnuuCDLphEHI048sSAEN30mWEIDrEofeQ8NPkCxbzP7flaMVz0VytXwYM4lIPSISAlEoe1q+xJvg2CSbs/9bb1t9cRf865+WjfIkE3Caqdx7/Oc2e8F6F6FnFt3dJTxIrW4zfMocwgfCu0jzQoV4PiKq; 20:dZV6nxqvE9CszE7JIhTvZ9/bFkG6WxspY2cLuRLmRGWCg2346FLXC+ysgLlj2lekzh/854mkbdIYWLZwm6a0GR2TfxdFGZL/cC4FbvznXHeXC4Er/+3ZW7OlKrIpxPw8huDRjhiR6kzqHOTjnso12hKPNKZyvRNKq6XAhJF0ppU= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2016 14:46:33.0837 (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: BN1PR03MB108 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160620_074657_259490_48033703 X-CRM114-Status: UNSURE ( 4.30 ) 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 Add Altera Arria10 Ethernet FIFO memory EDAC support. Update to support a common compatibility string for all ethernet FIFOs in the DT. Signed-off-by: Thor Thayer --- v2 Remove (void *) cast from altr_edac_device_of_match[] Addition of panic flag to ethernet private data. v3 Use common compatiblity string. Simplify socfpga_init_ethernet_ecc(). v4 Make private data static. Rename Ethernet private data to more generic name. Remove panic field initialization. Rename EN mask field to ALTR_A10_COMMON_ECC_EN_CTL --- drivers/edac/Kconfig | 7 +++++++ drivers/edac/altera_edac.c | 37 +++++++++++++++++++++++++++++++++++-- drivers/edac/altera_edac.h | 3 +++ 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig index 6ca7474..d0c1dab 100644 --- a/drivers/edac/Kconfig +++ b/drivers/edac/Kconfig @@ -391,6 +391,13 @@ config EDAC_ALTERA_OCRAM Support for error detection and correction on the Altera On-Chip RAM Memory for Altera SoCs. +config EDAC_ALTERA_ETHERNET + bool "Altera Ethernet FIFO ECC" + depends on EDAC_ALTERA=y + help + Support for error detection and correction on the + Altera Ethernet FIFO Memory for Altera SoCs. + config EDAC_SYNOPSYS tristate "Synopsys DDR Memory Controller" depends on EDAC_MM_EDAC && ARCH_ZYNQ diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index d97f22e..c4e3d0f 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -1258,6 +1258,33 @@ static const struct edac_device_prv_data a10_l2ecc_data = { #endif /* CONFIG_EDAC_ALTERA_L2C */ +/********************* Ethernet Device Functions ********************/ + +#ifdef CONFIG_EDAC_ALTERA_ETHERNET + +static const struct edac_device_prv_data a10_enetecc_data = { + .setup = altr_check_ecc_deps, + .ce_clear_mask = ALTR_A10_ECC_SERRPENA, + .ue_clear_mask = ALTR_A10_ECC_DERRPENA, + .dbgfs_name = "altr_trigger", + .ecc_enable_mask = ALTR_A10_COMMON_ECC_EN_CTL, + .ecc_en_ofst = ALTR_A10_ECC_CTRL_OFST, + .ce_set_mask = ALTR_A10_ECC_TSERRA, + .ue_set_mask = ALTR_A10_ECC_TDERRA, + .set_err_ofst = ALTR_A10_ECC_INTTEST_OFST, + .ecc_irq_handler = altr_edac_a10_ecc_irq, + .inject_fops = &altr_edac_a10_device_inject_fops, +}; + +static int __init socfpga_init_ethernet_ecc(void) +{ + return altr_init_a10_ecc_device_type("altr,socfpga-eth-mac-ecc"); +} + +early_initcall(socfpga_init_ethernet_ecc); + +#endif /* CONFIG_EDAC_ALTERA_ETHERNET */ + /********************* Arria10 EDAC Device Functions *************************/ static const struct of_device_id altr_edac_a10_device_of_match[] = { #ifdef CONFIG_EDAC_ALTERA_L2C @@ -1267,6 +1294,10 @@ static const struct of_device_id altr_edac_a10_device_of_match[] = { { .compatible = "altr,socfpga-a10-ocram-ecc", .data = &a10_ocramecc_data }, #endif +#ifdef CONFIG_EDAC_ALTERA_ETHERNET + { .compatible = "altr,socfpga-eth-mac-ecc", + .data = &a10_enetecc_data }, +#endif {}, }; MODULE_DEVICE_TABLE(of, altr_edac_a10_device_of_match); @@ -1555,8 +1586,10 @@ static int altr_edac_a10_probe(struct platform_device *pdev) continue; if (of_device_is_compatible(child, "altr,socfpga-a10-l2-ecc")) altr_edac_a10_device_add(edac, child); - else if (of_device_is_compatible(child, - "altr,socfpga-a10-ocram-ecc")) + else if ((of_device_is_compatible(child, + "altr,socfpga-a10-ocram-ecc")) || + (of_device_is_compatible(child, + "altr,socfpga-eth-mac-ecc"))) altr_edac_a10_device_add(edac, child); else if (of_device_is_compatible(child, "altr,sdram-edac-a10")) diff --git a/drivers/edac/altera_edac.h b/drivers/edac/altera_edac.h index aa7c690..687d8e7 100644 --- a/drivers/edac/altera_edac.h +++ b/drivers/edac/altera_edac.h @@ -285,6 +285,9 @@ struct altr_sdram_mc_data { /* Arria 10 OCRAM ECC Management Group Defines */ #define ALTR_A10_OCRAM_ECC_EN_CTL (BIT(1) | BIT(0)) +/* Arria 10 Ethernet ECC Management Group Defines */ +#define ALTR_A10_COMMON_ECC_EN_CTL BIT(0) + /* A10 ECC Controller memory initialization timeout */ #define ALTR_A10_ECC_INIT_WATCHDOG_10US 10000