android_kernel_xiaomi_sm7250/arch/ia64/kernel
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
..
cpufreq
acpi-ext.c
acpi-processor.c
acpi.c [IA64] Ignore disabled Local SAPIC Affinity Structure in SRAT 2006-03-22 15:58:46 -08:00
asm-offsets.c
brl_emu.c
cyclone.c [IA64] don't report !sn2 or !summit hardware as an error 2006-03-07 15:26:49 -08:00
efi_stub.S
efi.c
entry.h
entry.S Pull delete-sigdelayed into release branch 2006-03-21 08:17:38 -08:00
fsys.S [IA64] cleanup in fsys.S 2006-02-28 08:53:32 -08:00
gate-data.S
gate.lds.S
gate.S
head.S
ia64_ksyms.c [IA64] Remove duplicate EXPORT_SYMBOLs 2006-02-15 13:23:32 -08:00
init_task.c
iosapic.c
irq_ia64.c
irq_lsapic.c
irq.c
ivt.S [IA64] MCA recovery: kernel context recovery table 2006-03-24 09:49:52 -08:00
jprobes.S
kprobes.c
machvec.c IA64: Use early_parm to handle mvec_name and nomca 2006-03-23 14:27:12 -08:00
Makefile
mca_asm.S
mca_drv_asm.S [IA64] MCA recovery: kernel context recovery table 2006-03-24 09:49:52 -08:00
mca_drv.c [IA64] MCA recovery: kernel context recovery table 2006-03-24 09:49:52 -08:00
mca_drv.h [IA64] MCA recovery: kernel context recovery table 2006-03-24 09:49:52 -08:00
mca.c [IA64] MCA recovery: kernel context recovery table 2006-03-24 09:49:52 -08:00
minstate.h
module.c
numa.c
pal.S
palinfo.c
patch.c [IA64] add init declaration - gate page functions 2006-03-22 16:54:38 -08:00
perfmon_default_smpl.c
perfmon_generic.h
perfmon_itanium.h
perfmon_mckinley.h
perfmon_montecito.h
perfmon.c Pull bsp-removal into release branch 2006-03-21 08:16:21 -08:00
process.c
ptrace.c
sal.c
salinfo.c
semaphore.c
setup.c IA64: Use early_parm to handle mvec_name and nomca 2006-03-23 14:27:12 -08:00
sigframe.h
signal.c
smp.c
smpboot.c Pull bsp-removal into release branch 2006-03-21 08:16:21 -08:00
sys_ia64.c
time.c Pull bsp-removal into release branch 2006-03-21 08:16:21 -08:00
topology.c Pull bsp-removal into release branch 2006-03-21 08:16:21 -08:00
traps.c [IA64] support panic_on_oops sysctl 2006-02-15 15:16:50 -08:00
unaligned.c [IA64] sysctl option to silence unaligned trap warnings 2006-02-28 09:42:23 -08:00
uncached.c
unwind_decoder.c
unwind_i.h
unwind.c
vmlinux.lds.S [IA64] MCA recovery: kernel context recovery table 2006-03-24 09:49:52 -08:00