linux-edac.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@kernel.org>
To: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: <linux-edac@vger.kernel.org>, <linuxarm@huawei.com>, <jcm@redhat.com>
Subject: Re: [RFC PATCH 0/6] CCIX rasdaemon support
Date: Fri, 21 Jun 2019 15:56:00 -0300	[thread overview]
Message-ID: <20190621155600.537b7e68@coco.lan> (raw)
In-Reply-To: <20190614175517.58442-1-Jonathan.Cameron@huawei.com>

Em Sat, 15 Jun 2019 01:55:11 +0800
Jonathan Cameron <Jonathan.Cameron@huawei.com> escreveu:

> This is an RFC because the kernel side is currently under review and
> may change with obvious follow through effects on this.
> 
> https://lore.kernel.org/linux-edac/20190606123654.78973-1-Jonathan.Cameron@huawei.com/

Yeah, we should wait for it to be merged upstream before adding them to
rasdaemon ;-)

> 
> There are a few additional questions around this:
> 1. Divide between specifity of DB fields vs blobs.
>    Where possible I have tried to fully describe the contents via
>    separate fields rather than large blobs.

OK!

>    One common SQL convention
>    that doesn't seem to have been previously done in rasdaemon is to
>    use explicit NULL entries for elements where data is missing.

We tried to be a simple as possible when we added the dB option.

We even opted to use sqllite, instead of having support for 
MySQL or Postgres - Not only due to simplicity, but also because,
if a machine has problems, a database at the same machine may crash.

That's said, with MySQL/Postgres support, the logs could be done
via a remote machine, with would be safer.

-

I don't see much problem on adding such things to new tables or even
add optional support for other dB types, but Changing the existing dBs 
can be a problem.

Perhaps it could have a table somewhere storing the Rasdaemon version,
in order to be able to detect if a table has missing something. If
Rasdaemon version is bigger than the one at the server, it could do some
database changes in order to support new features - including things like
replacing empty fields by NULL.

If you think such changes would be useful, feel free to submit patches.

> 2. Should we split ras-record.c and have the ccix handling in a separate
>    ras-record-ccix.c file or similar as that one is getting rather large.

Makes sense to me. As all projects, it started small. As things are
getting bigger, it makes sense to split some features on separate
files.

Thanks,
Mauro

      parent reply	other threads:[~2019-06-21 18:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-14 17:55 [RFC PATCH 0/6] CCIX rasdaemon support Jonathan Cameron
2019-06-14 17:55 ` [RFC PATCH 1/6] rasdaemon: CCIX: CCIX memory error reporting Jonathan Cameron
2019-06-14 17:55 ` [RFC PATCH 2/6] rasdaemon: CCIX: Cache error support Jonathan Cameron
2019-06-14 17:55 ` [RFC PATCH 3/6] rasdaemon: CCIX: ATC errors Jonathan Cameron
2019-06-14 17:55 ` [RFC PATCH 4/6] rasdaemon: CCIX: Port error handling Jonathan Cameron
2019-06-14 17:55 ` [RFC PATCH 5/6] rasdaemon: CCIX: Link error support Jonathan Cameron
2019-06-14 17:55 ` [RFC PATCH 6/6] rasdaemon: CCIX: Agent Internal " Jonathan Cameron
2019-06-21 18:56 ` Mauro Carvalho Chehab [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=20190621155600.537b7e68@coco.lan \
    --to=mchehab@kernel.org \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=jcm@redhat.com \
    --cc=linux-edac@vger.kernel.org \
    --cc=linuxarm@huawei.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).