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: 9297827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1522E607F0 for ; Wed, 24 Aug 2016 13:39:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 034EE28F2A for ; Wed, 24 Aug 2016 13:39:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E770A28FDC; Wed, 24 Aug 2016 13:39:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 948BE28F2A for ; Wed, 24 Aug 2016 13:39:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bcYN8-0007Kp-Gs; Wed, 24 Aug 2016 13:37:38 +0000 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bcYLa-0005d1-Bw for linux-arm-kernel@lists.infradead.org; Wed, 24 Aug 2016 13:36:26 +0000 Received: by mail-pa0-x22a.google.com with SMTP id fi15so6689084pac.1 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=JN4jcLlRRCVaWhrT41kI4zFAs6AeTdqHy2t0o2eIcV+81mYwmg4GEXuptbeg3gfNFO S1M0AqTdfVxLFzfu3JeUgIVPCRnjzMhMxiYLP962OGDEWIpjyiAb1aZ6v2YxdbCKQRXJ qW2pQftnUJ+Oht6eY4vPfM8njL3YQL/+mo6Sy+GzjXYWZq9Yo30yYx9oYSinBjCxnFhn p0gYxMXbVRUgXL4eKgx2a9FqjyWe8fuChJWgEMuSYQvJ8kp2PzrllaLUh5ESKZ/24k3T bqtMNQXcPvCRU9Or1bq0O+soGgbL7LaI5j2Z6LPhWo76w/z++f9KvJX9ellugapd2Pzu FiIg== X-Gm-Message-State: AE9vXwM2FncVINZvSnXNTa3N2tCZszTCQ1RqVCecwMkWMO/tpFlVTad+E5Jue3ZAyS1/IFGW 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160824_063603_381445_71A7178B X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Guodong Xu , treding@nvidia.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Rob Herring --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 */