U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] memtest performance improvements
@ 2025-08-22 18:18 Rasmus Villemoes
  2025-08-22 18:18 ` [PATCH 1/3] memtest: don't volatile-qualify local variables Rasmus Villemoes
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Rasmus Villemoes @ 2025-08-22 18:18 UTC (permalink / raw)
  To: u-boot; +Cc: Tom Rini, Rasmus Villemoes

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(-)

-- 
2.50.1


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

end of thread, other threads:[~2025-09-02 22:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-22 18:18 [PATCH 0/3] memtest performance improvements Rasmus Villemoes
2025-08-22 18:18 ` [PATCH 1/3] memtest: don't volatile-qualify local variables Rasmus Villemoes
2025-08-22 18:18 ` [PATCH 2/3] memtest: only call schedule() once for every 256 words Rasmus Villemoes
2025-08-22 18:18 ` [PATCH 3/3] memtest: remove use of vu_long typedef in mem_test_alt Rasmus Villemoes
2025-08-28 13:48 ` [PATCH 0/3] memtest performance improvements Anshul Dalal
2025-09-02 22:57 ` Tom Rini

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