dts: change CMA layout [1/1]
authortao zeng <tao.zeng@amlogic.com>
Fri, 9 Nov 2018 04:10:49 +0000 (12:10 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 16 Nov 2018 01:38:25 +0000 (18:38 -0700)
PD#SWPL-1909

Problem:
On 32bit kernel, codec cma is located in normal zone by
"alloc-ranges" parameter with large size. This takse up
memory space for kernel and drivers. Sometimes we can see
memory allocation fail log but there are still enought
free pages. But most of these pages are CMA pages.

Solution:
Move codec cma location to high memzone. On 32bit, low
768MB memory is normal zone.
This change also correct first 1MB memory lost problem
for chips later than TXLX

Verify:
P212

Change-Id: I4592d34d08ee4dbb6700bbbfc4e0fadaceab0310
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
18 files changed:
arch/arm/boot/dts/amlogic/g12a_s905d2_u200.dts
arch/arm/boot/dts/amlogic/g12a_s905d2_u200_1g.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u212.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u212_1g.dts
arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts
arch/arm/boot/dts/amlogic/g12b_a311d_w400.dts
arch/arm/boot/dts/amlogic/gxl_p212_1g.dts
arch/arm/boot/dts/amlogic/gxl_p212_2g.dts
arch/arm/boot/dts/amlogic/gxl_p230_2g.dts
arch/arm/boot/dts/amlogic/gxl_p241_1g.dts
arch/arm/boot/dts/amlogic/gxl_p241_v2-1g.dts
arch/arm/boot/dts/amlogic/tl1_pxp.dts
arch/arm/boot/dts/amlogic/txl_t962_p321.dts
arch/arm/boot/dts/amlogic/txl_t962_p321_720p.dts
arch/arm/boot/dts/amlogic/txlx_t962e_r321.dts
arch/arm/boot/dts/amlogic/txlx_t962x_r311_1g.dts
arch/arm/boot/dts/amlogic/txlx_t962x_r311_2g.dts
arch/arm64/boot/dts/amlogic/txl_t962_p321_720p.dts [changed mode: 0755->0644]

index 6b99519..c5e894a 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x000000 0x80000000>;
        };
 
        reserved-memory {
                        reusable;
                        size = <0x800000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x0 0x30000000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0x8000000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x0 0x30000000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
                //di_reserved:linux,di {
                        //compatible = "amlogic, di-mem";
                        size = <0x13400000>;
                        alignment = <0x400000>;
                        linux,contiguous-region;
-                       alloc-ranges = <0x0 0x30000000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
                /* codec shared reserved */
                codec_mm_reserved:linux,codec_mm_reserved {
index 411bd71..25a3877 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x3ff00000>;
+               linux,usable-memory = <0x000000 0x40000000>;
        };
 
        reserved-memory {
                        alignment = <0x400000>;
                        alloc-ranges = <0x3f800000 0x800000>;
                };
+
+               codec_mm_cma:linux,codec_mm_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       /* ion_codec_mm max can alloc size 80M*/
+                       size = <0xC400000>;
+                       alignment = <0x400000>;
+                       linux,contiguous-region;
+                       alloc-ranges = <0x30000000 0x10000000>;
+               };
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
                         */
                        size = <0x02800000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x30000000 0x10000000>;
                };
                /*  POST PROCESS MANAGER */
                ppmgr_reserved:linux,ppmgr {
                        size = <0x0>;
                };
 
-               codec_mm_cma:linux,codec_mm_cma {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       /* ion_codec_mm max can alloc size 80M*/
-                       size = <0xC400000>;
-                       alignment = <0x400000>;
-                       linux,contiguous-region;
-                       alloc-ranges = <0x0 0x30000000>;
-               };
                /* codec shared reserved */
                codec_mm_reserved:linux,codec_mm_reserved {
                        compatible = "amlogic, codec-mm-reserved";
                /* 1920x1080x2x4  =16+4 M */
                        size = <0x04000000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
                /*  vdin1 CMA pool */
                vdin1_cma_reserved:linux,vdin1_cma {
                        /* 1920x1080x2x4  =16 M */
                        size = <0x04000000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
        };
 
index 278d4c8..501a608 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x000000 0x80000000>;
        };
 
        reserved-memory {
@@ -80,7 +80,7 @@
                        reusable;
                        size = <0x800000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x7f700000 0x800000>;
+                       alloc-ranges = <0x7f800000 0x800000>;
                };
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
index aeb9cb0..3a2feed 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x3ff00000>;
+               linux,usable-memory = <0x000000 0x40000000>;
 
        };
 
                        alignment = <0x400000>;
                        alloc-ranges = <0x3f800000 0x800000>;
                };
