Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751827AbcDOJvF (ORCPT ); Fri, 15 Apr 2016 05:51:05 -0400 Received: from mailout2.w2.samsung.com ([211.189.100.12]:24904 "EHLO usmailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750920AbcDOJvA (ORCPT ); Fri, 15 Apr 2016 05:51:00 -0400 X-Greylist: delayed 602 seconds by postgrey-1.27 at vger.kernel.org; Fri, 15 Apr 2016 05:50:59 EDT X-AuditID: cbfec372-f79f76d0000012ed-de-5710b722c026 Date: Fri, 15 Apr 2016 06:40:42 -0300 From: Mauro Carvalho Chehab To: Rob Herring Cc: tthayer@opensource.altera.com, bp@alien8.de, dougthompson@xmission.com, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux@arm.linux.org.uk, dinguyen@opensource.altera.com, grant.likely@linaro.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tthayer.linux@gmail.com Subject: Re: [PATCH] Add EDAC peripheral init functions & Ethernet EDAC. Message-id: <20160415064042.330406ab.m.chehab@samsung.com> In-reply-to: <20160414143501.GA25212@rob-hp-laptop> References: <1460499181-23080-1-git-send-email-tthayer@opensource.altera.com> <20160414143501.GA25212@rob-hp-laptop> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsVy+t/hIF2l7QLhBlMfcFl83vCPzWL+kXOs Fqs+rWG2uLrsLJNF/5uFrBYH/uxgtDj3aiWjxabH11gtFrYtYbG4cKqByeLyrjlsFrcv81os vX6RyWLC9LUsFv/37GC3uPf6F7vFxRsyDoIe31v7WDzWzFvD6NHS3MPmcbmvl8lj56y77B4r l39h89i0qpPN4861PWwem5fUe/Rfm8Tu8XmTnMeUQ+0sATxRXDYpqTmZZalF+nYJXBndO+aw FCzhqWh67drA+Jizi5GTQ0LARGLn1F0sELaYxIV769m6GLk4hASWMEqsXnecBcL5xihxf9JN dpAqFgFVicdvmxhBbDYBI4lXjS2sILaIgKLE77ZprCANzALbmCVu7J0MlhAW8JA42/qNCcTm FbCS2DdzG5jNKWAs0fRjNxuILSRQJnH501RGiDOcJfZM38wOUS8o8WPyPbDzmAW0JDZva2KF sOUlNq95yzyBUWAWkrJZSMpmISlbwMi8ilG0tDi5oDgpPddQrzgxt7g0L10vOT93EyMkFot2 MD7bYHWIUYCDUYmH90GsQLgQa2JZcWXuIUYJDmYlEd5pW4BCvCmJlVWpRfnxRaU5qcWHGKU5 WJTEeVNZfUKFBNITS1KzU1MLUotgskwcnFINjHufz2bnjjNlj5Vo+c9j4Z30ZMHMw8dWq/Q/ Uy4X7/1j+U7Eg8vq34k5N941yD9N3mpb4yLIx936y0D+Z9lxxi+Pj59slXo6/2h+iKXv3Q2r Ivjim7U7JOwsF26MbxMtP9/j5bVc0e/8pzc/2b/XGKzebMBpv/j9G7W+lJh0258Na392PjZJ VmIpzkg01GIuKk4EAGj5inzBAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1538 Lines: 34 Em Thu, 14 Apr 2016 09:35:01 -0500 Rob Herring escreveu: > On Tue, Apr 12, 2016 at 05:12:55PM -0500, tthayer@opensource.altera.com wrote: > > This patch set adds the memory initialization functions for Altera's > > Arria10 peripherals, the first of which is the Ethernet EDAC. The > > first 3 patches add the memory initialization functionality. The > > last 3 patches add Ethernet EDAC support. > > The ethernet part seems a bit strange to me to put under EDAC as EDAC > is primarily memory controller ECC (and caches to some extent). Also you > would not halt the system in case of an UC, but rather just drop the > frame. This would need to be part of the ethernet driver in that case. > > Of course, given that ethernet frames already have a CRC, ECC of the > FIFO seems a bit redundant. Actually, EDAC was conceived to be a way to report hardware errors, and, although the main use case is for memory and CPU errors, there are a few drivers that report errors at PCI bus. So, I don't see much problems using it to report other hardware errors, like the ones associated with the Ethernet hardware. That's said, things like Ethernet frame errors are better handled via the network drivers. I would report via EDAC only errors associated with the Ethernet hardware that would cause the hardware to malfunction. Btw, an UC error won't cause the system to halt, except if a UC memory error happens and the EDAC core is loaded with an special modprobe parameter (edac_mc_panic_on_ue = 1). -- Thanks, Mauro