dts: Ion and vdin0 CMA Memory Optimization [1/1]
authorqingwei.xu <qingwei.xu@amlogic.com>
Thu, 14 Mar 2019 02:16:13 +0000 (10:16 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 18 Mar 2019 11:15:30 +0000 (03:15 -0800)
PD#SWPL-5896

Problem:
The memory consumption of modules ion and vdin0 is too large

Solution:
Ion CMA memory optimization to 32M,vdin0 to 160M

Verify:
X301、T309

Change-Id: If9e54390baeda6d330bb2c96b14ef3975333a2f1
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
arch/arm/boot/dts/amlogic/tl1_t962x2_t309.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts
arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts

index 5e6b26d..0581714 100644 (file)
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0x8000000>;
+                       size = <0x2000000>;
                        alignment = <0x400000>;
                };
 
                 *if support 4K2K-YUV422-8BIT-WR:3840*2160*2*4 ~= 64M
                 *if support 1080p-YUV422-8BIT-WR:1920*1080*2*4 ~= 16M
                 */
-               cma_size = <190>;
+               cma_size = <160>;
                interrupts = <0 83 1>;
                rdma-irq = <2>;
                clocks = <&clkc CLKID_FCLK_DIV5>,
index 91ef181..cc63381 100644 (file)
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0x8000000>;
+                       size = <0x2000000>;
                        alignment = <0x400000>;
                };
 
                 *if support 4K2K-YUV422-8BIT-WR:3840*2160*2*4 ~= 64M
                 *if support 1080p-YUV422-8BIT-WR:1920*1080*2*4 ~= 16M
                 */
-               cma_size = <190>;
+               cma_size = <160>;
                interrupts = <0 83 1>;
                rdma-irq = <2>;
                clocks = <&clkc CLKID_FCLK_DIV5>,
index 1a7e65b..03660b4 100644 (file)
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0x0 0x8000000>;
+                       size = <0x0 0x2000000>;
                        alignment = <0x0 0x400000>;
                };
 
                 *if support 4K2K-YUV422-8BIT-WR:3840*2160*2*4 ~= 64M
                 *if support 1080p-YUV422-8BIT-WR:1920*1080*2*4 ~= 16M
                 */
-               cma_size = <190>;
+               cma_size = <160>;
                interrupts = <0 83 1>;
                rdma-irq = <2>;
                clocks = <&clkc CLKID_FCLK_DIV5>,
index 71b3875..c30924a 100644 (file)
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
-                       size = <0x0 0x8000000>;
+                       size = <0x0 0x2000000>;
                        alignment = <0x0 0x400000>;
                };
 
                 *if support 4K2K-YUV422-8BIT-WR:3840*2160*2*4 ~= 64M
                 *if support 1080p-YUV422-8BIT-WR:1920*1080*2*4 ~= 16M
                 */
-               cma_size = <190>;
+               cma_size = <160>;
                interrupts = <0 83 1>;
                rdma-irq = <2>;
                clocks = <&clkc CLKID_FCLK_DIV5>,