From mboxrd@z Thu Jan 1 00:00:00 1970 From: lauraa@codeaurora.org (Laura Abbott) Date: Thu, 05 Feb 2015 16:41:19 -0800 Subject: [PATCH] ARM: print cma-reserved pages from show_mem In-Reply-To: <1423092164-9145-1-git-send-email-gregory.0xf0@gmail.com> References: <1423092164-9145-1-git-send-email-gregory.0xf0@gmail.com> Message-ID: <54D40DAF.4080609@codeaurora.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 2/4/2015 3:22 PM, Gregory Fong wrote: > 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 Nit: 'cma reserved pages' is a bit unclear. Are there some CMA pages that aren't reserved? Dropping the reserved might be clearer. Thanks, Laura -- Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project