Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758560Ab3HOAWW (ORCPT ); Wed, 14 Aug 2013 20:22:22 -0400 Received: from mailout1.w2.samsung.com ([211.189.100.11]:50398 "EHLO usmailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014Ab3HOAWU (ORCPT ); Wed, 14 Aug 2013 20:22:20 -0400 X-AuditID: cbfec372-b7f046d000001821-40-520c1f3ba72d Date: Wed, 14 Aug 2013 21:22:11 -0300 From: Mauro Carvalho Chehab To: "Naveen N. Rao" Cc: Borislav Petkov , tony.luck@intel.com, bhelgaas@google.com, rostedt@goodmis.org, rjw@sisk.pl, lance.ortiz@hp.com, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] mce: acpi/apei: trace: Enable ghes memory error trace event Message-id: <20130814212211.544ee6a4@concha.lan> In-reply-to: <520B6282.6030906@linux.vnet.ibm.com> References: <1375986471-27113-1-git-send-email-naveen.n.rao@linux.vnet.ibm.com> <1375986471-27113-4-git-send-email-naveen.n.rao@linux.vnet.ibm.com> <20130808163822.67e0828a@samsung.com> <20130810180322.GC4155@pd.tnic> <20130812083355.47c1bae8@samsung.com> <5208D80D.5030206@linux.vnet.ibm.com> <20130812125343.GE18018@pd.tnic> <520A16BD.30201@linux.vnet.ibm.com> <20130813124258.GC4077@pd.tnic> <520A6D98.9060204@linux.vnet.ibm.com> <20130813175809.GE4077@pd.tnic> <520B6282.6030906@linux.vnet.ibm.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; x86_64-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsVy+t/hIF1reZ4gg9OrBS2WNGVYfN7wj83i Q981Jovl+/oZLS7vmsNmcXbecTaL+y1P2S36F/YyWezreMBk8ebCPRYHLo/vrX0sHi37brF7 LNhU6rFr204mj8V7XjJ5PDi0mcXj0eIWRo/Pm+QCOKK4bFJSczLLUov07RK4MlaucCyYwVtx r+cscwPjHq4uRk4OCQETiX277zNB2GISF+6tZ+ti5OIQEljCKLHuNozTwCTxZetTVpAqFgFV iSmv37CD2GwCRhKvGlvA4iICphJHVlxnAmlgFrjLKNG6dB0bSEJYIExiz55msBW8AgYSx7Y0 gzVzAjVv3toAViMk0MQisaHVrouRA+gMJ4mtU30hygUlfky+xwJiMwtoSWze1sQKYctLbF7z lnkCo8AsJGWzkJTNQlK2gJF5FaNoaXFyQXFSeq6hXnFibnFpXrpecn7uJkZIdBTtYHy2weoQ owAHoxIPb0Qbd5AQa2JZcWXuIUYJDmYlEd4zHUAh3pTEyqrUovz4otKc1OJDjEwcnFINjM52 m2Ylv7vTWnW3J1q5L6J5npef2+7u2F/Hd3f9SOac6ZazLzPnedvpGr6rr6Zo/5Xb+eiH1KTp IlfLzf50GrMUxD94kXknV3mZTPXeMkXTUxfC2W2+Pj6SeUXAOPPwl9i/Fm885GLXPoqzqfK+ cmHyatM16ktLPMTy7b6oz57bv2mDYWROtBJLcUaioRZzUXEiAFrJBuNsAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1896 Lines: 42 Em Wed, 14 Aug 2013 16:27:06 +0530 "Naveen N. Rao" escreveu: > On 08/13/2013 11:28 PM, Borislav Petkov wrote: > > On Tue, Aug 13, 2013 at 11:02:08PM +0530, Naveen N. Rao wrote: > >> If I'm not mistaken, even for systems that have EDAC drivers, it looks > >> to me like EDAC can't really decode to the DIMM given what is provided > >> by the bios in the APEI report currently. If and when ghes_edac gains > >> this capability, users will have a choice between raw APEI reports vs. > >> edac processed ones. > > > > Which kinda makes that APEI tracepoint not really useful and we can call > > the one we have already - trace_mc_event - from APEI... > > This looks like a nice option. Mauro, what do you think? I considered calling trace_mc_event directly in APEI, before writing ghes_edac. I decided to implement it as a separate driver due to some reasons: 1) EDAC core needs to know that it should reject "hardware first" drivers. So, any solution would need to talk to EDAC core anyway (or we would need to write some other kind of resource allocation somewhere); 2) EDAC userspace would need to detect the type of memory. Even being crappy, the current way the memory is reported as a single contiguous block at sysfs. So, EDAC userspace is aware that it can't decode the DIMM; 3) If BIOS vendors add later some solution to enumerate the DIMMS per memory controller, channel, socket with APEI, the addition to the existing driver would be trivial. So, while it would work to just call the tracing at APEI, on the current way, I believe that having this part on a separate code is better. Cheers, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/