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 15a1ecd..0a4b9a1 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 812837a..0949361 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 5f73946..4d368fa 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 {