From: Ian Campbell <Ian.Campbell@citrix.com>
To: Frediano Ziglio <freddy77@gmail.com>
Cc: Stefano Stabellini <stefano.stabellini@citrix.com>,
Tim Deegan <tim@xen.org>,
xen-devel@lists.xen.org
Subject: Re: [RFC PATCH] ARM 32: Workaround for memory problem >1gb on last section
Date: Wed, 1 Oct 2014 12:29:01 +0100 [thread overview]
Message-ID: <1412162941.4861.28.camel@citrix.com> (raw)
In-Reply-To: <1412159870.4861.13.camel@citrix.com>
On Wed, 2014-10-01 at 11:37 +0100, Ian Campbell wrote:
> On Mon, 2014-09-29 at 17:02 +0100, Frediano Ziglio wrote:
> > setup_xenheap_mappings setup head memory on Arm 32 has a limit of 1GB.
> > On system with large memory is possible that there are no blocks of memory
> > smaller than 1gb leading xenheap_pages to be more than 1gb.
> > This cause memory errors trying to access heap after the 1gb limit.
> >
> > I actually consider this patch as RFC as the pages are allocated at the end
> > of the block found however I don't think is safe to assume that the end is
> > aligned to 32mb as required.
> >
> > Signed-off-by: Frediano Ziglio <frediano.ziglio@huawei.com>
>
> Acked-by: Ian Campbell <ian.campbell@citrix.com>
WRT the RFC and comment I think this patch is in and of itself correct.
I think the comment about no blocks of memory smaller than 1gb is a bit
misleading though, we will just look for a big enough region, so it's
actually the presence of large enough blocks not the absence of small
ones which is the problem.
The issue which you raise regarding the 32MB alignment is handled by the
call to consider_modules which takes 32MB as the required alignment
parameter, AFAIK it should return something which is suitably aligned,
since it aligns the end address on entry and eventually returns it. I'm
not 100% sure that it doesn't rely on size being 32MB aligned, but I my
99% sure it doesn't ;-).
Ian
next prev parent reply other threads:[~2014-10-01 11:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-29 16:02 [RFC PATCH] ARM 32: Workaround for memory problem >1gb on last section Frediano Ziglio
2014-10-01 10:37 ` Ian Campbell
2014-10-01 11:29 ` Ian Campbell [this message]
2014-10-01 13:06 ` Julien Grall
-- strict thread matches above, loose matches on Subject: below --
2014-09-29 15:59 Frediano Ziglio
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=1412162941.4861.28.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=freddy77@gmail.com \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
/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).