Skip to contentSkip to conversation

Memtest failed. Error: -22

DISCUSSION Renaud Barbier 2 participants 2 messages May 25, 2015 – May 29, 2015

lore
Share & tools
lore
#0 lore raw

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw

Hi Renaud,

Quoted 12 lines · Renaud Barbier

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

Quoted 7 lines

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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox