dts: u212 1g: optimized cma [1/3]
authorGongwei Chen <gongwei.chen@amlogic.com>
Thu, 11 Oct 2018 02:23:58 +0000 (10:23 +0800)
committerGongwei Chen <gongwei.chen@amlogic.com>
Thu, 18 Oct 2018 06:17:45 +0000 (14:17 +0800)
PD#SWPL-492

Problem:
system response is slow

Solution:
optimized cma

Verify:
Verify by franklin 1g

Change-Id: I227fb168fa66566768fd4dbcefcbf100546daabd
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
arch/arm/boot/dts/amlogic/g12a_s905x2_u212_1g.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u212_1g.dts

index cff5f4a..aeb9cb0 100644 (file)
@@ -86,7 +86,7 @@
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0x8000000>;
+                       size = <0x4C00000>;
                        alignment = <0x400000>;
                        alloc-ranges = <0x00000000 0x30000000>;
                };
                        compatible = "shared-dma-pool";
                        reusable;
                        /* ion_codec_mm max can alloc size 80M*/
-                       size = <0xC400000>;
+                       size = <0xd000000>;
                        alignment = <0x400000>;
                        linux,contiguous-region;
                        alloc-ranges = <0x00000000 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";
                        reusable;
                        /* 1920x1080x2x4  =16 M */
-                       size = <0x04000000>;
+                       size = <0x01000000>;
                        alignment = <0x400000>;
                };
        };
 
 /*if you want to use vdin just modify status to "ok"*/
 &vdin0 {
-       memory-region = <&vdin0_cma_reserved>;
-       status = "okay";
+       /*memory-region = <&vdin0_cma_reserved>;*/
+       status = "disabled";
        /*vdin write mem color depth support:
         *bit0:support 8bit
         *bit1:support 9bit
index 8b49554..f528968 100644 (file)
@@ -86,7 +86,7 @@
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0x0 0x8000000>;
+                       size = <0x0 0x4C00000>;
                        alignment = <0x0 0x400000>;
                };
                //di_reserved:linux,di {
                        compatible = "shared-dma-pool";
                        reusable;
                        /* ion_codec_mm max can alloc size 80M*/
-                       size = <0x0 0xC400000>;
+                       size = <0x0 0xd000000>;
                        alignment = <0x0 0x400000>;
                        linux,contiguous-region;
                };
                        //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";
                        reusable;
                        /* 1920x1080x2x4  =16 M */
-                       size = <0x0 0x04000000>;
+                       size = <0x0 0x01000000>;
                        alignment = <0x0 0x400000>;
                };
        };
 
 /*if you want to use vdin just modify status to "ok"*/
 &vdin0 {
-       memory-region = <&vdin0_cma_reserved>;
-       status = "okay";
+       /*memory-region = <&vdin0_cma_reserved>;*/
+       status = "disabled";
        /*vdin write mem color depth support:
         *bit0:support 8bit
         *bit1:support 9bit