+ i386-export-memory-more-than-4g-through-proc-iomem.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     i386: export memory more than 4G through /proc/iomem

has been added to the -mm tree.  Its filename is

     i386-export-memory-more-than-4g-through-proc-iomem.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Vivek Goyal <vgoyal@xxxxxxxxxx>

Currently /proc/iomem exports physical memory also apart from io device
memory.  But on i386, it truncates any memory more than 4GB.  This leads to
problems for kexec/kdump.

Kexec reads /proc/iomem to determine the system memory layout and prepares a
memory map based on that and passes it to the kernel being kexeced.  Given the
fact that memory more than 4GB has been truncated, new kernel never gets to
see and use that memory.

Kdump also reads /proc/iomem to determine the physical memory layout of the
system and encodes this informaiton in ELF headers.  After a crash new kernel
parses these ELF headers being used by previous kernel and vmcore is prepared
accordingly.  As memory more than 4GB has been truncated, kdump never sees
that memory and never prepares ELF headers for it.  Hence vmcore is truncated
and limited to 4GB even if there is more physical memory in the system.

This patch exports memory more than 4GB through /proc/iomem on i386.

(akpm: restore this recently-reverted patch - it needs 64-bit resources)

Cc: Greg KH <greg@xxxxxxxxx>
Cc: Maneesh Soni <maneesh@xxxxxxxxxx>
Vivek Goyal <vgoyal@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/i386/kernel/setup.c |    2 --
 1 files changed, 2 deletions(-)

diff -puN arch/i386/kernel/setup.c~i386-export-memory-more-than-4g-through-proc-iomem arch/i386/kernel/setup.c
--- devel/arch/i386/kernel/setup.c~i386-export-memory-more-than-4g-through-proc-iomem	2006-05-13 05:07:59.000000000 -0700
+++ devel-akpm/arch/i386/kernel/setup.c	2006-05-13 05:08:05.000000000 -0700
@@ -1319,8 +1319,6 @@ legacy_init_iomem_resources(struct resou
 	probe_roms();
 	for (i = 0; i < e820.nr_map; i++) {
 		struct resource *res;
-		if (e820.map[i].addr + e820.map[i].size > 0x100000000ULL)
-			continue;
 		res = kzalloc(sizeof(struct resource), GFP_ATOMIC);
 		switch (e820.map[i].type) {
 		case E820_RAM:	res->name = "System RAM"; break;
_

Patches currently in -mm which might be from vgoyal@xxxxxxxxxx are

revert-i386-export-memory-more-than-4g-through-proc-iomem.patch
kconfigurable-resources-core-changes.patch
kconfigurable-resources-core-changes-fix.patch
kconfigurable-resources-driver-pci-changes.patch
kconfigurable-resources-driver-others-changes.patch
kconfigurable-resources-arch-dependent-changes-arch-a-i.patch
kconfigurable-resources-arch-dependent-changes-arch-a-i-fix.patch
kconfigurable-resources-arch-dependent-changes-arch-j-p.patch
kconfigurable-resources-arch-dependent-changes-arch-q-z.patch
typesh-sector_t-and-blkcnt_t-arent-for-userspace.patch
mpt-fusion-driver-initialization-failure-fix.patch
register-hot-added-memory-to-iomem-resource.patch
i386-export-memory-more-than-4g-through-proc-iomem.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux