summaryrefslogtreecommitdiff
path: root/kexec/kexec.h
diff options
context:
space:
mode:
authorJay Lan <jlan@sgi.com>2008-09-12 13:10:34 -0700
committerSimon Horman <horms@verge.net.au>2008-09-24 09:49:01 +1000
commitc466edd86b31a9d34cde3db24b093223108627d2 (patch)
treef2fca0e250e878d86cb756fe1a1f3f73445c45e3 /kexec/kexec.h
parentb422925d35151caa65471c0f0d774727bde4a347 (diff)
downloadkexec-tools-c466edd86b31a9d34cde3db24b093223108627d2.tar.gz
IA64: do not include uncached memory to vmcore
Currently a memory segment in memory map with attribute of EFI_MEMORY_UC is denoted as "System RAM" in /proc/iomem, while memory of attribute (EFI_MEMORY_WB|EFI_MEMORY_UC) is also labeled the same. The kexec utility then includes uncached memory as part of vmcore. The kdump kernel may MCA when it tries to save the vmcore to a disk. A normal "cached" access can cause MCAs. Since kexec assembled memory ranges with memory tagged as "System RAM", the uncached memory will be excluded if it is labeled differently. Simon, since only IA64 will create "Uncached RAM" label, i do not make changes to other arch. Our HP machine in the lab is dead. I am sorry that i can not test against other IA64 systems (than SGI's). Feedback is very much appreciated. The corresponding kernel patch is needed to test this kexec patch: http://marc.info/?l=linux-ia64&m=122122791230130&w=2 This patch without the kernel patch will have no effect and do no harm. The kernel patch has been commited as "[IA64] kexec fails on systems with blocks of uncached memory". Signed-off-by: Jay Lan <jlan@sgi.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec.h')
-rw-r--r--kexec/kexec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kexec/kexec.h b/kexec/kexec.h
index 8421c29..1149e76 100644
--- a/kexec/kexec.h
+++ b/kexec/kexec.h
@@ -109,6 +109,7 @@ struct memory_range {
#define RANGE_RESERVED 1
#define RANGE_ACPI 2
#define RANGE_ACPI_NVS 3
+#define RANGE_UNCACHED 4
};
struct kexec_info {