Skip to content

memtest performance improvements

Rasmus Villemoes u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3memtest: don't volatile-qualify local variablescmd/mem.c+3 -60 replies
2/3memtest: only call schedule() once for every 256 wordscmd/mem.c+8 -30 replies
3/3memtest: remove use of vu_long typedef in mem_test_altcmd/mem.c+10 -100 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchAnshul Dalal
SeriesT-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] memtest performance improvements

The first two patches make memtest run ~40x faster (when, as it should be, dcache is disabled), with the second patch being responsible for most of that. At least on the beagleboneblack which I used for testing; other boards and configurations will likely see different numbers.

This is for CONFIG_SYS_ALT_MEMTEST=y and CONFIG_SYS_ALT_MEMTEST_BITFLIP=n; one could probably get a similar improvement in the bitflip case since that also has a schedule() call in the inner loop.

Rasmus Villemoes (3):
memtest: don't volatile-qualify local variables
memtest: only call schedule() once for every 256 words
memtest: remove use of vu_long typedef in mem_test_alt

 cmd/mem.c | 40 +++++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 19 deletions(-)
Signature · 1 line
2.50.1