From: Paul Mackerras <paulus@samba.org>
To: linas@austin.ibm.com
Cc: linuxppc64-dev@lists.linuxppc.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [2.6] PPC64: log firmware errors during boot.
Date: Fri, 2 Jul 2004 20:44:38 +1000 [thread overview]
Message-ID: <16613.15510.325099.273419@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20040701160614.I21634@forte.austin.ibm.com>
linas@austin.ibm.com writes:
> Yes, but rtasd starts up late in the book process. Most of the
> "interesting" manipulations with firmware are old history by then,
> and thus, any firmware errors encountered during the boot were never
> logged.
It all makes a lot more sense with the change to set ppc_md.log_error
to pSeries_log_error. I do wonder why we need a ppc_md function
pointer for that though, given how pSeries-specific the error log
format is.
> If the parms aren't set up, then the rtas_error_log_max is zero,
> and, as a result, the message is never logged. By initializing
> rtas_error_log_max to the correct non-zero value, the errors can
> get logged.
This looks to me like the setting of rtas_error_log_max should be done
much earlier, in pSeries_init_early, say. Shouldn't we be using the
rtas_error_log_max variable in __fetch_rtas_last_error, too, rather
than the constant RTAS_ERROR_LOG_MAX?
> -- So the decision was wisely made to move this all to user-space.
> But what shall the communications link between user-space and kernel be?
> Somebody, somewhere, I know not who or why, decided that they should
> go into syslog. And so here we are.
Netlink is the usual solution to this sort of problem. I think it
would be reasonable to printk RTAS error events with a severity of
fatal and maybe even of error. Warnings and events should just get
sent to rtasd.
Oh, and it would be useful to have a comment in the code that calls
__fetch_rtas_last_error that says that we are only calling it if the
RTAS call could not perform its function due to a hardware error. In
other words the -1 return isn't a generic "didn't work" code but more
specifically a "hardware error" code.
Paul.
next prev parent reply other threads:[~2004-07-02 10:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-30 0:10 linas
2004-06-30 10:55 ` Paul Mackerras
2004-07-01 21:06 ` linas
2004-07-02 5:36 ` Greg KH
2004-07-02 10:44 ` Paul Mackerras [this message]
2004-07-02 14:15 ` Hollis Blanchard
2004-07-02 16:18 ` Nathan Fontenot
2004-07-02 17:29 ` Hollis Blanchard
2004-07-02 18:13 ` linas
2004-07-02 18:27 ` Greg KH
2004-07-02 18:55 ` Dave Hansen
2004-07-02 19:44 ` Greg KH
2004-07-06 13:24 ` Jake Moilanen
2004-07-06 13:41 ` Jake Moilanen
2004-07-08 16:03 ` linas
2004-07-08 17:55 ` Jake Moilanen
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=16613.15510.325099.273419@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=linas@austin.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc64-dev@lists.linuxppc.org \
/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
all inboxes | Powered by JetHome®