mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Renaud Barbier <renaud.barbier@ge.com>
Cc: barebox@lists.infradead.org
Subject: Re: Memtest failed. Error: -22
Date: Fri, 29 May 2015 09:23:54 +0200	[thread overview]
Message-ID: <20150529072354.GC6325@pengutronix.de> (raw)
In-Reply-To: <55636025.4050508@ge.com>

Hi Renaud,

On Mon, May 25, 2015 at 06:47:17PM +0100, Renaud Barbier wrote:
> I just used memtest on a couple of PPC board (freescale mpc8544 and
> P1014) and it failed with:
> 
> barebox>/ memtest
> Memtest failed. Error: -22
> 
> This error happens when the space between two regions is smaller than a
> page size:
>  0x0bf75000 - 0x0ff74fff (size 0x04000000) malloc space
>  0x0ff756e8 - 0x0ff7d6e7 (size 0x00008000) stack
> 
> 
> In this case, the size - when doing the calculation "size =
> PAGE_ALIGN_DOWN(end - start + 1);" - is zero.
> 
> The function call ret = alloc_memtest_region(list, start, size);
> then fails.
> 
> I will not be able to offer a patch until second week of June as I am away.

Thanks for noting, this is worth fixing. I think though that we can wait
until you are back.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2015-05-29  7:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-25 17:47 Renaud Barbier
2015-05-29  7:23 ` Sascha Hauer [this message]

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=20150529072354.GC6325@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=renaud.barbier@ge.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