From b75e4b237df507d599869556dc42edc7d684829a Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 21 Mar 2015 19:26:10 +0100 Subject: [PATCH] software/bios/memtest: add data bus test (0xAAAAAAAA, 0x55555555) on a small portion of the test zone. we now need to add another random addressing test to avoid linear access on L2 cache --- software/bios/sdram.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/software/bios/sdram.c b/software/bios/sdram.c index 785dcde37..2ca55da6e 100644 --- a/software/bios/sdram.c +++ b/software/bios/sdram.c @@ -424,6 +424,9 @@ int sdrlevel(void) #define TEST_SIZE (2*1024*1024) +#define ONEZERO 0xAAAAAAAA +#define ZEROONE 0x55555555 + int memtest_silent(void) { volatile unsigned int *array = (unsigned int *)SDRAM_BASE; @@ -431,15 +434,26 @@ int memtest_silent(void) unsigned int prv; unsigned int error_cnt; - for(i=0;i