From patchwork Wed Jun 22 13:58:58 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: 9193039 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 B867B6075C for ; Wed, 22 Jun 2016 13:58:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6E4828365 for ; Wed, 22 Jun 2016 13:58:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B52628402; Wed, 22 Jun 2016 13:58:29 +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=unavailable 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 545C228365 for ; Wed, 22 Jun 2016 13:58:28 +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 1bFid3-0004ds-38; Wed, 22 Jun 2016 13:55:41 +0000 Received: from mail-bl2on0068.outbound.protection.outlook.com ([65.55.169.68] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFic1-0002pt-NJ for linux-arm-kernel@lists.infradead.org; Wed, 22 Jun 2016 13:54:39 +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=/Umcgt1bffkfBHbpEVY3S9iRhL9HTEKUFHCzZsB7/bQ=; b=ZYlQGUBVVpWwKeEmTquwdyDp6ycKEGkh8/itv89c7rux0EKUAX5l7iuSUMxI++UYRS0S/Qx89PgQ1p6sfsXFtvmxFAzuiUnBuoAr/rM+3ODRxqtNEQDFe9OjpxT6q7ow1gm0D/8jvmVr6/Q3kbmlOePnZif/hxKLGxa6EEW8q78= Received: from BN3PR0301CA0063.namprd03.prod.outlook.com (10.160.152.159) by BY2PR0301MB1544.namprd03.prod.outlook.com (10.163.27.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Wed, 22 Jun 2016 13:54:15 +0000 Received: from BL2FFO11FD011.protection.gbl (2a01:111:f400:7c09::179) by BN3PR0301CA0063.outlook.office365.com (2a01:111:e400:401e::31) 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; Wed, 22 Jun 2016 13:54:15 +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 BL2FFO11FD011.mail.protection.outlook.com (10.173.161.17) with Microsoft SMTP Server (TLS) id 15.1.517.7 via Frontend Transport; Wed, 22 Jun 2016 13:54:14 +0000 Received: from na01-bn1-obe.outbound.protection.outlook.com (207.46.163.144) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 22 Jun 2016 06:53:50 -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=/Umcgt1bffkfBHbpEVY3S9iRhL9HTEKUFHCzZsB7/bQ=; b=ZYlQGUBVVpWwKeEmTquwdyDp6ycKEGkh8/itv89c7rux0EKUAX5l7iuSUMxI++UYRS0S/Qx89PgQ1p6sfsXFtvmxFAzuiUnBuoAr/rM+3ODRxqtNEQDFe9OjpxT6q7ow1gm0D/8jvmVr6/Q3kbmlOePnZif/hxKLGxa6EEW8q78= 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 BLUPR03MB1475.namprd03.prod.outlook.com (10.163.81.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Wed, 22 Jun 2016 13:54:08 +0000 From: To: , , , , , , , , , , Subject: [PATCHv5 7/8] EDAC, altera: Add Arria10 Ethernet EDAC support Date: Wed, 22 Jun 2016 08:58:58 -0500 Message-ID: <1466603939-7526-8-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1466603939-7526-1-git-send-email-tthayer@opensource.altera.com> References: <1466603939-7526-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BLUPR0301CA0036.namprd03.prod.outlook.com (10.162.113.174) To BLUPR03MB1475.namprd03.prod.outlook.com (10.163.81.17) X-MS-Office365-Filtering-Correlation-Id: ab74e247-0d63-4004-1f23-08d39aa4b243 X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1475; 2:4Zw+yMOhvmvm3Y7ayVP1uOD5YucHQn6s+rWXeJuXnG6YnF5p32Yn/SmNobuJwI1QlkJ8ro8JOQhLd/AMLjeVdefHOThjWcbgtBSt0oYihqLg/011fQub6HEpV+FzUWeeVtO7O8SUalDjw9CUhLkBwckPLJI5W3hMm9ZCdUndOmOfskQ4BBfJgZOsuarg5Kej; 3:i7UZ8dTVbE1nDGKvgTaUZnsAK3fFjhMaLwkJzNzIPytT9ddA3UlP1O8AM66VcxmFW2hn7B0+noIylU5bQCBClffKOXr34UBpobCHMPJVTffYFJmaM10I46wLh0kJHInr; 25:pTRHpwDxx7J9UhF1djaK7W1VEe+xvY6EVMj7smXLGuGVa/f6yy2RfqcWHULpm7VlOwYsD9S4GV6B3s2U82vFh6I4Q0/Qtx3T9/4Vw4CX21OETENSxdaBfmm1NQoFpLUUvv9hEW6GBWiN5lr++2e+vGVUzeB67dqQBp/gIt8JzK8buhR+IKXA8gYsPnNyWUkYXzteyTLcFczRfWjFcqBm73umqccZvcurCE+Sv/7Z8V2Y6rSZv6MRfeDIE4Cusa2Cs92zAnYdEDWaj+vbeUVrOo09SjBYI11/EExxDQk9mjdjVUt82aZCf53QqKhCP+XMKsa/MLgnRziBFj8+OeN2KCEXh+M+TqEc+n7CzBsVE1+OpFfCCRT0QmQNAIQkQKDUnn9mO6pkxWK/vSLs+wmA22JkYLfw/bHqCu8Lyz7TIO0=; 20:PhvQuWDdbkZt2N+PY+VXFyj1i+SX7QTmXDOYFNBUX7kf7Ib27ORQJwngvwm6a6XYFicNV2N0iK0LGl34I7QSvNzs69aDF1RpdBgJ1uAET2mmqJAL5OnWtMdjNUSB75E8VekGk3wDTKK89k1SYBnjebxb3FJDLjP4TXAdLFP6bK4= X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1475; 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:BLUPR03MB1475; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1475; BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13017025)(13024025)(13023025)(13015025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:BY2PR0301MB1544; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB1544; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1475; 4:z4Ny50JhXfIiAusCqg1AWZeKfBBMjuUd68AsI98Yq2SEWlnr0ZBg5KwAX4hhrCwUsqnS+048ap5z/t3dHfooou1FY2R0mlI9l8FJDJyxkI706syIb0c0C5OjTjB8PBRDNikHGz+rK4VqGOFaN3txkstnREo8RVr+9O8nOigM7l+/WcVtwG4J9//idXUn5S6zPdPQ6DJb4xcqksCq9rDiIpKE7hEy984ehRbsRS0dafXKi4DAkO07GjlsEJE6v3VJemlnRd9TmZNBjdazBKK5dzPPcFW9UnUeRQWzQvWcGI6LjgHGXcM4w6gAzIOpftMKAtJVfVdg+XNefmV2MZQo5CPmFS6cE7dnf1sABU3Ie0TXlqJcVBZZRchLkiuWRaFpK+za3jG9WEIsXgO2tne7f6NqpuKjIs+kjJYQ4gjIOIUTwFd1zwGXRomS13+I0Rv4 X-Forefront-PRVS: 0981815F2F X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(199003)(189002)(2201001)(229853001)(6116002)(2950100001)(3846002)(101416001)(4326007)(586003)(106356001)(2876002)(50986999)(19580395003)(86152002)(48376002)(19580405001)(76176999)(4001430100002)(33646002)(92566002)(8676002)(81156014)(77096005)(7736002)(7846002)(105586002)(50466002)(5001770100001)(107886002)(68736007)(2906002)(47776003)(66066001)(575784001)(189998001)(86362001)(50226002)(81166006)(42186005)(5003940100001)(97736004)(921003)(4720700001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB1475; H:tthayer-HP-Z620-Ubuntu.137.57.187.33; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; 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; BLUPR03MB1475; 23:73cioRqA2Erkc4BtsV6P6/Vu3uXfRGVpRZSSutazp?= =?us-ascii?Q?IWQZDYF+it6GphlW05kNG0XJQ237CYdvHZtomCtceFkVvSD0wkny8T0YnA4X?= =?us-ascii?Q?MM3tpLFz/Sg6ZKHQgRzgBh3LkIVXTBypx+w/O5WjYCicOTyfMDWY92rlvR9h?= =?us-ascii?Q?ok2JQh3KBu9M0ONeSV5OBTNQkmoByRhdZHrfBQLMM3Ux4NgNFdn42J3qhegx?= =?us-ascii?Q?KdncSOQTbYrLRop7P2VccvBV8GF4SFKpeX55iBPoX2QFptd7QirXLP8aJle7?= =?us-ascii?Q?lDVZSKlBXHJQQahjNrPCuSGUC61+jYkUAjGwzJdg5o8+qRXt5J9kigyChVRG?= =?us-ascii?Q?m7XSOLMHh7NLY1eSy6F60ryzIdaIqfhpCS66lPp1K6m6KvMKRwqW3L7oNxqI?= =?us-ascii?Q?XK0MI2dUAvCrCp3IkxeATVRnITK63B/P5LP+J8tJFLTy5Wi+GLLx5hIHFbQc?= =?us-ascii?Q?PAfjOWkFgOkiEM7yXdDw3VoGgPyykga2pHUCKyfqVsDofwTk6KVzxKCbJjxM?= =?us-ascii?Q?qPlHEwTTzydb20UoRkee+/tycjiGWBTABfdx1lEBgCtsok/sS0wlpOJyMd+M?= =?us-ascii?Q?GlVEbIOZOYynVYYZDOiLfnngbnqL9z0T+DEULhDPZv9vKY8juHP5jY7yiiXg?= =?us-ascii?Q?phFoUoHn129NrlsbFJRJZ51LHM0MxgnpRz3RqN/7keGQaVrj5AOMczw3S2Mi?= =?us-ascii?Q?OFu3+qsMnn1LNniSChngV3t8hmqu31RmaPMQ7wzngb7+ecRkEyAekKrg5+Lo?= =?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NdX+AWiChfQBSbHUlbFm10D92et9b6xQ==; 24:qlyTWKf8J9EGagguiSNMyhdK2DknI4bj5JX79cuRDPLvtcMHjjSmUn4NOuEZUSQ+6tHsli8Dq76voUyeWYF/JCqkQaELpSjv1henuWuOkhc=; 7:CNVAFZsc5AqqEQ8eNFsuWwI5KVjuTp25C72XDji+zEQQslhdOxFr832aRDfuj4SgShPnX+77mbo2kCwqBFCl0iWsRpY0mXkk2uYLzCgPQhiPlaexCv/f2AMI7fy7aoq8+4fDoTGwQ2PKNDp6sjaWylKuQLfhONcsaeF8kdDGFjLgvb2NeUFtU5V3UG72YTFD+VapGUa2mi5i3uEXW390jRmEKWQPwgjjWqWj87TY5G9YS4V5pvXyV8WOGNgS5FxJp3xpL5klBQO9+hjBnHx7vQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1475; 20:pKK3C/JmIwei2ZdOU7BL6dq5uTCHPJ25WXxMZ7eal2rV82aLjXIF45wtEaKzNiDtzqoWC2byJKzJ4WqsVe5HNvrMoNHK0z9GZVWkNHoPd1PabI1s29x66LEo4j9nY7DZ1Gb1ZuIgzmWoeItLn39qIz8Fc/ahZRhbrkdBW9jOQMc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1475 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BL2FFO11FD011.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)(189002)(199003)(92566002)(956001)(11100500001)(586003)(2201001)(3846002)(86152002)(97736004)(4326007)(6116002)(2906002)(2876002)(87936001)(189998001)(107886002)(575784001)(6070500001)(86362001)(5003940100001)(66066001)(47776003)(6806005)(33646002)(8936002)(106466001)(76176999)(7736002)(5001770100001)(105606002)(81156014)(81166006)(4001430100002)(3720700001)(50226002)(7846002)(21840400001)(50986999)(85426001)(8676002)(77096005)(19580405001)(2950100001)(16796002)(19580395003)(229853001)(356003)(48376002)(50466002)(68736007)(7099028)(921003)(1121003)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB1544; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD011; 1:qpnJzXGd1YCnidCdU5yw6RC/zSMSzF3fP+gLQlnA4iVJM8+S6mQLUXeTXZRJbrrtIjo2mQ+FEKpLE3IsMrXF7wSFgGkRZcoUYBD6u7h3klyFVgbp3S6fcW3PmeF7CSBtn3qtE3qJzB25C0mNDlNaFO6U8QDvVf6O9uEuKHP/s7Nefi3dz1FA1i2Vw3t5uxb7/bvhrWTkWrJ1Im8iMKiZZ9oS8jiLCy5y1sYmf8wxfBkUh0kUnqPdcaZ7WY5uPDHvo8re3EAGqK2H9KdBAxNpeuxX0575PUVxBbSz6o412+4ibuy7onXXmLs+gsYW45Q+DVlrmyjBjRCb1i8YtqudKSdBZIO3oS8wI1JvvU1DsMHRFl2q9JE2IleYQO5QbRquJ7UKqzXaufNRVm0Xwo5SBA3s2Z0e1OQbB/Zy0oBpMOtfXgypsOjjHatDG2Gr03oRe9du/0GlsPz9aZeRA83mleY8bgPaReuU40Zc7SyKSHf1823gDMZIooiiFpvBp+RHLJsczm6S3+S25P0zyZ1mArXvybGUUZJ+u58qA67hZgY= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1544; 2:MRSANOFMnyS0lesV5OFimpVqTWehDbHgVfJyEAZDMxW51kvl1heUax4ylmJ9djyQI1Kp/uu/HalPRiVQvx27UV+BVk1xJjlJz/6rMnJYTBd99Vu15ptP/xuqFHPyMEw2qgi8iNb3hv0tDqwunJF2/DSFAEA7QeDM1p3sXBbN2GjC+4vu1Bi6K+lyPHFOQt/q; 3:sHTjzwmz06Sw+5icpLC/U2fQ6BLZrEwSc4qCRiczMKkUuGya8/xRrPw51mZ1YQDky8vsDKa3lOs2nzIpMZ8OnEk4cPtOnJmNOYzYyIFmp+A2YAJrq4kOZqwOckYJUg0YypWWFPKYEDXwt43yEeQ2FkAolLL0zNqpe8/9GJ7uaVlMXB9arbReHTJsQh9h+aGvztmxKOI2lqdQV4G0wopiMkUO4ZX0m4JvsB7a5vDB7rLsNQyKveCJ6L/jWKBTPEr9; 25:l0Mlg3x8Jqci0O01ndvW+7zhQ12MPh3TmSaJSLgziDeXWasyPs+onYmxgZWkeR6SkDS04aO9IzCKqRPIZO4bPfzIp8XqkM0Ja68ran8vR/dgI1C+JODc/cZfsAyGdV+cB1KSCCmrffjZbVJqjx5CNmnddB5bsHugMZr6xwrGTicG1Kzp2QIutKNyKG7x7lTddJJow1ZJxhzvkpMKwnHD1mzDDPD9sji9P2Om4QANZ/Cb35L3Zgs3V9bKR8foTsVNlgoHrTTyFjkX45XdOedKGm9e5KUtJ8XqLloPKW2Uj9+ffykl6WBFNYbgJAGj1v6mntNFhQ8kUn+1zvk0lTP8Ru6pCMZ/tByMoA8ik4AjHvlgNHI+VuH84SD2L8dbFS3uaVXt2GuVcX7j5nx8RF0ehPOTUKAl27dqEqmmI4lQyYU= X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:BY2PR0301MB1544; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1544; 20:BXt1XR3C3tZ2/8Kr1HTomqSeCjHz1JOWadNPhL/6BHg0enDfM5RiTphkmBerdmiNVBoATQl/SIYS052F1XKXwVXpXKBsseIjprEneHKb5eZhXD+ZbE7wIoS7qIPclJZYMlVFFepVAJxQmvzAGE5vHtS0SEswStl0sg4ZlmVcF3k=; 4:2MpCujurcBha5DyTqsug+c5ZdaUA/z42vUBUTTIs6b383KSK7nYrPi2y4vpaesRs/Dtzp2HUW7lV0fm/BXfMvKcws5XnJSI9psADAKb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soft-Exchange-Diagnostics: 1; BY2PR0301MB1544; 20:ZqqmZNXNGD8HdSsnAfiKd26Ror3zpSXNDPP/Wtf13UVUTidrEg9rjrTQJE2Mz3/tg1Kl3sTYLN870Dxohgw0kXWodHbZVBrNtHfYhtFCyHpjCrxAUJuHRfVHB2C4vlgOyXIHRWRnSTFIsKrm3uzb78in++a7htAUrQUe6bmoIc8= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2016 13:54:14.1217 (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: BY2PR0301MB1544 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160622_065438_244158_DE178A07 X-CRM114-Status: UNSURE ( 4.83 ) 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 v5 No change --- 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 6091b76..2398d07 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