dts: TL1 ,change demod 8MB memory to CMA mode. [1/1]
authorZhiwei Yuan <zhiwei.yuan@amlogic.com>
Thu, 6 Dec 2018 06:18:07 +0000 (14:18 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 7 Dec 2018 08:30:46 +0000 (00:30 -0800)
PD#SWPL-2913

Problem:
for tl1 memory usage measurement

Solution:
use cma memory for dtmb instead of reserved

Verify:
verified by t962x2_x301

Change-Id: I7f5381a8458f5bbd9bbffc02c7fd792af92b783d
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_t309.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts

index 15a1ecdc8175859531a13fe00cddf530001b8221..0a4b9a1d2134be9c65fe850c69ef5f8d77af70e7 100644 (file)
                        alignment = <0x400000>;
                };
 
-               demod_reserved:linux,demod {
-                       compatible = "amlogic, demod-mem";
-                       size = <0x800000>; //8M //100m 0x6400000
-                       alloc-ranges = <0x0 0x30000000>;
-                       //multi-use;
-                       //no-map;
+               /*demod_reserved:linux,demod {
+                *      compatible = "amlogic, demod-mem";
+                *      size = <0x800000>; //8M //100m 0x6400000
+                *      alloc-ranges = <0x0 0x30000000>;
+                *      //multi-use;
+                *      //no-map;
+                *};
+                */
+
+               demod_cma_reserved:linux,demod_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       /* 8M */
+                       size = <0x0800000>;
+                       alignment = <0x400000>;
                };
 
                /*vbi reserved mem*/
                /*move from dvbfe*/
                dtv_demod0_mem = <0>;   // need move to aml_dtv_demod ?
                spectrum = <1>;
-               cma_flag = <0>;
+               cma_flag = <1>;
                cma_mem_size = <8>;
-               memory-region = <&demod_reserved>;//<&demod_reserved>;
+               memory-region = <&demod_cma_reserved>;//<&demod_reserved>;
        };
 
        auge_sound {
index 812837aaa643c0110f3b8b49babdbd181039391e..094936147676c9741c51ec3196de64a28787a1dc 100644 (file)
                        alignment = <0x400000>;
                };
 
-               demod_reserved:linux,demod {
-                       compatible = "amlogic, demod-mem";
-                       size = <0x800000>; //8M //100m 0x6400000
-                       alloc-ranges = <0x0 0x30000000>;
-                       //multi-use;
-                       //no-map;
+               /*demod_reserved:linux,demod {
+                *      compatible = "amlogic, demod-mem";
+                *      size = <0x800000>; //8M //100m 0x6400000
+                *      alloc-ranges = <0x0 0x30000000>;
+                *      //multi-use;
+                *      //no-map;
+                *};
+                */
+
+               demod_cma_reserved:linux,demod_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       /* 8M */
+                       size = <0x0800000>;
+                       alignment = <0x400000>;
                };
 
                /*vbi reserved mem*/
 
                dtv_demod0_mem = <0>;   // need move to aml_dtv_demod ?
                spectrum = <1>;
-               cma_flag = <0>;
+               cma_flag = <1>;
                cma_mem_size = <8>;
-               memory-region = <&demod_reserved>;//<&demod_reserved>;
+               memory-region = <&demod_cma_reserved>;//<&demod_reserved>;
        };
 
        auge_sound {
index 5f73946894b71dda5178535459dccb0d9152ab2d..4d368fa12a5b95f89d55dba288d0013fe28256ad 100644 (file)
                        alignment = <0x400000>;
                };
 
-               demod_reserved:linux,demod {
-                       compatible = "amlogic, demod-mem";
-                       size = <0x800000>; //8M //100m 0x6400000
-                       alloc-ranges = <0x0 0x30000000>;
-                       //multi-use;
-                       //no-map;
+               /*demod_reserved:linux,demod {
+                *      compatible = "amlogic, demod-mem";
+                *      size = <0x800000>; //8M //100m 0x6400000
+                *      alloc-ranges = <0x0 0x30000000>;
+                *      //multi-use;
+                *      //no-map;
+                *};
+                */
+
+               demod_cma_reserved:linux,demod_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       /* 8M */
+                       size = <0x0800000>;
+                       alignment = <0x400000>;
                };
 
                /*vbi reserved mem*/
 
                dtv_demod0_mem = <0>;   // need move to aml_dtv_demod ?
                spectrum = <1>;
-               cma_flag = <0>;
+               cma_flag = <1>;
                cma_mem_size = <8>;
-               memory-region = <&demod_reserved>;//<&demod_reserved>;
+               memory-region = <&demod_cma_reserved>;//<&demod_reserved>;
        };
 
        auge_sound {