linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Catalin Marinas <catalin.marinas@arm.com>
To: Yifan Zhang <yifan.zhangm@gmail.com>
Cc: Will Deacon <Will.Deacon@arm.com>,
	Mark Rutland <Mark.Rutland@arm.com>,
	"lauraa@codeaurora.org" <lauraa@codeaurora.org>,
	"ganapatrao.kulkarni@caviumnetworks.com" 
	<ganapatrao.kulkarni@caviumnetworks.com>,
	"robh@kernel.org" <robh@kernel.org>,
	"leif.lindholm@linaro.org" <leif.lindholm@linaro.org>,
	"Yalin.Wang@sonymobile.com" <Yalin.Wang@sonymobile.com>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Yifan Zhang <zhangyf@marvell.com>
Subject: Re: [PATCH v2] arm64: mm: use macro instead of if judgement of ZONE_DMA
Date: Fri, 17 Oct 2014 14:28:02 +0100	[thread overview]
Message-ID: <20141017132801.GH10873@e104818-lin.cambridge.arm.com> (raw)
In-Reply-To: <CAGZxSSSZ+b28rcHYRi5EWV9K4izHZBkO3fJTdang5XTaNMRTrw@mail.gmail.com>

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, zone    DMA          142           12           69
> 1           28            0
> 
> When zone_sizes_init, zone_size[ZONE_NORMAL] is initialized to 0. (it
> is 3.10, I didn't try the latest code base)
[...]
> Is this ZONE_DMA cover full memory and ZONE_NORMAL = 0 strategy on
> purpose ? We will not use ZONE_NORMAL on arm64 ?

The normal zone is still there, only that it doesn't have any pages. The
page allocator falls back to the DMA zone, so you would not see any
problems with normal page allocation.

Are you trying to solve anything (performance?) or just what the kernel
shows as part of the normal zone?

-- 
Catalin

  reply	other threads:[~2014-10-17 13:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-16  9:41 [PATCH v2] arm64: mm: use macro instead of if judgement of ZONE_DMA Yifan Zhang
2014-10-16 17:10 ` Catalin Marinas
2014-10-17  3:08   ` Yifan Zhang
2014-10-17 13:28     ` Catalin Marinas [this message]
2014-10-20  1:58       ` Yifan Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141017132801.GH10873@e104818-lin.cambridge.arm.com \
    --to=catalin.marinas@arm.com \
    --cc=Mark.Rutland@arm.com \
    --cc=Will.Deacon@arm.com \
    --cc=Yalin.Wang@sonymobile.com \
    --cc=ganapatrao.kulkarni@caviumnetworks.com \
    --cc=lauraa@codeaurora.org \
    --cc=leif.lindholm@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=yifan.zhangm@gmail.com \
    --cc=zhangyf@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).