kernel_optimize_test/arch/ia64
Russ Anderson d2a28ad9fa [IA64] MCA recovery: kernel context recovery table
Memory errors encountered by user applications may surface
when the CPU is running in kernel context.  The current code
will not attempt recovery if the MCA surfaces in kernel
context (privilage mode 0).  This patch adds a check for cases
where the user initiated the load that surfaces in kernel
interrupt code.

An example is a user process lauching a load from memory
and the data in memory had bad ECC.  Before the bad data
gets to the CPU register, and interrupt comes in.  The
code jumps to the IVT interrupt entry point and begins
execution in kernel context.  The process of saving the
user registers (SAVE_REST) causes the bad data to be loaded
into a CPU register, triggering the MCA.  The MCA surfaces in
kernel context, even though the load was initiated from
user context.

As suggested by David and Tony, this patch uses an exception
table like approach, puting the tagged recovery addresses in
a searchable table.  One difference from the exception table
is that MCAs do not surface in precise places (such as with
a TLB miss), so instead of tagging specific instructions,
address ranges are registers.  A single macro is used to do
the tagging, with the input parameter being the label
of the starting address and the macro being the ending
address.  This limits clutter in the code.

This patch only tags one spot, the interrupt ivt entry.
Testing showed that spot to be a "heavy hitter" with
MCAs surfacing while saving user registers.  Other spots
can be added as needed by adding a single macro.

Signed-off-by: Russ Anderson (rja@sgi.com)
Signed-off-by: Tony Luck <tony.luck@intel.com>
2006-03-24 09:49:52 -08:00
..
configs Pull bsp-removal into release branch 2006-03-21 08:16:21 -08:00
dig [PATCH] drive_info removal outside of arch/i386 2006-02-07 20:56:47 -05:00
hp [PATCH] remove unused tmp_buf_sem's 2006-01-14 10:41:42 -08:00
ia32 [IA64] sys32_signal() forgets to initialize ->sa_mask 2006-02-09 14:41:41 -08:00
kernel [IA64] MCA recovery: kernel context recovery table 2006-03-24 09:49:52 -08:00
lib Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 2005-10-28 21:09:26 -07:00
mm [IA64] add init declaration - nolwsys 2006-03-22 16:54:51 -08:00
oprofile [PATCH] remove gcc-2 checks 2006-01-08 20:14:02 -08:00
pci [IA64] Fix pcibios_setup 2006-02-27 15:37:41 -08:00
scripts Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sn [IA64] sn_check_intr: use ia64_get_irr() 2006-03-22 14:36:55 -08:00
defconfig [IA64] refresh default config files 2006-02-27 17:07:14 -08:00
install.sh Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig Pull bsp-removal into release branch 2006-03-21 08:16:21 -08:00
Kconfig.debug [PATCH] Move Kprobes and Oprofile to "Instrumentation Support" menu 2005-11-07 07:53:35 -08:00
Makefile [PATCH] remove gcc-2 checks 2006-01-08 20:14:02 -08:00
module.lds Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00