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 enought.
Increase the default CMA size to 128 MB.
cc: Rob Herring <redacted>
cc: Fathi Boudra <redacted>
cc: John Stultz <redacted>
cc: Xinliang Liu <xinliang.liu@linaro.org>
Signed-off-by: Guodong Xu <redacted>
---
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
@@ -45,6 +45,20 @@<0x000000000x220000000x000000000x1c000000>;};+reserved-memory{+#address-cells=<2>;+#size-cells=<2>;+ranges;++/* global autoconfigured region for contiguous allocations */+linux,cma{+compatible="shared-dma-pool";+reusable;+size=<0x000000000x08000000>;+linux,cma-default;+};+};+pstore:pstoreat0x21f00000{no-map;reg=<0x00x21f000000x00x00100000>;/* pstore/ramoops buffer */
@@ -45,6 +45,20 @@<0x000000000x220000000x000000000x1c000000>;};+reserved-memory{+#address-cells=<2>;+#size-cells=<2>;+ranges;++/* global autoconfigured region for contiguous allocations */+linux,cma{+compatible="shared-dma-pool";+reusable;+size=<0x000000000x08000000>;+linux,cma-default;+};+};+pstore:pstoreat0x21f00000{
So what is upstream (as of 4.8) for ramoops also uses reserved-memory,
so you should separately fix this.
Acked-by: Rob Herring <robh@kernel.org>
Rob
@@ -45,6 +45,20 @@<0x000000000x220000000x000000000x1c000000>;};+reserved-memory{+#address-cells=<2>;+#size-cells=<2>;+ranges;++/* global autoconfigured region for contiguous allocations */+linux,cma{+compatible="shared-dma-pool";+reusable;+size=<0x000000000x08000000>;+linux,cma-default;+};+};+pstore:pstoreat0x21f00000{
So what is upstream (as of 4.8) for ramoops also uses reserved-memory,
so you should separately fix this.