[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADtm3G7ROX4CrxSKRvTKcjqCiX=uJQZ=Q5izH8pS61z4jfumLg@mail.gmail.com>
Date: Fri, 6 Feb 2015 13:14:42 -0800
From: Gregory Fong <gregory.0xf0@...il.com>
To: Laura Abbott <lauraa@...eaurora.org>
Cc: "linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Florian Fainelli <f.fainelli@...il.com>, vishnu.ps@...sung.com,
Russell King <linux@....linux.org.uk>,
Nicolas Pitre <nico@...aro.org>,
Kees Cook <keescook@...omium.org>,
Catalin Marinas <catalin.marinas@....com>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Yalin Wang <Yalin.Wang@...ymobile.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ARM: print cma-reserved pages from show_mem
On Thu, Feb 5, 2015 at 4:41 PM, Laura Abbott <lauraa@...eaurora.org> wrote:
> 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 <gregory.0xf0@...il.com>
>> ---
>> 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 <linux/memblock.h>
>> #include <linux/dma-contiguous.h>
>> #include <linux/sizes.h>
>> +#include <linux/cma.h>
>>
>> #include <asm/cp15.h>
>> #include <asm/mach-types.h>
>> @@ -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.
Sure, I was trying to replicate what's in lib/show_mem.c, but it
doesn't actually make much sense. Maybe it would be better to change
to "cma pages" here and change the wording in that lib/show_mem.c too.
I'll wait a bit for any other thoughts and send out a v2 with those changes.
Thanks,
Gregory
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists