On a SGI Octane not all ARCS Memory if freed for kernel use
PATCH 1/1 On a SGI Octane not all ARCS Memory if freed for kernel use
Hi
Only tested on a SGI Octane, i dont know if it works on JAZZ SNI_RM or SGI O2.
It frees only 60KB.
There is an ARCMemoryRegisterDump in the attached file.
Signed-off-by Johannes Dickgreber [email protected]
---
On a SGI Octane not all ARCS Memory is freed for kernel use
arch/mips/arc/memory.c +2 -2
@@ -70,11 +70,11 @@ static inline int memtype_classify_arcscase arcs_free:return BOOT_MEM_RAM ;case arcs_atmp: +case arcs_prog:return BOOT_MEM_ROM_DATA ;case arcs_eblock:case arcs_rvpage:case arcs_bmem: -case arcs_prog:case arcs_aperm:return BOOT_MEM_RESERVED ;default :
@@ -90,11 +90,11 @@ static inline int memtype_classify_arc (case arc_fcontig:return BOOT_MEM_RAM ;case arc_atmp: +case arc_prog:return BOOT_MEM_ROM_DATA ;case arc_eblock:case arc_rvpage:case arc_bmem: -case arc_prog:case arc_aperm:return BOOT_MEM_RESERVED ;default :
Oct 5 13:57:31 racer Linux version 2.6.22-octane-2 (root@racer) (gcc version 4.1.1 (Gentoo 4.1.1-r3 p1.10)) #11 Fri Oct 5 13:54:52 CEST 2007 Oct 5 13:57:31 racer ARCH: SGI-IP30 Oct 5 13:57:31 racer PROMLIB: ARC firmware Version 64 Revision 0 Oct 5 13:57:31 racer ARCS MEMORY DESCRIPTOR dump: Oct 5 13:57:31 racer [0,a800000020f32c90]: base<00000000> pages<00000001> type<Exception Block> Oct 5 13:57:31 racer [1,a800000020f32d10]: base<00000001> pages<00000001> type<ARCS Romvec Page> Oct 5 13:57:31 racer [2,a800000020f32cd0]: base<00000002> pages<00000002> type<ARCS Permanent Storage Area> Oct 5 13:57:31 racer [3,a800000020f32a10]: base<00020004> pages<00000efc> type<Generic Free RAM> Oct 5 13:57:31 racer [4,a800000020f34a10]: base<00020f00> pages<00000100> type<ARCS Temp Storage Area> Oct 5 13:57:31 racer [5,a800000020f349d0]: base<00021000> pages<0003eff0> type<Generic Free RAM> Oct 5 13:57:31 racer [6,a800000020f34bd0]: base<0005fff0> pages<0000000f> type<Standalone Program Pages> Oct 5 13:57:31 racer [7,a800000020f34b90]: base<0005ffff> pages<00000001> type<Generic Free RAM> Oct 5 13:57:31 racer CPU revision is: 00000e23 Oct 5 13:57:31 racer FPU revision is: 00000900 Oct 5 13:57:31 racer Silicon Graphics Octane (IP30) support: (c) 2004-2007 Stanislaw Skowronek. Oct 5 13:57:31 racer Detected 1024 MB of physical memory. Oct 5 13:57:31 racer Determined physical RAM map: Oct 5 13:57:31 racer memory: 0000000000004000 @ 0000000000000000 (reserved) Oct 5 13:57:31 racer memory: 0000000000efc000 @ 0000000020004000 (usable) Oct 5 13:57:31 racer memory: 0000000000100000 @ 0000000020f00000 (ROM data) Oct 5 13:57:31 racer memory: 000000003eff0000 @ 0000000021000000 (usable) Oct 5 13:57:31 racer memory: 000000000000f000 @ 000000005fff0000 (reserved) Oct 5 13:57:31 racer memory: 0000000000001000 @ 000000005ffff000 (usable) Oct 5 13:57:31 racer Wasting 7340256 bytes for tracking 131076 unused pages Oct 5 13:57:31 racer On node 0 totalpages: 393216 Oct 5 13:57:31 racer DMA zone: 5376 pages used for memmap Oct 5 13:57:31 racer DMA zone: 0 pages reserved Oct 5 13:57:31 racer DMA zone: 387840 pages, LIFO batch:31 Oct 5 13:57:31 racer Normal zone: 0 pages used for memmap Oct 5 13:57:31 racer Built 1 zonelists. Total pages: 387840