Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
munjeni
Old
(Last edited by munjeni; 8th July 2011 at 07:42 PM.)
#1  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 8306
Posts: 3,321
Join Date: Jun 2011

 
DONATE TO ME
Default [dev] memory mapping!

sorry my bug
 
munjeni
Old
(Last edited by munjeni; 10th August 2011 at 12:21 AM.)
#2  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 8306
Posts: 3,321
Join Date: Jun 2011

 
DONATE TO ME
Becouse photon have 384M memory but our android port in this time have 290M I will try to add another bank for more memmory. Photon memory map dumped from WinCe is:

Code:
v=virtual
p=physhical
==========================================================
v80000000-8cb00000 -> p00100000-0cc00000   cb00000
v8cb00000-8cc00000 -> p00000000-00100000    100000
v8cc00000-8cd00000 -> p0ff00000-10000000    100000
v8cd00000-8da00000 -> p0f200000-0ff00000    d00000
v90000000-90100000 -> p98000000-98100000    100000
v90100000-90200000 -> p9c000000-9c100000    100000
v90200000-90f00000 -> pac000000-acd00000    d00000
v90f00000-91000000 -> pa0e00000-a0f00000    100000
v91000000-91100000 -> pa0d00000-a0e00000    100000
v91100000-91200000 -> pa0d00000-a0e00000    100000
v91200000-91300000 -> pa0c00000-a0d00000    100000
v91300000-91500000 -> pa0a00000-a0c00000    200000
v91500000-91600000 -> pa0800000-a0900000    100000
v91600000-91700000 -> pa0700000-a0800000    100000
v91700000-91800000 -> pa0600000-a0700000    100000
v91800000-91900000 -> pa0500000-a0600000    100000
v91900000-91a00000 -> pa0400000-a0500000    100000
v91a00000-91c00000 -> pa0200000-a0400000    200000
v91c00000-91d00000 -> pa0100000-a0200000    100000
v91d00000-91e00000 -> pa0000000-a0100000    100000
v91e00000-91f00000 -> paa600000-aa700000    100000
v91f00000-92000000 -> paa500000-aa600000    100000
v92000000-92100000 -> paa300000-aa400000    100000
v92100000-92200000 -> pa8100000-a8200000    100000
v92200000-92300000 -> pa9d00000-a9e00000    100000
v92300000-92400000 -> pa9900000-a9a00000    100000
v92400000-92500000 -> pa8700000-a8800000    100000
v92500000-92600000 -> paa200000-aa300000    100000
v92600000-92700000 -> pa9c00000-a9d00000    100000
v92700000-92800000 -> pa9b00000-a9c00000    100000
v92800000-92900000 -> pa9a00000-a9b00000    100000
v92900000-92a00000 -> pa9800000-a9900000    100000
v92a00000-92b00000 -> pa9700000-a9800000    100000
v92b00000-92c00000 -> pa9600000-a9700000    100000
v92c00000-92d00000 -> pa9500000-a9600000    100000
v92d00000-92e00000 -> pa9400000-a9500000    100000
v92e00000-92f00000 -> pa9300000-a9400000    100000
v92f00000-93000000 -> pa9200000-a9300000    100000
v93000000-93100000 -> pa9100000-a9200000    100000
v93100000-93200000 -> pa9000000-a9100000    100000
v93200000-93300000 -> pa8800000-a8900000    100000
v93300000-93400000 -> pa8600000-a8700000    100000
v93400000-93500000 -> pa8500000-a8600000    100000
v93500000-93600000 -> pa8300000-a8400000    100000
v93600000-93700000 -> pa8200000-a8300000    100000
v93700000-93800000 -> pa8200000-a8300000    100000
v93800000-93900000 -> pa8200000-a8300000    100000
v93900000-93a00000 -> pa8200000-a8300000    100000
v93a00000-93b00000 -> pa8200000-a8300000    100000
v93b00000-93c00000 -> pa8000000-a8100000    100000
v93c00000-94100000 -> pc0000000-c0500000    500000
v94100000-94200000 -> p80100000-80200000    100000
v96000000-96200000 -> p88000000-88200000    200000
v96200000-98000000 -> p20000000-21e00000   1e00000
v98000000-98200000 -> p8c000000-8c200000    200000
v98200000-9a000000 -> p21e00000-23c00000   1e00000
v9a000000-9a200000 -> p90000000-90200000    200000
v9a200000-9c000000 -> p23c00000-25a00000   1e00000
v9c000000-9c100000 -> p94000000-94100000    100000
v9c100000-9d000000 -> p25a00000-26900000    f00000
v9d000000-9d100000 -> p98000000-98100000    100000
v9d100000-9e000000 -> p26900000-27800000    f00000
v9e000000-9e200000 -> p9c000000-9c200000    200000
v9e200000-9ea00000 -> p27800000-28000000    800000
v9f000000-9f100000 -> p80000000-80100000    100000
vf0400000-f0500000 -> p00000000-00100000    100000
vfffd0000-fffd4000 -> p01a10000-01a14000      4000
vffff0000-ffff1000 -> p01a14000-01a15000      1000
vffffc000-ffffd000 -> p01a15000-01a16000      1000
Anyone know at which memmory offset radio is located???
The Following User Says Thank You to munjeni For This Useful Post: [ Click to Expand ]
 
