Re: [PATCH v2] arm64: mm: use macro instead of if judgement of ZONE_DMA

2014-10-17 Thread Catalin Marinas
On Fri, Oct 17, 2014 at 04:08:43AM +0100, Yifan Zhang wrote: > I found In current arm64 code, there is no normal zone, only DMA zone. > > Number of blocks type Unmovable Reclaimable Movable > Reserve CMA Isolate > > Node 0, zoneDMA 142 12 6

Re: [PATCH v2] arm64: mm: use macro instead of if judgement of ZONE_DMA

2014-10-16 Thread Yifan Zhang
Hi Catalin, I found In current arm64 code, there is no normal zone, only DMA zone. Number of blocks type Unmovable Reclaimable Movable Reserve CMA Isolate Node 0, zoneDMA 142 12 69 1 280 When zone_sizes_init, zone_s

Re: [PATCH v2] arm64: mm: use macro instead of if judgement of ZONE_DMA

2014-10-16 Thread Catalin Marinas
On Thu, Oct 16, 2014 at 10:41:01AM +0100, Yifan Zhang wrote: > if disable CONFIG_ZONE_DMA, ZONE_DMA becomes undefined. I agree that this is the case but can you explain why you need to disable ZONE_DMA? It currently is def_bool y, so it cannot be disabled unless you hack the Kconfig. -- Catalin

[PATCH v2] arm64: mm: use macro instead of if judgement of ZONE_DMA

2014-10-16 Thread Yifan Zhang
if disable CONFIG_ZONE_DMA, ZONE_DMA becomes undefined. Signed-off-by: Yifan Zhang --- arch/arm64/mm/init.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 494297c..887ca5d 100644 --- a/arch/arm64/mm/init.c +++