dts: change CMA layout [1/1]
authorTao Zeng <tao.zeng@amlogic.com>
Tue, 25 Dec 2018 08:55:09 +0000 (16:55 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 25 Dec 2018 11:11:35 +0000 (03:11 -0800)
commita071a5bbb84a5a9b7cd3a99e47fc59496a46aaab
treee513af41d9baff292025f0058084a1f5c6426a54
parent97f2a10eda8554042a4ea753664443fb4f260a23
dts: change CMA layout [1/1]

PD#SWPL-1909

Problem:
On 32bit kernel, codec cma is located in normal zone by
"alloc-ranges" parameter with large size. This takse up
memory space for kernel and drivers. Sometimes we can see
memory allocation fail log but there are still enought
free pages. But most of these pages are CMA pages.

Solution:
Move codec cma location to high memzone. On 32bit, low
768MB memory is normal zone.
This change also correct first 1MB memory lost problem
for chips later than TXLX

Verify:
TL1 x301/x309/socket board

Change-Id: I2fc62ae8b03143cc91bfecc62c123d1925aac482
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_t309.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts