Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1469833 > unrolled thread

[PATCH v2 1/2] arm64: dts: hikey: extend default cma size to 128MB

Started byGuodong Xu <guodong.xu@linaro.org>
First post2016-08-25 07:10 +0200
Last post2016-08-30 18:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 1/2] arm64: dts: hikey: extend default cma size to 128MB Guodong Xu <guodong.xu@linaro.org> - 2016-08-25 07:10 +0200
    Re: [PATCH v2 1/2] arm64: dts: hikey: extend default cma size to  128MB Wei Xu <xuwei5@hisilicon.com> - 2016-08-30 18:00 +0200

#1469833 — [PATCH v2 1/2] arm64: dts: hikey: extend default cma size to 128MB

FromGuodong Xu <guodong.xu@linaro.org>
Date2016-08-25 07:10 +0200
Subject[PATCH v2 1/2] arm64: dts: hikey: extend default cma size to 128MB
Message-ID<s9UVH-4Gy-15@gated-at.bofh.it>
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>
---
 arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
index 9e4e06a..dba3c13 100644
--- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
@@ -57,8 +57,15 @@
 			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";
-- 
1.9.1

[toc] | [next] | [standalone]


#1472587 — Re: [PATCH v2 1/2] arm64: dts: hikey: extend default cma size to 128MB

FromWei Xu <xuwei5@hisilicon.com>
Date2016-08-30 18:00 +0200
SubjectRe: [PATCH v2 1/2] arm64: dts: hikey: extend default cma size to 128MB
Message-ID<sbTCa-6Nf-35@gated-at.bofh.it>
In reply to#1469833
Hi Guodong,

On 25/08/2016 04:00, Guodong Xu wrote:
> 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>
> ---

Series applied to the hisilicon dt branch.
Thanks!

Best Regards,
Wei

>  arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
> index 9e4e06a..dba3c13 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
> +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
> @@ -57,8 +57,15 @@
>  			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";
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web