mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Memtest failed. Error: -22
@ 2015-05-25 17:47 Renaud Barbier
  2015-05-29  7:23 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Renaud Barbier @ 2015-05-25 17:47 UTC (permalink / raw)
  To: barebox

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.

Renaud.






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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-29  7:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-25 17:47 Memtest failed. Error: -22 Renaud Barbier
2015-05-29  7:23 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox