From patchwork Thu Aug 25 03:00:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9298597 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 0D952607F0 for ; Thu, 25 Aug 2016 03:03:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03CC92917F for ; Thu, 25 Aug 2016 03:03:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAE332919F; Thu, 25 Aug 2016 03:03:32 +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 AC7062917F for ; Thu, 25 Aug 2016 03:03:32 +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 1bckvA-0004Jx-SJ; Thu, 25 Aug 2016 03:01:36 +0000 Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bckv6-0004JH-Eg for linux-arm-kernel@lists.infradead.org; Thu, 25 Aug 2016 03:01:33 +0000 Received: by mail-pf0-x230.google.com with SMTP id h186so12924194pfg.3 for ; Wed, 24 Aug 2016 20:01:10 -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=RS0LL7r1z/ujKCPTHpzbNpe01jr0uvX5xADa05Io3f4=; b=VA3VzO7jh4LGks9tHdt4AesTVdi8CTmUd2u0qUrhRQOLnyCEaNQrEjEUbaAety9xN5 85rrTuEJlD00GuvVQz/1DkrwXtZ50zW/tC4KC2yj+sb5m/UD1pveDCHSKaiS5ZcJUWNy 2SGsFjvMDXDrxUEPY4u+3fiYxS/MkXAJs12Gk= 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=RS0LL7r1z/ujKCPTHpzbNpe01jr0uvX5xADa05Io3f4=; b=JR5wWpjkWTNa4N422IfacKEvp6VzRtII889zolf/o3QAGTf1Io2wrPmt+aFmMGJzUs v4i76zDEuTPd5RIt9JyYsUgNxTRhUQLCKpCtHERPs8x8OEQ0szUi4gqSdmYdL94bgKGK Ic/q+qJKgm/EpujaDgsJ3pf0t7naufJWUcFtfzHqpecL2jmHFQsVx8NfkD9TOBZUwhAW v+da4cQJaRoLSgSu/ZazHmo3Od3iXo2ZZvVuPiYZM1ZwIZXCkTY/54MHfmCyp+wX63wZ 2b45TnTqcxVHKNmZVT4k1ltVR6Hcd4qtc1Ga6k0YO3kHa4m5TXvGbw734BS1BxR4aIiC zcIA== X-Gm-Message-State: AE9vXwNn4OsfvlMGlXcmFamyN9iM5iLLRmcKtOWyT7MwuanaIXwbFm9kcQiHXxzODMr6fWvw X-Received: by 10.98.34.151 with SMTP id p23mr12141545pfj.102.1472094069802; Wed, 24 Aug 2016 20:01:09 -0700 (PDT) Received: from localhost.localdomain ([167.160.116.32]) by smtp.gmail.com with ESMTPSA id fj19sm16789182pab.37.2016.08.24.20.01.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Aug 2016 20:01:09 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, robh+dt@kernel.org, rob.herring@linaro.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com Subject: [PATCH v2 1/2] arm64: dts: hikey: extend default cma size to 128MB Date: Thu, 25 Aug 2016 11:00:40 +0800 Message-Id: <1472094041-5357-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_200132_722351_86A3DE89 X-CRM114-Status: GOOD ( 12.05 ) 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 , xinliang.liu@linaro.org, linux-kernel@vger.kernel.org, jh80.chung@samsung.com, john.stultz@linaro.org, fathi.boudra@linaro.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 enough. Increase the default CMA size to 128 MB. 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 | 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";