From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shawn Guo Subject: Re: [PATCH v2 07/15] ARM: dts: increase default cma size to 40MB Date: Thu, 3 May 2018 10:40:12 +0800 Message-ID: <20180503024011.GP3443@dragon> References: <20180423134750.30403-1-rui.silva@linaro.org> <20180423134750.30403-8-rui.silva@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20180423134750.30403-8-rui.silva@linaro.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" To: Rui Miguel Silva Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, sakari.ailus@linux.intel.com, Greg Kroah-Hartman , Ryan Harkin , Rob Herring , Philipp Zabel , Steve Longerbeam , Fabio Estevam , mchehab@kernel.org, linux-media@vger.kernel.org List-Id: devicetree@vger.kernel.org On Mon, Apr 23, 2018 at 02:47:42PM +0100, Rui Miguel Silva wrote: > To support camera in i.MX7 the cma heap is used to allocate frame buffers. The > default size of CMA is 16MB which is not enough for higher resolutions (ex: > 1600x1200). > > So, increase the default CMA size to 40MB. > > Signed-off-by: Rui Miguel Silva CMA size can be adjusted by kernel cmdline. I'm not sure it's necessary to make it fixed in DT. Shawn > --- > arch/arm/boot/dts/imx7s.dtsi | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi > index 4d42335c0dee..142ea709d296 100644 > --- a/arch/arm/boot/dts/imx7s.dtsi > +++ b/arch/arm/boot/dts/imx7s.dtsi > @@ -182,6 +182,20 @@ > ; > }; > > + reserved-memory { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + /* global autoconfigured region for contiguous allocations */ > + linux,cma { > + compatible = "shared-dma-pool"; > + reusable; > + size = <0x2800000>; > + linux,cma-default; > + }; > + }; > + > soc { > #address-cells = <1>; > #size-cells = <1>; > -- > 2.17.0 >