Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757798Ab3HMMm1 (ORCPT ); Tue, 13 Aug 2013 08:42:27 -0400 Received: from mailout1.w2.samsung.com ([211.189.100.11]:39316 "EHLO usmailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756770Ab3HMMmZ (ORCPT ); Tue, 13 Aug 2013 08:42:25 -0400 X-AuditID: cbfec373-b7fca6d0000018b9-da-520a29b0ce92 Date: Tue, 13 Aug 2013 09:41:47 -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, Aristeu Rozanski Filho Subject: Re: [PATCH 3/3] mce: acpi/apei: trace: Enable ghes memory error trace event Message-id: <20130813094147.062317f8@concha.lan> In-reply-to: <520A1B5E.8040105@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> <20130812114404.3bd64fa0@samsung.com> <520A1B5E.8040105@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+NgFnrELMWRmVeSWpSXmKPExsVy+t/hIN0NmlxBBu9OcFm0nfjNZrGkKcPi 84Z/bBYf+q4xWSzf189ocXnXHDaLs/OOs1ncb3nKbtG/sJfJYl/HAyaLNxfusThwe3xv7WPx aNl3i91jwaZSj13bdjJ5LN7zksnjwaHNLB7v911l83i0uIXR4/MmuQDOKC6blNSczLLUIn27 BK6Mfy/msRZ081S0vd3O1MB4mrOLkYNDQsBEYvscsy5GTiBTTOLCvfVsXYxcHEICSxglTj15 zQKSEBJoZJK4tSsYpJ5FQFXi9vk6kDCbgJHEq8YWVhBbRMBU4siK60wgvcwC3UwSz//dZANJ CAuESezZ08wEYvMKGEhM2rsabCYnUPOCf6uZIJb9ZJJo6NjHCHGQk8TWqb4Q9YISPybfA6tn FtCS2LytiRXClpfYvOYt8wRGgVlIymYhKZuFpGwBI/MqRtHS4uSC4qT0XCO94sTc4tK8dL3k /NxNjJB4Kd7B+GKD1SFGAQ5GJR7ejI8cQUKsiWXFlbmHGCU4mJVEeOMYuYKEeFMSK6tSi/Lj i0pzUosPMTJxcEo1MCZrymsvylvBGus4z7aM9W36FFP7VQ7By1VUv1kKWlcmFMz8nS13k3um 3YoAjTcFjDItxyr/9ixwme6fNfvPjp5rJ5a+XKcSuLZIRP2nnxtPzqScybvvbar5at2bzfnV bEfmQuH5YYpTYh2SWm6szSiOmrL0gliP6BSm5scTez+HfbglfemxsRJLcUaioRZzUXEiAOuf Mq91AgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1757 Lines: 40 Em Tue, 13 Aug 2013 17:11:18 +0530 "Naveen N. Rao" escreveu: > On 08/12/2013 08:14 PM, Mauro Carvalho Chehab wrote: > >> But, this only seems to expose the APEI data as a string > >> and doesn't look to really make all the fields available to user-space > >> in a raw manner. Not sure how well this can be utilised by a user-space > >> tool. Do you have suggestions on how we can do this? > > > > There's already an userspace tool that handes it: > > https://git.fedorahosted.org/cgit/rasdaemon.git/ > > > > What is missing there on the current version is the bits that would allow > > to translate from APEI way to report an error (memory node, card, module, > > bank, device) into a DIMM label[1]. > > If I'm reading this right, all APEI data seems to be squashed into a > string in mc_event. Yes. We had lots of discussion about how to map memory errors over the last couple years. Basically, it was decided that the information that could be decoded into a DIMM to be mapped as integers, and all other driver-specific data to be added as strings. On the tests I did, different machines/vendors fill the APEI data on a different way, with makes harder to associate them to a DIMM. > Also, the fru id/text don't seem to be passed to user-space. That's likely because on the systems I tested, those fields were not filled (or maybe they appeared on a latter ACPI version). We should add them also the same string as the other fields there at ghes_edac. Regards, 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/