+               codec_mm_cma:linux,codec_mm_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       /* ion_codec_mm max can alloc size 80M*/
+                       size = <0xd000000>;
+                       alignment = <0x400000>;
+                       linux,contiguous-region;
+                       alloc-ranges = <0x30000000 0x10000000>;
+               };
                ion_cma_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
                         */
                        size = <0x02800000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x30000000 0x10000000>;
                };
                /*  POST PROCESS MANAGER */
                ppmgr_reserved:linux,ppmgr {
                        size = <0x0>;
                };
 
-               codec_mm_cma:linux,codec_mm_cma {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       /* ion_codec_mm max can alloc size 80M*/
-                       size = <0xd000000>;
-                       alignment = <0x400000>;
-                       linux,contiguous-region;
-                       alloc-ranges = <0x00000000 0x30000000>;
-               };
                /* codec shared reserved */
                codec_mm_reserved:linux,codec_mm_reserved {
                        compatible = "amlogic, codec-mm-reserved";
                        /* 1920x1080x2x4  =16 M */
                        size = <0x01000000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
        };
 
index 1755d33..dffeca8 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x000000 0x80000000>;
        };
 
        reserved-memory {
@@ -77,7 +77,7 @@
                        reusable;
                        size = <0x8000000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x0 0x30000000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
                //di_reserved:linux,di {
                        //compatible = "amlogic, di-mem";
                        size = <0x13400000>;
                        alignment = <0x400000>;
                        linux,contiguous-region;
-                       alloc-ranges = <0x0 0x30000000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
                /* codec shared reserved */
                codec_mm_reserved:linux,codec_mm_reserved {
index b858e07..39f0d54 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x000000 0x80000000>;
        };
 
        reserved-memory {
index 3a35ca9..9f1cacf 100644 (file)
                        alignment = <0x400000>;
                        alloc-ranges = <0x3f800000 0x800000>;
                };
+
+               codec_mm_cma:linux,codec_mm_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       /* ion_codec_mm max can alloc size 80M*/
+                       size = <0xd000000>;
+                       alignment = <0x400000>;
+                       linux,contiguous-region;
+                       alloc-ranges = <0x30000000 0x10000000>;
+               };
                //don't put other dts in front of logo_reserved
 
                //di_reserved:linux,di {
                        /** 10x3133440=30M(0x1e) support 8bit **/
                        size = <0x2000000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x30000000 0x10000000>;
                };
                ion_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0x4C00000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x0 0x2ee00000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
 
                /*  vdin0 CMA pool */
                        /* 1920x1080x2x4  =16 M */
                        size = <0x01000000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
                /*  POST PROCESS MANAGER */
                ppmgr_reserved:linux,ppmgr {
                        size = <0x0>;
                };
 
-               codec_mm_cma:linux,codec_mm_cma {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       /* ion_codec_mm max can alloc size 80M*/
-                       size = <0xd000000>;
-                       alignment = <0x400000>;
-                       linux,contiguous-region;
-                       alloc-ranges = <0x12000000 0x13400000>;
-               };
                picdec_cma_reserved:linux,picdec {
                        compatible = "shared-dma-pool";
                        reusable;
index fcfbb39..9272418 100644 (file)
@@ -99,7 +99,7 @@
                        reusable;
                        size = <0x7C00000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x0 0x2ee00000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
 
                /*  vdin0 CMA pool */
                        size = <0x13400000>;
                        alignment = <0x400000>;
                        linux,contiguous-region;
-                       alloc-ranges = <0x12000000 0x13400000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
                picdec_cma_reserved:linux,picdec {
                        compatible = "shared-dma-pool";
index 3dc6b4f..dda52f1 100644 (file)
@@ -99,7 +99,7 @@
                        reusable;
                        size = <0x7C00000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x0 0x2ee00000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
 
                /*  vdin0 CMA pool */
                        size = <0x13400000>;
                        alignment = <0x400000>;
                        linux,contiguous-region;
-                       alloc-ranges = <0x12000000 0x13400000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
                picdec_cma_reserved:linux,picdec {
                        compatible = "shared-dma-pool";
index a69c391..b7ac075 100644 (file)
                        alignment = <0x400000>;
                        alloc-ranges = <0x3fc00000 0x400000>;
                };
+               codec_mm_cma:linux,codec_mm_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       /* ion_codec_mm max can alloc size 80M*/
+                       size = <0xd000000>;
+                       alignment = <0x400000>;
+                       linux,contiguous-region;
+                       alloc-ranges = <0x30000000 0x10000000>;
+               };
                //don't put other dts in front of logo_reserved
 
                //di_reserved:linux,di {
                        /** 10x4074560=39M(0x27) support 10bit **/
                        size = <0x02400000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x30000000 0x10000000>;
                };
                ion_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0x4C00000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x0 0x2ee00000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
 
                /*  vdin0 CMA pool */
                        /* 1920x1080x2x4  =16 M */
                        size = <0x01000000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
                /*  POST PROCESS MANAGER */
                ppmgr_reserved:linux,ppmgr {
                        multi-use;
                };
 