derefas
Old
#3  
Senior Member
Thanks Meter 3645
Posts: 706
Join Date: Dec 2010
Location: Омск

 
DONATE TO ME
may be add smi and ebi bank?
 
munjeni
Old
(Last edited by munjeni; 10th August 2011 at 12:48 PM.)
#4  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 8306
Posts: 3,321
Join Date: Jun 2011

 
DONATE TO ME
Quote:
Originally Posted by derefas View Post
may be add smi and ebi bank?
I dont know. Curent definitions for Photon memory:
Code:
#define MSM_MEM1_BASE		0x00000000
#define MSM_MEM1_SIZE		0x0CC00000

#define MSM_MEM2_BASE		0x20000000
#define MSM_MEM2_SIZE		0x08000000

#define MSM_LINUX_BASE_OFFSET	0x00200000

#define MSM_MM_HEAP_SIZE        0x02A00000

#define MSM_PHOTON_LINUX1_BASE          (MSM_MEM1_BASE + MSM_LINUX_BASE_OFFSET) /* 2MB alignment */
#define MSM_PHOTON_LINUX1_SIZE          (MSM_MEM1_SIZE - MSM_LINUX_BASE_OFFSET)

#define MSM_PHOTON_LINUX2_BASE          MSM_MEM2_BASE /* 2MB alignment */
#define MSM_PHOTON_LINUX2_SIZE          (MSM_MEM2_SIZE - MSM_MM_HEAP_SIZE)

#define MSM_FB_BASE             MSM_MEM2_BASE + MSM_MEM2_SIZE - MSM_MM_HEAP_SIZE
#define MSM_FB_SIZE             0x00200000 // 2M

#define MSM_GPU_MEM_BASE        MSM_FB_BASE + MSM_FB_SIZE
#define MSM_GPU_MEM_SIZE        0x00300000 // 3M

#define MSM_PMEM_MDP_BASE       MSM_GPU_MEM_BASE + MSM_GPU_MEM_SIZE
#define MSM_PMEM_MDP_SIZE       0x01000000 // 16M

#define MSM_PMEM_ADSP_BASE      MSM_PMEM_MDP_BASE + MSM_PMEM_MDP_SIZE
#define MSM_PMEM_ADSP_SIZE      0x00C1B000 // ~12M

#define MSM_PMEM_CAMERA_BASE    MSM_PMEM_ADSP_BASE + MSM_PMEM_ADSP_SIZE
#define MSM_PMEM_CAMERA_SIZE    0x00800000 // 8M

#define MSM_RAM_CONSOLE_BASE    0x00100000
#define MSM_RAM_CONSOLE_SIZE    SZ_1M
I analysed Aria kernel code and I found aria have (0x18000000 - 0x02C00000 - 0x02800000 = ) 314M of the ram memory!! So my idea is to add new bank and realign MSM_MM_HEAP things. With new (bank3?) we will get ~20M (290M + 20M = ) ~310M ram memory like Aria have! But only problem is: I need to find memory offsets: spl (ok I know), radio (not analysed), splash (not analysed)...etc

