]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm64: dts: hikey: extend default cma size to 128MB
authorGuodong Xu <guodong.xu@linaro.org>
Thu, 25 Aug 2016 03:00:40 +0000 (11:00 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Tue, 30 Aug 2016 15:47:15 +0000 (16:47 +0100)
To support display in Debian on HiKey, cma heap is used to allocate
graphic buffers. The default size of CMA is 16 MB which is not enough.

Increase the default CMA size to 128 MB.

cc: Fathi Boudra <fathi.boudra@linaro.org>
cc: John Stultz <john.stultz@linaro.org>
cc: Xinliang Liu <xinliang.liu@linaro.org>
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts

index 9e4e06acce8b7b682aa80908ce1b889b1298ceaa..dba3c131c62c09625c48cfabb7019e683eb060e7 100644 (file)
                        console-size    = <0x00020000>;
                        ftrace-size     = <0x00020000>;
                };
-       };
 
+               /* global autoconfigured region for contiguous allocations */
+               linux,cma {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       size = <0x00000000 0x08000000>;
+                       linux,cma-default;
+               };
+       };
 
        reboot-mode-syscon@5f01000 {
                compatible = "syscon", "simple-mfd";