From: Wencai You Date: Fri, 18 May 2018 14:36:23 +0000 (+0800) Subject: mm: decrease DEFAULT_TVP_SIZE_FOR_4K and reserved-memory X-Git-Tag: khadas-vims-v0.9.6-release~1597 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f32a3e45bbb024ea58b5af5ee2383b420aae8dca;p=platform%2Fkernel%2Flinux-amlogic.git mm: decrease DEFAULT_TVP_SIZE_FOR_4K and reserved-memory PD#166821: decrease DEFAULT_TVP_SIZE_FOR_4K and reserved-memory DEFAULT_TVP_SIZE_FOR_4K to 192M codec_mm_cma to 208M ion_reserved to 78M Change-Id: I2fd38f40c242ef531f8cf2226822bed4b0250a4f Signed-off-by: Wencai You --- diff --git a/arch/arm64/boot/dts/amlogic/gxl_p212_1g.dts b/arch/arm64/boot/dts/amlogic/gxl_p212_1g.dts index e219ad0..4eefc12 100644 --- a/arch/arm64/boot/dts/amlogic/gxl_p212_1g.dts +++ b/arch/arm64/boot/dts/amlogic/gxl_p212_1g.dts @@ -88,7 +88,7 @@ ion_reserved:linux,ion-dev { compatible = "shared-dma-pool"; reusable; - size = <0x0 0x7C00000>; + size = <0x0 0x4C00000>; alignment = <0x0 0x400000>; }; @@ -119,7 +119,7 @@ compatible = "shared-dma-pool"; reusable; /* ion_codec_mm max can alloc size 80M*/ - size = <0x0 0x13400000>; + size = <0x0 0xd000000>; alignment = <0x0 0x400000>; linux,contiguous-region; }; diff --git a/drivers/amlogic/media/common/codec_mm/codec_mm.c b/drivers/amlogic/media/common/codec_mm/codec_mm.c index 7bc3321..da7591c 100644 --- a/drivers/amlogic/media/common/codec_mm/codec_mm.c +++ b/drivers/amlogic/media/common/codec_mm/codec_mm.c @@ -56,7 +56,7 @@ #define MM_ALIGN_UP2N(addr, alg2n) ((addr+(1<