dts: sm1: reduce the CMA reserved memory [1/1]
authorchangqing.gao <changqing.gao@amlogic.com>
Thu, 18 Jul 2019 06:17:21 +0000 (14:17 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 19 Jul 2019 09:09:30 +0000 (02:09 -0700)
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>
16 files changed:
arch/arm/boot/dts/amlogic/sm1_pxp.dts
arch/arm/boot/dts/amlogic/sm1_s905d3_ac200.dts
arch/arm/boot/dts/amlogic/sm1_s905d3_ac200_buildroot.dts
arch/arm/boot/dts/amlogic/sm1_s905d3_ac202.dts
arch/arm/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts
arch/arm/boot/dts/amlogic/sm1_s905d3_skt.dts
arch/arm/boot/dts/amlogic/sm1_s905x3_ac213.dts
arch/arm/boot/dts/amlogic/sm1_s905x3_ac213_buildroot.dts
arch/arm64/boot/dts/amlogic/sm1_pxp.dts
arch/arm64/boot/dts/amlogic/sm1_s905d3_ac200.dts
arch/arm64/boot/dts/amlogic/sm1_s905d3_ac200_buildroot.dts
arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202.dts
arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts
arch/arm64/boot/dts/amlogic/sm1_s905d3_skt.dts
arch/arm64/boot/dts/amlogic/sm1_s905x3_ac213.dts
arch/arm64/boot/dts/amlogic/sm1_s905x3_ac213_buildroot.dts

index 6d4a493..a6df1e2 100644 (file)
@@ -69,7 +69,7 @@
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0x8000000>;
+                       size = <0x3000000>;
                        alignment = <0x400000>;
                };
 
                        //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";
 
 /*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
index dc51174..6a22bd0 100644 (file)
                        //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";
 
 /*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
index 3c4ad22..b5c3bb3 100644 (file)
                        //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";
 
 /*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
index 2439c80..e68d647 100644 (file)
                        //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";
 
 /*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
index 15f8687..18e15e5 100644 (file)
@@ -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>;
                };
                        //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";
 
 /*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
index 10dcf86..939fbc0 100644 (file)
                        //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";
 
 /*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
index 965e207..8d8c467 100644 (file)
                        //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";
 
 /*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
index 99a971f..2f5f5a6 100644 (file)
                        //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";
 
 /*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
index 7be2bbd..77b6dd4 100644 (file)
@@ -70,7 +70,7 @@
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0x0 0x8000000>;
+                       size = <0x0 0x3000000>;
                        alignment = <0x0 0x400000>;
                };
 
                        //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";
 
 /*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
index 14f8ab7..b4922d8 100644 (file)
                        //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";
 
 /*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
index cfb85cc..dc4f047 100644 (file)
                        //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";
 
 /*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
index 046627c..d92fa50 100644 (file)
                        //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";
 
 /*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
index 2ff004b..02ffc9d 100644 (file)
@@ -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 {
                        //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";
 
 /*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
index 354401e..4fe3c20 100644 (file)
                        //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";
 
 /*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
index 45b7487..52a1344 100644 (file)
                        //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";
 
 /*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
index 4f3306a..e8fe19d 100644 (file)
                        //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";
 
 /*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