From patchwork Wed Aug 24 13:35:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 74609 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp321462qga; Wed, 24 Aug 2016 06:35:49 -0700 (PDT) X-Received: by 10.98.192.12 with SMTP id x12mr5788058pff.54.1472045749179; Wed, 24 Aug 2016 06:35:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pg14si9734713pab.47.2016.08.24.06.35.47; Wed, 24 Aug 2016 06:35:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932334AbcHXNfl (ORCPT + 7 others); Wed, 24 Aug 2016 09:35:41 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:35472 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932180AbcHXNfk (ORCPT ); Wed, 24 Aug 2016 09:35:40 -0400 Received: by mail-pa0-f53.google.com with SMTP id hb8so6693307pac.2 for ; Wed, 24 Aug 2016 06:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=qk4F3V6aL1I/4qQgAo0Lxa7lMkgESpJlMh+mnp0NWas=; b=A7r1Ts4T/AII738Ijkb06PoGtHCIlcvFgc5Rew1BoIdxyi6R9ndUu2jRDA6A2GOKzL DTz41kFw6a0tNSguVCa+nU+qPimfrsm2inzcP389aVJeRHbFCiqbhIX2ykaC7OE+o/hl n5HhAofXNqA20QimuRBsU9Mt8XUH8C0K+Hza0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qk4F3V6aL1I/4qQgAo0Lxa7lMkgESpJlMh+mnp0NWas=; b=fOHFVT1AqncxVP6Q8o8Yl/BYwi9UdXpllwrshlHvhHgQQRYzj99FNJdI9ucrzKODhm lE8Z6s45Yjf6475wUMM/j1pf+oYqO+yeS3V+HQgyFohi2TltHEP0XvYgb0G7260dPgLi Syie81tVGqsS5wvS/AntbXTuTH1X1pR7OQYMYbWFVS3SJ+Tp84XiN4mVQEUzYNZOUSBv KmJFlkatxqH+jnwzaIv0NY3neBC5vOavjQdNXJDlM6NNBGSEc9UaO0cJ3qNs6G1Dihss 0OAN91I0FGC9DFjEjFZshkMyCTAKKthhFbscOH8JkzIDTlzqLJgop0rLLQbBP5aPJ8UZ f+Lg== X-Gm-Message-State: AE9vXwNC4ZuTy/t4zRwjsj9QkQW1ppn9FAHSvNw/uSkLA17DgWH9DsUlgpSmpqefYq1m1rW2 X-Received: by 10.66.157.40 with SMTP id wj8mr5667290pab.53.1472045739804; Wed, 24 Aug 2016 06:35:39 -0700 (PDT) Received: from localhost.localdomain ([104.238.45.88]) by smtp.gmail.com with ESMTPSA id xn11sm13888831pac.38.2016.08.24.06.35.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Aug 2016 06:35:36 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, robh+dt@kernel.org, rob.herring@linaro.org, fathi.boudra@linaro.org, john.stultz@linaro.org, xinliang.liu@linaro.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, treding@nvidia.com, Guodong Xu Subject: [PATCH] arm64: dts: hikey: extend default cma size to 128MB Date: Wed, 24 Aug 2016 21:35:10 +0800 Message-Id: <1472045710-15832-1-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 cc: Fathi Boudra cc: John Stultz cc: Xinliang Liu Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index 4a51058..abb3434 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -45,6 +45,20 @@ <0x00000000 0x22000000 0x00000000 0x1c000000>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* global autoconfigured region for contiguous allocations */ + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0x00000000 0x08000000>; + linux,cma-default; + }; + }; + pstore: pstore@0x21f00000 { no-map; reg = <0x0 0x21f00000 0x0 0x00100000>; /* pstore/ramoops buffer */