public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]IA64: assign a distinguishable label to uncached memory in
@ 2008-09-11 23:00 Jay Lan
  2008-09-12  7:55 ` [PATCH]IA64: assign a distinguishable label to uncached memory Bernhard Walle
  2008-09-15  5:10 ` Simon Horman
  0 siblings, 2 replies; 7+ messages in thread
From: Jay Lan @ 2008-09-11 23:00 UTC (permalink / raw)
  To: linux-ia64; +Cc: Jack Steiner, kexec

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

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 MCA'ed when it tries to save the vmcore to a disk. A normal
"cached" access may cause MCAs.

This patch would label memory with attribute of EFI_MEMORY_UC only as
"Uncached RAM" so that kexec would know not to include it in the vmcore.
I will submit a separate kexec-tools patch to the kexec list.

Signed-off-by: Jay Lan <jlan@sgi.com>



[-- Attachment #2: UC-mem --]
[-- Type: text/plain, Size: 647 bytes --]

---
 arch/ia64/kernel/efi.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Index: linux/arch/ia64/kernel/efi.c
===================================================================
--- linux.orig/arch/ia64/kernel/efi.c
+++ linux/arch/ia64/kernel/efi.c
@@ -1232,9 +1232,10 @@ efi_initialize_iomem_resources(struct re
 				if (md->attribute & EFI_MEMORY_WP) {
 					name = "System ROM";
 					flags |= IORESOURCE_READONLY;
-				} else {
-					name = "System RAM";
-				}
+				} else if (md->attribute == EFI_MEMORY_UC)
+						name = "Uncached RAM";
+					else
+						name = "System RAM";
 				break;
 
 			case EFI_ACPI_MEMORY_NVS:


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-09-15 23:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 23:00 [PATCH]IA64: assign a distinguishable label to uncached memory in Jay Lan
2008-09-12  7:55 ` [PATCH]IA64: assign a distinguishable label to uncached memory Bernhard Walle
2008-09-12  7:58   ` Bernhard Walle
2008-09-12 13:57     ` Jay Lan
2008-09-15  5:10 ` Simon Horman
2008-09-15 17:08   ` Jay Lan
2008-09-15 23:49     ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox