linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] - Fix kernel_physical_mapping_init() for large x86 systems
@ 2008-07-16 16:11 Jack Steiner
  2008-07-16 16:28 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Jack Steiner @ 2008-07-16 16:11 UTC (permalink / raw)
  To: mingo, tglx; +Cc: linux-mm, linux-kernel

Fix bug in kernel_physical_mapping_init() that causes kernel
page table to be built incorrectly for systems with greater
than 512GB of memory.

Signed-off-by: Jack Steiner <steiner@sgi.com>

---
 arch/x86/mm/init_64.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/arch/x86/mm/init_64.c
===================================================================
--- linux.orig/arch/x86/mm/init_64.c	2008-07-15 16:43:49.000000000 -0500
+++ linux/arch/x86/mm/init_64.c	2008-07-16 11:00:25.000000000 -0500
@@ -644,7 +644,7 @@ static unsigned long __init kernel_physi
 		unsigned long pud_phys;
 		pud_t *pud;
 
-		next = start + PGDIR_SIZE;
+		next = (start + PGDIR_SIZE) & PGDIR_MASK;
 		if (next > end)
 			next = end;
 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH] - Fix kernel_physical_mapping_init() for large x86 systems
  2008-07-16 16:11 [PATCH] - Fix kernel_physical_mapping_init() for large x86 systems Jack Steiner
@ 2008-07-16 16:28 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-07-16 16:28 UTC (permalink / raw)
  To: Jack Steiner; +Cc: tglx, linux-mm, linux-kernel, H. Peter Anvin, Yinghai Lu

* Jack Steiner <steiner@sgi.com> wrote:

> Fix bug in kernel_physical_mapping_init() that causes kernel page 
> table to be built incorrectly for systems with greater than 512GB of 
> memory.
> 
> Signed-off-by: Jack Steiner <steiner@sgi.com>

applied to tip/x86/urgent - thanks Jack.

	Ingo

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2008-07-16 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-16 16:11 [PATCH] - Fix kernel_physical_mapping_init() for large x86 systems Jack Steiner
2008-07-16 16:28 ` Ingo Molnar

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