-               codec_mm_cma:linux,codec_mm_cma {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       /* ion_codec_mm max can alloc size 80M*/
-                       size = <0xd000000>;
-                       alignment = <0x400000>;
-                       linux,contiguous-region;
-                       alloc-ranges = <0x12000000 0x13400000>;
-               };
                picdec_cma_reserved:linux,picdec {
                        compatible = "shared-dma-pool";
                        reusable;
index eeb5267..0380e40 100644 (file)
                        alignment = <0x400000>;
                        alloc-ranges = <0x3fc00000 0x400000>;
                };
+
+               codec_mm_cma:linux,codec_mm_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       /* ion_codec_mm max can alloc size 80M*/
+                       size = <0xd000000>;
+                       alignment = <0x400000>;
+                       linux,contiguous-region;
+                       alloc-ranges = <0x30000000 0x10000000>;
+               };
                //don't put other dts in front of logo_reserved
 
                //di_reserved:linux,di {
                        /** 10x4074560=39M(0x27) support 10bit **/
                        size = <0x02400000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x30000000 0x10000000>;
                };
                ion_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0x4C00000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x0 0x2ee00000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
 
                /*  vdin0 CMA pool */
                        /* 1920x1080x2x4  =16 M */
                        size = <0x01000000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
                /*  POST PROCESS MANAGER */
                ppmgr_reserved:linux,ppmgr {
                        size = <0x0>;
                        multi-use;
                };
-
-               codec_mm_cma:linux,codec_mm_cma {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       /* ion_codec_mm max can alloc size 80M*/
-                       size = <0xd000000>;
-                       alignment = <0x400000>;
-                       linux,contiguous-region;
-                       alloc-ranges = <0x12000000 0x13400000>;
-               };
                picdec_cma_reserved:linux,picdec {
                        compatible = "shared-dma-pool";
                        reusable;
index d327219..2df2461 100644 (file)
@@ -34,7 +34,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x000000 0x80000000>;
        };
 
        reserved-memory {
@@ -57,7 +57,7 @@
                        size = <0x13400000>;
                        alignment = <0x400000>;
                        linux,contiguous-region;
-                       alloc-ranges = <0x12000000 0x13400000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
 
                /* codec shared reserved */
                        /* 2M-30M for emp or tmds to ddr */
                        size = <0x01e00000>;
                        alignment = <0x10000>;
-                       alloc-ranges = <0x00200000 0x01e00000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
        }; /* end of reserved-memory */
 
index fce14f4..4bdf240 100644 (file)
                        alloc-ranges = <0x3f800000 0x800000>;
                };
 
+               codec_mm_cma:linux,codec_mm_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       /* ion_codec_mm max can alloc size 80M*/
+                       size = <0xd000000>;
+                       alignment = <0x400000>;
+                       linux,contiguous-region;
+                       /** alloc by self **/
+                       alloc-ranges = <0x30000000 0x10000000>;
+               };
+
                ion_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0x4C00000>;
                        alignment = <0x400000>;
                        /* alloc by self */
-                       alloc-ranges = <0x0 0x2ee00000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
 
                /*di CMA pool */
                         */
                        size = <0x02800000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x32000000 0xc800000>;
+                       alloc-ranges = <0x30000000 0x10000000>;
                };
 
                /* POST PROCESS MANAGER */
                ppmgr_reserved:linux,ppmgr {
                        compatible = "amlogic, ppmgr_memory";
                        size = <0x0>;
-                       alloc-ranges = <0x32000000 0xc800000>;
-               };
-
-               codec_mm_cma:linux,codec_mm_cma {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       /* ion_codec_mm max can alloc size 80M*/
-                       size = <0xd000000>;
-                       alignment = <0x400000>;
-                       linux,contiguous-region;
-                       /** alloc by self **/
-                       alloc-ranges = <0x0 0x2ee00000>;
                };
 
                picdec_cma_reserved:linux,picdec {
                        size = <0x0>;
                        alignment = <0x0>;
                        linux,contiguous-region;
-                       alloc-ranges = <0x32000000 0xc800000>;
                };
 
                /* codec shared reserved */
                        /* 5M */
                        size = <0x0800000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x32000000 0xc800000>;
+                       alloc-ranges = <0x00000000 0x30000000>;
                };
 
                /*  vdin1 CMA pool */
                        size = <0x01000000>;
                        alignment = <0x400000>;
                        /** alloc by self **/
