All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Frediano Ziglio <freddy77@gmail.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	Tim Deegan <tim@xen.org>
Cc: xen-devel@lists.xen.org
Subject: Re: [RFC PATCH] ARM 32: Workaround for memory problem >1gb on last section
Date: Wed, 01 Oct 2014 14:06:06 +0100	[thread overview]
Message-ID: <542BFC3E.4040101@linaro.org> (raw)
In-Reply-To: <CAHt6W4c9cmLGkTANH463u2sZBQ+FmT+_FccJJf-+3PaGtkKT5Q@mail.gmail.com>

Hello Frediano,

On 29/09/2014 17:02, 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

it's

> smaller than 1gb leading xenheap_pages to be more than 1gb.

Can you be consistent with the way to write 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.

After Ian's comment, I guess this paragraph should be dropped.

> Signed-off-by: Frediano Ziglio <frediano.ziglio@huawei.com>
> ---
>   xen/arch/arm/setup.c | 5 +++++
>   1 file changed, 5 insertions(+)
>
>
> diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
> index 446de8a..34b55b4 100644
> --- a/xen/arch/arm/setup.c
> +++ b/xen/arch/arm/setup.c
> @@ -524,6 +524,11 @@ static void __init setup_mm(unsigned long
> dtb_paddr, size_t dtb_size)
>       if ( ! e )
>           panic("Not not enough space for xenheap");
>
> +#ifdef CONFIG_ARM_32

This version of setup_mm is only compiled for arm32, therefore the 
#ifdef is not necessary.

Regards,


-- 
Julien Grall

  parent reply	other threads:[~2014-10-01 13:06 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
2014-10-01 13:06 ` Julien Grall [this message]
  -- 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=542BFC3E.4040101@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=freddy77@gmail.com \
    --cc=ian.campbell@citrix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.