From: David Miller <davem@davemloft.net>
To: dev@sw.ru
Cc: linux-kernel@vger.kernel.org, devel@openvz.org
Subject: Re: [SPARC64]: resumable error decoding
Date: Thu, 30 Nov 2006 12:29:46 -0800 (PST) [thread overview]
Message-ID: <20061130.122946.44938798.davem@davemloft.net> (raw)
In-Reply-To: <45642430.6030009@sw.ru>
From: Kirill Korotaev <dev@sw.ru>
Date: Wed, 22 Nov 2006 13:19:28 +0300
> > I should add proper support for this, this report is a good reminder
> > :-)
> would be nice :@)
I tested the following patch and it worked fine for me on a T2000, let
me know if it works for you too:
commit 035f09edbbc921b9688a65ec58c0f49b822e605c
Author: David S. Miller <davem@sunset.davemloft.net>
Date: Wed Nov 29 21:16:21 2006 -0800
[SPARC64]: Run ctrl-alt-del action for sun4v powerdown request.
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/arch/sparc64/kernel/traps.c b/arch/sparc64/kernel/traps.c
index ec7a601..ad67784 100644
--- a/arch/sparc64/kernel/traps.c
+++ b/arch/sparc64/kernel/traps.c
@@ -10,7 +10,7 @@
*/
#include <linux/module.h>
-#include <linux/sched.h> /* for jiffies */
+#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/kallsyms.h>
#include <linux/signal.h>
@@ -1873,6 +1873,16 @@ void sun4v_resum_error(struct pt_regs *r
put_cpu();
+ if (ent->err_type == SUN4V_ERR_TYPE_WARNING_RES) {
+ /* If err_type is 0x4, it's a powerdown request. Do
+ * not do the usual resumable error log because that
+ * makes it look like some abnormal error.
+ */
+ printk(KERN_INFO "Power down request...\n");
+ kill_cad_pid(SIGINT, 1);
+ return;
+ }
+
sun4v_log_error(regs, &local_copy, cpu,
KERN_ERR "RESUMABLE ERROR",
&sun4v_resum_oflow_cnt);
prev parent reply other threads:[~2006-11-30 20:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-21 13:42 [SPARC64]: resumable error decoding Kirill Korotaev
2006-11-22 0:11 ` David Miller
2006-11-22 10:19 ` Kirill Korotaev
2006-11-30 20:29 ` David Miller [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=20061130.122946.44938798.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=dev@sw.ru \
--cc=devel@openvz.org \
--cc=linux-kernel@vger.kernel.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