Skip to contentSkip to conversation

Minor srmmu fixes

SPARC32 Applied Keith M Wesolowski 2 participants 2 messages Jan 9, 2004

lore
Share & tools
lore
#0 lore raw

Here are a few small srmmu bits that didn't get into the last patch. Also, this removes the needless declaration Pete noticed. Dave, please apply.

Note to users: This should now eliminate the last of the oopses/BUGs caused by srmmu issues. It does not yet correct the out-of-nocache problem.

=== arch/sparc/mm/fault.c 1.15 vs edited ==--- 1.15/arch/sparc/mm/fault.c Wed Jan 7 23:34:45 2004
+++ edited/arch/sparc/mm/fault.c Wed Jan 7 23:39:56 2004
@@ -36,7 +36,6 @@

#define ELEMENTS(arr) (sizeof (arr)/sizeof (arr[0]))

-extern struct sparc_phys_banks sp_banks[SPARC_PHYS_BANKS+1];
extern int prom_node_root;

/* At boot time we determine these two values necessary for setting
=== arch/sparc/mm/srmmu.c 1.38 vs edited ==--- 1.38/arch/sparc/mm/srmmu.c Wed Jan 7 23:34:45 2004
+++ edited/arch/sparc/mm/srmmu.c Thu Jan 8 18:36:33 2004
@@ -349,7 +349,7 @@
vaddr, (unsigned long)SRMMU_NOCACHE_VADDR);
BUG();
}
- if (vaddr+size >= srmmu_nocache_end) {
+ if (vaddr+size > srmmu_nocache_end) {
printk("Vaddr %lx is bigger than nocache end 0x%lx\n",
vaddr, srmmu_nocache_end);
BUG();
@@ -1071,7 +1071,7 @@
}
if (start > (0xffffffffUL - SRMMU_PMD_SIZE_SOFT))
break;
- start = (start + SRMMU_PMD_SIZE) & SRMMU_PMD_MASK;
+ start = (start + SRMMU_PMD_SIZE_SOFT) & SRMMU_PMD_MASK_SOFT;
}
}

@@ -1101,7 +1101,7 @@
}
if (start > (0xffffffffUL - SRMMU_PMD_SIZE_SOFT))
break;
- start = (start + SRMMU_PMD_SIZE) & SRMMU_PMD_MASK;
+ start = (start + SRMMU_PMD_SIZE_SOFT) & SRMMU_PMD_MASK_SOFT;
}
}

Signature · 4 lines
Keith M Wesolowski <[email protected]> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
	"May Buddha bless all stubborn people!"
				-- Uliassutai Karakorum Blake
#1 lore raw
Quoted 3 lines · On Thu, 8 Jan 2004 22:54:14 -0800 Keith M Wesolowski <[email protected]>…

Here are a few small srmmu bits that didn't get into the last patch. Also, this removes the needless declaration Pete noticed. Dave, please apply.

Applied, thanks Keith.