EDIT:
Code:
v9c100000-9d000000 -> p25a00000-26900000    f00000
v9d000000-9d100000 -> p98000000-98100000    100000
v9d100000-9e000000 -> p26900000-27800000    f00000
v9e000000-9e200000 -> p9c000000-9c200000    200000
v9e200000-9ea00000 -> p27800000-28000000    800000
Possible MSM_PMEM_MDP_BASE is p25a00000-26900000 f00000 or maybe p26900000-27800000 f00000
Also I think MSM_PMEM_MDP_SIZE is not 0x01000000, I think it is 0xf00000 .. it free 1M of the memory!
p27800000-28000000 800000 is: #define MSM_PMEM_CAMERA_BASE 0x27800000
But maybe MSM_PMEM_ADSP_BASE is wrong here becouse we have two regions of the 0xd00000 size, so I think one of it is MSM_PMEM_ADSP_BASE ?? it will give 13M++ memory for our phone!!
Or maybe MSM_GPU_MEM_BASE and MSM_PMEM_ADSP_BASE need to be strict inside memory region with size of the 0xf00000 ?? It will free 2-3M (MSM_MM_HEAP_SIZE - 3M)!

Need help to find (Radio=2+36=38M) where is radio located, in which offset! Lets analyse memory regions, ok? What you think?

EDIT:
Tried region 0xac000000 without success: Ignoring RAM at ac000000-accfffff (vmalloc region overlap)
The Following User Says Thank You to munjeni For This Useful Post: [ Click to Expand ]
 
munjeni
Old
#5  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 8306
Posts: 3,321
Join Date: Jun 2011

 
DONATE TO ME
. .
The Following User Says Thank You to munjeni For This Useful Post: [ Click to Expand ]
 
munjeni
Old
#6  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 8306
Posts: 3,321
Join Date: Jun 2011

 
DONATE TO ME
I have good news

<6>[ 0.000000] Memory: 202MB 13MB 86MB = 301MB total !!!
I will move MSM_PMEM_ADSP_BASE to region of the 13M
The Following 3 Users Say Thank You to munjeni For This Useful Post: [ Click to Expand ]
 
kiretocin
Old
#7  
kiretocin's Avatar
Senior Member
Thanks Meter 21
Posts: 308
Join Date: Aug 2009
Location: Veles
Quote:
Originally Posted by munjeni View Post
I have good news

<6>[ 0.000000] Memory: 202MB 13MB 86MB = 301MB total !!!
I will move MSM_PMEM_ADSP_BASE to region of the 13M
good news,
 
munjeni
Old
#8  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 8306
Posts: 3,321
Join Date: Jun 2011

 
DONATE TO ME
#define MSM_VFE_PHYS 0xA0F00000
#define MSM_VFE_SIZE SZ_1M

0xa0f00000 not found in wince memory, maybe need 0xa0e00000 ?? maybe fix for video??
The Following 2 Users Say Thank You to munjeni For This Useful Post: [ Click to Expand ]
 
munjeni
Old
#9  
munjeni's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 8306
Posts: 3,321
Join Date: Jun 2011

 
DONATE TO ME
I realigned memory and got only 2M++ so now phone have 290M ram memory.... I tried more ram but not possible becouse: 0xac000000 region already used by MSM_AD5, also I tried region 0x0f200000 but that region have flag "not execute" and phone crash ater load screen! So now memory is propertly realigned... commits are here -> http://gitorious.org/2-6-32-photon I will update attachment in mine release
The Following User Says Thank You to munjeni For This Useful Post: [ Click to Expand ]
 
schlund
Old
#10  
Senior Member
Thanks Meter 1067
Posts: 449
Join Date: Nov 2010

 
DONATE TO ME
... ..
Devices: HTC HD MINI (CM 7.2) | HTC WILDFIRE S (CM 7.2)
Developer for Android on Photon: http://code.google.com/p/photon-android/
My Photonic release: http://forum.xda-developers.com/show....php?t=1455555
My Photonic sources: https://github.com/schlund
goo.im Profile: http://goo.im/devs/schlund RSS-Feed: http://goo.im/rss/schlund

The Following User Says Thank You to schlund For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...