From patchwork Tue Feb 28 19:12:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 9596625 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 03CCE60453 for ; Tue, 28 Feb 2017 19:13:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E410E2853F for ; Tue, 28 Feb 2017 19:13:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D823F28560; Tue, 28 Feb 2017 19:13:27 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DAA442853F for ; Tue, 28 Feb 2017 19:13:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=0/P2k09f5TzuMdXLRQI5rKzQz/ozxKRqmN7Uyi4vlfI=; b=fNT lCS4Bbigv9YfSZH4/VWofTJYaHeBFunhcWCYKQj/QAVArOpi2/2iKVFOjLQVWNE1m5fBzcZTVpX+B RlJZnr7vD63LSaMjPntJDmKBXmWq2IbPs1xSnPrIhH2o43l+O8eKvPIUATvFUCgxVmW37o2uGHqoi EJ8dHl8EcBs2jsMBJ0N9GkB2yAu5vuTbDlf3hfcbqT/9+ds6a/5P7LvK94pXsRwQHsUkPaKdCTStH mYj2pphvuxaAu2VS9zo+Za9nS4Ngdr0T2k6KWFAtp/TiDpEZPxGTOqil4kB+V5TBk1oTMMDdxKzbo EbsIDGnNuhMueuHmxSE1Hem94g8PKfA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cinD2-0000vO-9F; Tue, 28 Feb 2017 19:13:16 +0000 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49] helo=osg.samsung.com) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cinCd-0000u6-2n for linux-arm-kernel@lists.infradead.org; Tue, 28 Feb 2017 19:12:52 +0000 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 36AC4A0C73; Tue, 28 Feb 2017 19:12:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osg.samsung.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (s-opensource.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IdQ0G1Qy3NsI; Tue, 28 Feb 2017 19:12:48 +0000 (UTC) Received: from localhost.localdomain (c-73-181-52-62.hsd1.co.comcast.net [73.181.52.62]) by osg.samsung.com (Postfix) with ESMTPSA id 367AEA0C15; Tue, 28 Feb 2017 19:12:47 +0000 (UTC) From: Shuah Khan To: linux@armlinux.org.uk, kgene@kernel.org, krzk@kernel.org, javier@osg.samsung.com, arnd@arndb.de, cw00.choi@samsung.com, rafael.j.wysocki@intel.com, robie@justgohome.co.uk, b.zolnierkie@samsung.com, viresh.kumar@linaro.org, m.szyprowski@samsung.com, s.nawrocki@samsung.com, a.hajda@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com Subject: [PATCH v2] ARM: exynos_defconfig: increase CONFIG_CMA_SIZE_MBYTES to 96 Date: Tue, 28 Feb 2017 12:12:21 -0700 Message-Id: <20170228191221.18135-1-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170228_111251_153681_D254680E X-CRM114-Status: UNSURE ( 8.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, shuah@kernel.org, Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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 Current CMA size of 64 Mbytes is right on the edge of being small when several drivers need to allocate large CMA buffers. For example, if the s5p-mfc driver needs to pre-allocate N MiB CMA memory to decode a H.264 1080p video, then there won't be enough CMA memory left for other drivers, such as the exynos-drm driver that may need to allocate GEM buffers for the display manager. Increasing CMA size to 96 Mbytes in exynos_defconfig addresses use-cases such as these. Suggested-by: Marek Szyprowski Signed-off-by: Shuah Khan Reviewed-by: Javier Martinez Canillas --- Changes since v1: Fix short and long commit log. Reason for this patch: With the proposed s5p_mfc patch series that pre-allocate buffers, when display manager starts, it fails to get GEM buffers. Increasing the CMA size to 96 solved the problem. arch/arm/configs/exynos_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index 742baf0..2541414 100644 --- a/arch/arm/configs/exynos_defconfig +++ b/arch/arm/configs/exynos_defconfig @@ -53,7 +53,7 @@ CONFIG_RFKILL_REGULATOR=y CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_DMA_CMA=y -CONFIG_CMA_SIZE_MBYTES=64 +CONFIG_CMA_SIZE_MBYTES=96 CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_CRYPTOLOOP=y CONFIG_BLK_DEV_RAM=y