-                       alloc-ranges = <0x32000000 0xc800000>;
+                       alloc-ranges = <0x00000000 0x30000000>;
                };
        }; /* end of reserved-memory */
 
index dc8a048..e71d7eb 100644 (file)
                        reusable;
                        size = <0x400000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x3fc00000 0x400000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
+               codec_mm_cma:linux,codec_mm_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       /* ion_codec_mm max can alloc size 80M*/
+                       size = <0xd000000>;
+                       alignment = <0x400000>;
+                       linux,contiguous-region;
+                       /** alloc by self **/
+                       alloc-ranges = <0x30000000 0x10000000>;
+               };
+
 
                ion_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
@@ -84,7 +95,7 @@
                        size = <0x4C00000>;
                        alignment = <0x400000>;
                        /* alloc by self */
-                       alloc-ranges = <0x0 0x2ee00000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
 
                /*di CMA pool */
                         */
                        size = <0x02800000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x32000000 0xc800000>;
+                       alloc-ranges = <0x30000000 0x10000000>;
                };
 
                /* POST PROCESS MANAGER */
                ppmgr_reserved:linux,ppmgr {
                        compatible = "amlogic, ppmgr_memory";
                        size = <0x0>;
-                       alloc-ranges = <0x32000000 0xc800000>;
-               };
-
-               codec_mm_cma:linux,codec_mm_cma {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       /* ion_codec_mm max can alloc size 80M*/
-                       size = <0xd000000>;
-                       alignment = <0x400000>;
-                       linux,contiguous-region;
-                       /** alloc by self **/
-                       alloc-ranges = <0x0 0x2ee00000>;
                };
 
                picdec_cma_reserved:linux,picdec {
                        size = <0x0>;
                        alignment = <0x0>;
                        linux,contiguous-region;
-                       alloc-ranges = <0x32000000 0xc800000>;
                };
 
                /* codec shared reserved */
                        /* 5M */
                        size = <0x0800000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x32000000 0xc800000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
 
                /*  vdin1 CMA pool */
                        size = <0x01000000>;
                        alignment = <0x400000>;
                        /** alloc by self **/
-                       alloc-ranges = <0x32000000 0xc800000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
        }; /* end of reserved-memory */
 
index 97ea55a..8340c0d 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x000000 0x80000000>;
        };
 
        reserved-memory {
index d759705..26e2416 100644 (file)
@@ -46,7 +46,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x3ff00000>;
+               linux,usable-memory = <0x000000 0x40000000>;
        };
 
        reserved-memory {
                //      size = <0x0 0x1000>;
                //};
 
+
+               codec_mm_cma:linux,codec_mm_cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       /* ion_codec_mm max can alloc size 80M*/
+                       size = <0xd000000>;
+                       alignment = <0x400000>;
+                       linux,contiguous-region;
+                       alloc-ranges = <0x30000000 0x10000000>;
+               };
                ion_reserved:linux,ion-dev {
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0x4C00000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x0 0x2ee00000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
 
                /*di CMA pool */
                         */
                        size = <0x02800000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x30000000 0x10000000>;
                };
 
                /* POST PROCESS MANAGER */
                        size = <0x0>;
                };
 
-               codec_mm_cma:linux,codec_mm_cma {
-                       compatible = "shared-dma-pool";
-                       reusable;
-                       /* ion_codec_mm max can alloc size 80M*/
-                       size = <0xd000000>;
-                       alignment = <0x400000>;
-                       linux,contiguous-region;
-                       alloc-ranges = <0x12000000 0x13400000>;
-               };
-
                picdec_cma_reserved:linux,picdec {
                        compatible = "shared-dma-pool";
                        reusable;
                        /* 5M */
                        size = <0x0800000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
 
                /*  vdin1 CMA pool */
                        /* 1920x1080x2x4  =16+4 M */
                        size = <0x01400000>;
                        alignment = <0x400000>;
+                       alloc-ranges = <0x0 0x30000000>;
                };
 
                /*vbi reserved mem*/
index 95164b3..814f0b5 100644 (file)
@@ -46,7 +46,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x000000 0x80000000>;
        };
 
        reserved-memory {
@@ -97,7 +97,7 @@
                        reusable;
                        size = <0x7C00000>;
                        alignment = <0x400000>;
-                       alloc-ranges = <0x0 0x2ee00000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
 
                /*di CMA pool */
                        size = <0x13400000>;
                        alignment = <0x400000>;
                        linux,contiguous-region;
-                       alloc-ranges = <0x12000000 0x13400000>;
+                       alloc-ranges = <0x30000000 0x50000000>;
                };
 
                picdec_cma_reserved:linux,picdec {