From: Ian Campbell <Ian.Campbell@citrix.com>
To: "karim.allah.ahmed@gmail.com" <karim.allah.ahmed@gmail.com>
Cc: Julien Grall <julien.grall@citrix.com>, peter <peter@perkbv.com>,
Julien Grall <julien.grall@linaro.org>,
xen-devel@lists.xen.org
Subject: Re: XEN[ARM] Master not working on Allwinner A20
Date: Tue, 7 Jan 2014 14:34:36 +0000 [thread overview]
Message-ID: <1389105276.12612.37.camel@kazak.uk.xensource.com> (raw)
In-Reply-To: <CAOTdubu9yQvaveFtk8H-iu+pH8xCbT3rv7fm==zcyr5usJT6JQ@mail.gmail.com>
On Tue, 2014-01-07 at 14:31 +0000, karim.allah.ahmed@gmail.com wrote:
> On Tue, Jan 7, 2014 at 1:58 PM, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> > On Sun, 2014-01-05 at 16:48 +0000, karim.allah.ahmed@gmail.com wrote:
> >
> >> If you still can't boot with any memory bigger than 128M, as a fast
> >> workaround you can apply this patch.
> >
> > I wonder if it might be possible to work around this by more carefully
> > selecting the load addresses for Xen+Linux+DTB+initrd, such that they
> > are packed into the top end of RAM, leaving a larger contiguous chunk
> > available at the beginning. e.g. if sizeof(Xen)=X and sizeof(Linux)=L
> > and sizeof(DTB)=D (all rounded up to 2M boundary) then load things at:
> > MEMMAX-X: Leave free for high relocation of hypervisor
> > MEMMAX-X-L: Load Linux here
> > MEMMAX-X-L-D: Load DTB here
> > MEMMAX-X-L-D-X: Load initial Xen image here
> >
> > Ultimately this is because allocations need to be aligned to their size,
> > so on a 1GB system there are only two possible 512MB allocations, if
> > even one page is allocated in each half then it isn't possible to
> > satisfy things. I don't think the core allocator gives us the option to
> > do non-aligned allocations.
>
> What if we allocated the dom0 from the boot allocator instead (before
> ditching it) ?
Have you checked if the boot allocator has the same constraints?
I'm also not sure if we have enough info during the early phase to know
what we are supposed to be doing (i.e. have we parsed the command line
yet?).
If you can come up with a patch we can consider it, but to be considered
for being 4.4 material it'd have to be pretty straightforward and
obvious.
Ian.
next prev parent reply other threads:[~2014-01-07 14:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-16 7:54 XEN[ARM] Master not working on Allwinner A20 peter
2013-12-16 10:09 ` Ian Campbell
2013-12-16 11:04 ` peter
2013-12-16 13:14 ` Ian Campbell
2013-12-17 9:25 ` peter
2013-12-17 9:45 ` Ian Campbell
2013-12-17 10:59 ` peter
2013-12-17 14:00 ` Julien Grall
2014-01-05 16:48 ` karim.allah.ahmed
2014-01-05 17:39 ` Stefano Stabellini
2014-01-05 19:23 ` karim.allah.ahmed
2014-01-05 19:28 ` Stefano Stabellini
2014-01-05 19:41 ` karim.allah.ahmed
2014-01-06 11:14 ` Stefano Stabellini
2014-01-05 20:18 ` Julien Grall
2014-01-05 20:23 ` Julien Grall
2014-01-07 13:58 ` Ian Campbell
2014-01-07 14:31 ` karim.allah.ahmed
2014-01-07 14:34 ` Ian Campbell [this message]
2014-01-07 14:44 ` Julien Grall
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=1389105276.12612.37.camel@kazak.uk.xensource.com \
--to=ian.campbell@citrix.com \
--cc=julien.grall@citrix.com \
--cc=julien.grall@linaro.org \
--cc=karim.allah.ahmed@gmail.com \
--cc=peter@perkbv.com \
--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).