[IA64] printing support for MCA/INIT
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Tue, 26 Sep 2006 21:44:37 +0000 (14:44 -0700)
committerTony Luck <tony.luck@intel.com>
Tue, 26 Sep 2006 21:44:37 +0000 (14:44 -0700)
commit43ed3baf623410b3fa6ca14a9d3f6deca3493c56
treeb086b18adff2af6b2633e239e9d1b26d764ae333
parent816add4e986499145135c4014a7c8a8857f9f3c3
[IA64] printing support for MCA/INIT

Printing message to console from MCA/INIT handler is useful,
however doing oops_in_progress = 1 in them exactly makes
something in kernel wrong. Especially it sounds ugly if
system goes wrong after returning from recoverable MCA.

This patch adds ia64_mca_printk() function that collects
messages into temporary-not-so-large message buffer during
in MCA/INIT environment and print them out later, after
returning to normal context or when handlers determine to
down the system.

Also this print function is exported for use in extensional
MCA handler. It would be useful to describe detail about
recovery.

NOTE:
I don't think it is sane thing if temporary message buffer
is enlarged enough to hold whole stack dumps from INIT, so
buffering is disabled during stack dump from INIT-monarch
(= default_monarch_init_process). please fix it in future.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Acked-by: Russ Anderson <rja@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/mca.c
arch/ia64/kernel/mca_drv.c
arch/ia64/kernel/mca_drv.h
arch/ia64/kernel/salinfo.c