From patchwork Wed Feb 4 23:22:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Fong X-Patchwork-Id: 5780131 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 727EC9F2ED for ; Wed, 4 Feb 2015 23:25:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9ACFA20218 for ; Wed, 4 Feb 2015 23:25:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DF63B201FB for ; Wed, 4 Feb 2015 23:25:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YJ9Ht-0007pC-DH; Wed, 04 Feb 2015 23:23:13 +0000 Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YJ9Hq-0007jA-04 for linux-arm-kernel@lists.infradead.org; Wed, 04 Feb 2015 23:23:11 +0000 Received: by mail-pa0-f46.google.com with SMTP id lj1so5813728pab.5 for ; Wed, 04 Feb 2015 15:22:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=yn1Fhv5ly6KFHdBqqMzo8c5HqxHvlaDx2ucnYt1zN6s=; b=NQUGez2LT8C2kpTvXrArGPzKJzKfbKNMR8oXGtSj+TwzFoLDefQX4T5J4tsY64hsF0 AAM5KDfTNNfnybqmubvC4m7iR2ETkLB5cfUm22HfelziFwNOCe9HOwrD6OnJGd2g5gE3 hbjVhd1PxNYAJhFwE30sO2a68QjzoLKYuis7XLCnIpowqqf2dt2rX/ZqgtsVtagQjlGU 3TaV+XAQNDVzHwrsbFICN4R49qfxqccwvmQliDmGpTbdx6DWPPUEaVm/ETyWQcpZqzi7 SoAyl/pr9+Zq2tDu69L0VFqToaFXtduEEJ/EnVmtgkOH8mcrAXd7yzaGiKCgxbUd2cS8 kd3g== X-Received: by 10.67.10.227 with SMTP id ed3mr135063pad.91.1423092168437; Wed, 04 Feb 2015 15:22:48 -0800 (PST) Received: from gregory-irv-00.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by mx.google.com with ESMTPSA id j15sm3082149pbq.47.2015.02.04.15.22.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 15:22:47 -0800 (PST) From: Gregory Fong To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: print cma-reserved pages from show_mem Date: Wed, 4 Feb 2015 15:22:43 -0800 Message-Id: <1423092164-9145-1-git-send-email-gregory.0xf0@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150204_152310_072399_83C19199 X-CRM114-Status: UNSURE ( 7.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.6 (/) Cc: f.fainelli@gmail.com, Russell King , Kees Cook , Nicolas Pitre , Catalin Marinas , open list , Yalin Wang , Gregory Fong , Laura Abbott , vishnu.ps@samsung.com, Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add cma reserved information to the ARM-specific show_mem. It was added to the generic implementation by commit 49abd8c28046adf77c5ce1949549aa64d7221881 "lib/show_mem.c: add cma reserved information". Signed-off-by: Gregory Fong --- arch/arm/mm/init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 2495c8c..da77507 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -130,6 +131,9 @@ void show_mem(unsigned int filter) printk("%d pages of RAM\n", total); printk("%d free pages\n", free); printk("%d reserved pages\n", reserved); +#ifdef CONFIG_CMA + printk("%lu cma reserved pages\n", totalcma_pages); +#endif printk("%d slab pages\n", slab); printk("%d pages shared\n", shared); printk("%d pages swap cached\n", cached);