linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MMU_init buglet in 2.4.0-mvista_010216
@ 2001-03-11  5:02 David Blythe
  2001-03-11  5:46 ` Frank Rowand
  2001-03-11 22:03 ` Grant Erickson
  0 siblings, 2 replies; 5+ messages in thread
From: David Blythe @ 2001-03-11  5:02 UTC (permalink / raw)
  To: linuxppc-embedded

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

memory sizes > 16M but not a multiple of 16M not quite right.  for the
24M config i was playing with it manifests itself as a tlb miss/kernel
stack overflow.

patch attached.
	david

[-- Attachment #2: d7 --]
[-- Type: text/plain, Size: 561 bytes --]

Index: arch/ppc/mm/init.c
===================================================================
diff -u -r1.1.1.4 init.c
--- arch/ppc/mm/init.c	2001/02/21 00:52:57	1.1.1.4
+++ arch/ppc/mm/init.c	2001/03/11 04:52:27
@@ -1015,7 +1015,7 @@
 	/* -----  pin 4MB chunks of memory  ----- */

 	if (size_pinned < size_DRAM) {
-		pinned_tlbs = ((size_DRAM - size_pinned) / SIZE_4MB);
+		pinned_tlbs += ((size_DRAM - size_pinned) / SIZE_4MB);

 		if (pinned_tlbs > PPC4xx_MAX_PINNED_TLB) {
 			printk(KERN_ERR "MMU_init(): memory configuration requires %d tlb entries.\n",

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

end of thread, other threads:[~2001-03-12 19:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-11  5:02 MMU_init buglet in 2.4.0-mvista_010216 David Blythe
2001-03-11  5:46 ` Frank Rowand
2001-03-11 16:27   ` Dan Malek
2001-03-12 19:36     ` Frank Rowand
2001-03-11 22:03 ` Grant Erickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).