From: "Will Liang (梁永鉉)" <Will.Liang@quantatw.com>
To: Andrew Jeffery <andrew@aj.id.au>,
"openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>,
Stefan M Schaeckeler <sschaeck@cisco.com>
Cc: "dkodihal@in.ibm.com" <dkodihal@in.ibm.com>
Subject: RE: ECC memory of BMC
Date: Fri, 22 Feb 2019 06:37:10 +0000 [thread overview]
Message-ID: <ba8b8543707747e191fbf64cb3f81619@quantatw.com> (raw)
In-Reply-To: <f2602a79-6d08-4154-936d-d23e5641a7ec@www.fastmail.com>
Hi,
> -----Original Message-----
> From: Andrew Jeffery [mailto:andrew@aj.id.au]
> Sent: Friday, February 22, 2019 1:55 PM
> To: Will Liang (梁永鉉) <Will.Liang@quantatw.com>;
> openbmc@lists.ozlabs.org; Stefan M Schaeckeler <sschaeck@cisco.com>
> Cc: dkodihal@in.ibm.com
> Subject: Re: ECC memory of BMC
>
> On Fri, 22 Feb 2019, at 16:22, Stefan Schaeckeler (sschaeck) wrote:
> > Hi Will,
> >
> > On 2/21/19, 6:00 PM, "Will Liang (梁永鉉)" <Will.Liang@quantatw.com>
> wrote:
> >
> > > > > What we want to do is to record the ECC events to SEL.
> > > > >
> > > > > we are considering to create new dbus and a service.
> > > >
> > > > Right; I think you need to create a new service that polls the
> > > > sysfs interface for the EDAC device, and then use phosphor-logging to
> create error logs.
> > >
> > > We consider creating the following objects for D-Bus:
> > > -bus name : /xyz/openbmc_project/ECC -object path :
> > > /xyz/openbmc_project/ECC/status -interface :
> > > xyz.openbmc_project.Memory.MemoryECC
> > >
> > > and error types for xyz::openbmc_project::Memory::Ecc::Error::ceCount
> and "ueCount"
> > > and "isLoggingLimitReached" for phosphor-logging error message.
> >
> >
> > Note, the driver also logs the addresses of the recoverable and
> > un-recoverable errors. Perhaps you want to expose them, too?
> >
> > The edac framework is unfortunately not exposing them through sysfs.
> > They get printed through "edac_mc_handle_error()" as
> > printk(KERN_WARNING, ...) and look like
> >
> > root@aspeed-arm:# dmesg | grep EDAC
> > [ 1718.900000] EDAC MC0: 1 CE address(es) not available on
> > mc#0csrow#0channel#0 (csrow:0 channel:0 page:0x0 offset:0x0 grain:0
> > syndrome:0x0)
> > [ 1718.900000] EDAC MC0: 1 CE on mc#0csrow#0channel#0 (csrow:0
> > channel:0 page:0x80000 offset:0x0 grain:0 syndrome:0x0)
> >
> >
> > I'm not sure if there is an elegant way for userspace to retrieve messages
> from
> > the kernel ring buffer.
> >
>
> Lets not start scraping dmesg. It's not considered part of the kernel ABI.
We do not expose error message from EDAC driver.
We only want to fetch recoverable/un-recoverable counts and record the ECC log.
Therefore, we need a service to poll the EDAC driver.
Will
prev parent reply other threads:[~2019-02-22 6:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-21 6:25 ECC memory of BMC Will Liang (梁永鉉)
2019-02-21 7:10 ` Andrew Jeffery
2019-02-21 7:27 ` Will Liang (梁永鉉)
2019-02-21 16:56 ` Stefan Schaeckeler (sschaeck)
2019-02-22 5:52 ` Stefan Schaeckeler (sschaeck)
2019-02-22 7:48 ` Will Liang (梁永鉉)
2019-02-22 0:28 ` Andrew Jeffery
2019-02-22 2:00 ` Will Liang (梁永鉉)
2019-02-22 5:52 ` Stefan Schaeckeler (sschaeck)
2019-02-22 5:55 ` Andrew Jeffery
2019-02-22 6:37 ` Will Liang (梁永鉉) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ba8b8543707747e191fbf64cb3f81619@quantatw.com \
--to=will.liang@quantatw.com \
--cc=andrew@aj.id.au \
--cc=dkodihal@in.ibm.com \
--cc=openbmc@lists.ozlabs.org \
--cc=sschaeck@cisco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.