mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
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>
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
size = <0x13400000>;
|
||||
alignment = <0x400000>;
|
||||
linux,contiguous-region;
|
||||
alloc-ranges = <0x12000000 0x13400000>;
|
||||
alloc-ranges = <0x30000000 0x50000000>;
|
||||
};
|
||||
|
||||
/* codec shared reserved */
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
size = <0x13400000>;
|
||||
alignment = <0x400000>;
|
||||
linux,contiguous-region;
|
||||
alloc-ranges = <0x12000000 0x13400000>;
|
||||
alloc-ranges = <0x30000000 0x50000000>;
|
||||
};
|
||||
|
||||
/* codec shared reserved */
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
size = <0x13400000>;
|
||||
alignment = <0x400000>;
|
||||
linux,contiguous-region;
|
||||
alloc-ranges = <0x12000000 0x13400000>;
|
||||
alloc-ranges = <0x30000000 0x50000000>;
|
||||
};
|
||||
|
||||
/* codec shared reserved */
|
||||
|
||||
Reference in New Issue
Block a user