mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
dts: sm1: reduce the CMA reserved memory [1/1]
PD#SWPL-11208 Problem: system would auto reboot because of low free memory(Unmovable type) Solution: reduce the CMA reserved memory. 1.reduce ion_cma_reserved from 128MB to 48MB.(DDR size == 1G) 2.remove vdin0_cma_reserved which is not used for sm1. Verify: test passed on sm1 Change-Id: Ifdb31bd3451ad984305c5f08ba3b1be478c02cf4 Signed-off-by: changqing.gao <changqing.gao@amlogic.com> Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
ion_cma_reserved:linux,ion-dev {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
size = <0x8000000>;
|
||||
size = <0x3000000>;
|
||||
alignment = <0x400000>;
|
||||
};
|
||||
|
||||
@@ -120,13 +120,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x04000000>;
|
||||
alignment = <0x400000>;
|
||||
};
|
||||
// size = <0x04000000>;
|
||||
// alignment = <0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -713,7 +713,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
@@ -136,13 +136,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x04000000>;
|
||||
alignment = <0x400000>;
|
||||
};
|
||||
// size = <0x04000000>;
|
||||
// alignment = <0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -1696,7 +1696,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
@@ -136,13 +136,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x04000000>;
|
||||
alignment = <0x400000>;
|
||||
};
|
||||
// size = <0x04000000>;
|
||||
// alignment = <0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -1713,7 +1713,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
ion_cma_reserved:linux,ion-dev {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
size = <0x8000000>;
|
||||
size = <0x3000000>;
|
||||
alignment = <0x400000>;
|
||||
alloc-ranges = <0x0 0x30000000>;
|
||||
};
|
||||
@@ -136,13 +136,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x04000000>;
|
||||
alignment = <0x400000>;
|
||||
};
|
||||
// size = <0x04000000>;
|
||||
// alignment = <0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -1713,7 +1713,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
@@ -136,13 +136,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x04000000>;
|
||||
alignment = <0x400000>;
|
||||
};
|
||||
// size = <0x04000000>;
|
||||
// alignment = <0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -1690,7 +1690,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
@@ -136,13 +136,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x04000000>;
|
||||
alignment = <0x400000>;
|
||||
};
|
||||
// size = <0x04000000>;
|
||||
// alignment = <0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -1621,7 +1621,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
ion_cma_reserved:linux,ion-dev {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
size = <0x0 0x8000000>;
|
||||
size = <0x0 0x3000000>;
|
||||
alignment = <0x0 0x400000>;
|
||||
};
|
||||
|
||||
@@ -121,13 +121,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x0 0x04000000>;
|
||||
alignment = <0x0 0x400000>;
|
||||
};
|
||||
// size = <0x0 0x04000000>;
|
||||
// alignment = <0x0 0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -715,7 +715,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
@@ -134,13 +134,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x0 0x04000000>;
|
||||
alignment = <0x0 0x400000>;
|
||||
};
|
||||
// size = <0x0 0x04000000>;
|
||||
// alignment = <0x0 0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -1679,7 +1679,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
@@ -134,13 +134,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x0 0x04000000>;
|
||||
alignment = <0x0 0x400000>;
|
||||
};
|
||||
// size = <0x0 0x04000000>;
|
||||
// alignment = <0x0 0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -1711,7 +1711,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
ion_cma_reserved:linux,ion-dev {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
size = <0x0 0x8000000>;
|
||||
size = <0x0 0x3000000>;
|
||||
alignment = <0x0 0x400000>;
|
||||
};
|
||||
//di_reserved:linux,di {
|
||||
@@ -134,13 +134,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x0 0x04000000>;
|
||||
alignment = <0x0 0x400000>;
|
||||
};
|
||||
// size = <0x0 0x04000000>;
|
||||
// alignment = <0x0 0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -1712,7 +1712,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
@@ -134,13 +134,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x0 0x04000000>;
|
||||
alignment = <0x0 0x400000>;
|
||||
};
|
||||
// size = <0x0 0x04000000>;
|
||||
// alignment = <0x0 0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -1688,7 +1688,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
@@ -134,13 +134,13 @@
|
||||
//no-map;
|
||||
};
|
||||
/* vdin0 CMA pool */
|
||||
vdin0_cma_reserved:linux,vdin0_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
reusable;
|
||||
//vdin0_cma_reserved:linux,vdin0_cma {
|
||||
// compatible = "shared-dma-pool";
|
||||
// reusable;
|
||||
/* 1920x1080x2x4 =16+4 M */
|
||||
size = <0x0 0x04000000>;
|
||||
alignment = <0x0 0x400000>;
|
||||
};
|
||||
// size = <0x0 0x04000000>;
|
||||
// alignment = <0x0 0x400000>;
|
||||
//};
|
||||
/* vdin1 CMA pool */
|
||||
vdin1_cma_reserved:linux,vdin1_cma {
|
||||
compatible = "shared-dma-pool";
|
||||
@@ -1697,7 +1697,7 @@
|
||||
|
||||
/*if you want to use vdin just modify status to "ok"*/
|
||||
&vdin0 {
|
||||
memory-region = <&vdin0_cma_reserved>;
|
||||
/*memory-region = <&vdin0_cma_reserved>;*/
|
||||
status = "okay";
|
||||
/*vdin write mem color depth support:
|
||||
*bit0:support 8bit
|
||||
|
||||
Reference in New Issue
Block a user